Skip to content

Commit

Permalink
Merge pull request #71 from invopop/add_pre_class
Browse files Browse the repository at this point in the history
add styling for pre
  • Loading branch information
beliolfa authored Nov 6, 2024
2 parents 80d452a + 3e44018 commit ebc6395
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go/head.templ
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ templ DefaultCSS() {
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
}

templ DefaultScripts() {
Expand Down
2 changes: 1 addition & 1 deletion go/head_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion html/avatar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4">
Expand Down
2 changes: 1 addition & 1 deletion html/button.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4">
Expand Down
2 changes: 1 addition & 1 deletion html/checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4">
Expand Down
2 changes: 1 addition & 1 deletion html/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4 max-w-md">
Expand Down
2 changes: 1 addition & 1 deletion html/misc.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4">
Expand Down
2 changes: 1 addition & 1 deletion html/popover.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4">
Expand Down
2 changes: 1 addition & 1 deletion html/select.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4 max-w-md">
Expand Down
2 changes: 1 addition & 1 deletion html/textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.28/dist/popui.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/@invopop/popui@0.0.32/dist/popui.css" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-5 space-y-4 max-w-md">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@invopop/popui",
"license": "MIT",
"version": "0.0.31",
"version": "0.0.32",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",
Expand Down
5 changes: 5 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,15 @@
@apply flex-1;
}
mark,
pre,
p > code {
@apply font-sans border border-neutral-200 bg-neutral-50 rounded text-sm text-neutral-500 px-1 py-0.5 inline-flex;
}

pre {
@apply overflow-x-auto;
}

/* Popover */
.popui-popover-list {
@apply hidden absolute left-0 top-7 popover-menu border border-neutral-200 rounded-md px-1 py-0.5 w-full bg-white;
Expand Down

0 comments on commit ebc6395

Please sign in to comment.