Add asset fingerprinting, build/dev scripts
Add fingerprinting for the CSS file, as well as npm scripts for all common build and dev tasks.
This commit is contained in:
parent
f0f7bfd190
commit
5a9ffaab62
1560
package-lock.json
generated
1560
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -4,8 +4,15 @@
|
||||
"private": true,
|
||||
"description": "The website on kosmos.org",
|
||||
"scripts": {
|
||||
"build:css": "",
|
||||
"dev": "tailwindcss -i ./themes/kosmos-22/source/main.css -o ./themes/kosmos-22/static/css/main.css --watch"
|
||||
"clean": "rm -rf public/*",
|
||||
"build:css": "tailwindcss -i ./themes/kosmos-22/source/main.css -o ./themes/kosmos-22/assets/css/main.css",
|
||||
"build:site": "hugo",
|
||||
"build:release": "npm-run-all clean prod:css prod:site",
|
||||
"prod:css": "npm run build:css -- --minify",
|
||||
"prod:site": "hugo --gc --minify",
|
||||
"dev": "npm-run-all --parallel dev:*",
|
||||
"dev:css": "npm run build:css -- --watch",
|
||||
"dev:site": "hugo server --disableFastRender"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
File diff suppressed because one or more lines are too long
91
public/css/style.css
Normal file
91
public/css/style.css
Normal file
@ -0,0 +1,91 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body, html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #232323;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
text-rendering: optimizeLegibility;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
html, body, #wrapper {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
min-height: 100%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
header {
|
||||
height: 100%;
|
||||
max-width: 90%;
|
||||
margin: 0 auto 10vh;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
display: inline-block;
|
||||
margin-bottom: 2rem;
|
||||
margin-right: -0.25em; /* fix trailing space from letter-spacing */
|
||||
font-size: 7vw;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5em;
|
||||
text-transform: uppercase;
|
||||
background: #232323 url(https://kredits.kosmos.org/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
-webkit-text-fill-color: transparent;
|
||||
-webkit-background-clip: text;
|
||||
}
|
||||
|
||||
header h2 {
|
||||
font-weight: 300;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 768px;
|
||||
max-width: 90%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
main p {
|
||||
line-height: 1.6em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 760px) {
|
||||
header {
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 8vw;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
}
|
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
2
public/foundation/index.html
Normal file
2
public/foundation/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!doctype html><html><head><meta charset=utf-8><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><title>Kosmos Infrastructure Foundation | Kosmos</title><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link rel=stylesheet href=https://kosmos.org/css/main.92b231fbfbb7c7516da47bfb40600240729dc4792bd25c4e792f326ecacde5bf.css></head><body class=text-center><header class="max-w-5xl mx-auto px-8 text-left"><div class="flex items-center justify-between h-20"><div class="flex items-center"><div class=flex-shrink-0><svg class="inline-block align-top -mt-0.5 mr-1 w-auto h-6" width="65.364" height="55.773" enable-background="new 0 0 100 100" viewBox="0 0 65.364 55.773" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-.0137-.0072c-.0445-.0196-.0895-.04052-.13335-.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949.0 23.446-10.497 23.446-23.446 66e-5-9.4655-5.609-17.62-13.685-21.323z" fill="#000" stroke-width=".65365"/></g></svg><h1 class="inline-block uppercase font-bold">Kosmos</h1></div><nav class="hidden md:block"><ul class="ml-16 flex items-baseline space-x-8"><li><a href=/projects/ class=font-bold><span>Projects</span></a></li><li><a href=/services/ class=font-bold><span>Services</span></a></li><li class="border-b-2 border-teal-500"><a href=/foundation/ class=font-bold><span>Foundation</span></a></li></ul></nav></div></div></header><main class=text-left><div class="w-full h-32 bg-[url('/img/lagoon-close-02.jpg')]
|
||||
bg-[center_top_30rem] bg-cover"></div><div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white"><header class=mb-8><h1 class="text-2xl font-bold">Kosmos Infrastructure Foundation</h1><p class="mt-2 text-lg text-zinc-500">Providing physical infrastructure for Kosmos software and services</p></header><div class=content><p>Foundation content</p></div></main><footer></footer></body></html>
|
BIN
public/img/bg-header-lagoon.jpg
Normal file
BIN
public/img/bg-header-lagoon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
1
public/img/comet.svg
Normal file
1
public/img/comet.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg width="65.364" height="55.773" enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 65.364 55.773" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-0.0137-0.0072c-0.0445-0.0196-0.0895-0.04052-0.13335-0.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949 0 23.446-10.497 23.446-23.446 6.6e-4 -9.4655-5.609-17.62-13.685-21.323z" fill="#fff" stroke-width=".65365"/></g></svg>
|
After Width: | Height: | Size: 611 B |
BIN
public/img/lagoon-close-02.jpg
Normal file
BIN
public/img/lagoon-close-02.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
15
public/index.html
Normal file
15
public/index.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!doctype html><html lang=en><head><meta name=generator content="Hugo 0.99.1"><meta charset=utf-8><title>Kosmos</title><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link href=/css/style.css rel=stylesheet></head><body><div id=wrapper><header><h1>Kosmos</h1><h2>Group communication for the 21st century</h2></header><main><p>We are an open co-operative of people, who are developing a free,
|
||||
open-source, and user-centric alternative to centralized group chat
|
||||
platforms, based on widely used protocols and standards.</p><p>We also develop a system for rewarding contributors and enabling
|
||||
governance based on contributions, called Kredits, which we started
|
||||
using in production recently.</p><p>You can find all relevant information and further links in our
|
||||
<a href=https://wiki.kosmos.org>wiki</a>.
|
||||
We collaborate on source code on
|
||||
<a href=https://github.com/67P rel=me>GitHub</a>
|
||||
as well as our own
|
||||
<a href=https://gitea.kosmos.org/kosmos rel=me>Gitea</a>.
|
||||
For announcements and other news, you can follow us on the
|
||||
<a href=https://kosmos.social/@kosmos rel=me>fediverse</a>
|
||||
(recommended) or on
|
||||
<a href=https://twitter.com/KosmosHQ rel=me>Twitter</a>.</p><p class=hidden>For status and incident updates regarding Kosmos infrastructure, please follow
|
||||
<a href=https://kosmos.social/@ops rel=me>ops@kosmos.social</a>.</p></main><footer></footer></div></body></html>
|
2
public/projects/index.html
Normal file
2
public/projects/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!doctype html><html><head><meta charset=utf-8><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><title>Projects | Kosmos</title><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link rel=stylesheet href=https://kosmos.org/css/main.92b231fbfbb7c7516da47bfb40600240729dc4792bd25c4e792f326ecacde5bf.css></head><body class=text-center><header class="max-w-5xl mx-auto px-8 text-left"><div class="flex items-center justify-between h-20"><div class="flex items-center"><div class=flex-shrink-0><svg class="inline-block align-top -mt-0.5 mr-1 w-auto h-6" width="65.364" height="55.773" enable-background="new 0 0 100 100" viewBox="0 0 65.364 55.773" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-.0137-.0072c-.0445-.0196-.0895-.04052-.13335-.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949.0 23.446-10.497 23.446-23.446 66e-5-9.4655-5.609-17.62-13.685-21.323z" fill="#000" stroke-width=".65365"/></g></svg><h1 class="inline-block uppercase font-bold">Kosmos</h1></div><nav class="hidden md:block"><ul class="ml-16 flex items-baseline space-x-8"><li class="border-b-2 border-teal-500"><a href=/projects/ class=font-bold><span>Projects</span></a></li><li><a href=/services/ class=font-bold><span>Services</span></a></li><li><a href=/foundation/ class=font-bold><span>Foundation</span></a></li></ul></nav></div></div></header><main class=text-left><div class="w-full h-32 bg-[url('/img/lagoon-close-02.jpg')]
|
||||
bg-[center_top_30rem] bg-cover"></div><div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white"><header class=mb-8><h1 class="text-2xl font-bold">Projects</h1></header><div class=content><p>Projects content</p></div></main><footer></footer></body></html>
|
2
public/services/index.html
Normal file
2
public/services/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!doctype html><html><head><meta charset=utf-8><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><title>Services | Kosmos</title><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link rel=stylesheet href=https://kosmos.org/css/main.92b231fbfbb7c7516da47bfb40600240729dc4792bd25c4e792f326ecacde5bf.css></head><body class=text-center><header class="max-w-5xl mx-auto px-8 text-left"><div class="flex items-center justify-between h-20"><div class="flex items-center"><div class=flex-shrink-0><svg class="inline-block align-top -mt-0.5 mr-1 w-auto h-6" width="65.364" height="55.773" enable-background="new 0 0 100 100" viewBox="0 0 65.364 55.773" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-.0137-.0072c-.0445-.0196-.0895-.04052-.13335-.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949.0 23.446-10.497 23.446-23.446 66e-5-9.4655-5.609-17.62-13.685-21.323z" fill="#000" stroke-width=".65365"/></g></svg><h1 class="inline-block uppercase font-bold">Kosmos</h1></div><nav class="hidden md:block"><ul class="ml-16 flex items-baseline space-x-8"><li><a href=/projects/ class=font-bold><span>Projects</span></a></li><li class="border-b-2 border-teal-500"><a href=/services/ class=font-bold><span>Services</span></a></li><li><a href=/foundation/ class=font-bold><span>Foundation</span></a></li></ul></nav></div></div></header><main class=text-left><div class="w-full h-32 bg-[url('/img/lagoon-close-02.jpg')]
|
||||
bg-[center_top_30rem] bg-cover"></div><div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white"><header class=mb-8><h1 class="text-2xl font-bold">Services</h1></header><div class=content><h2 id=community-services>Community Services</h2><h3 class="mb-4 text-sm uppercase text-zinc-500">Communication</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://wiki.kosmos.org/Services:Chat class="border-b border-zinc-400">Chat</a></h4><p>Chat rooms and instant messaging (XMPP/Jabber)</p></li><li><h4 class="text-lg font-bold mb-2"><a href=kosmos.social class="border-b border-zinc-400">Social</a></h4><p>Social media (micro-blogging on the fediverse)</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://community.kosmos.org class="border-b border-zinc-400">Forums</a></h4><p>Kosmos community forums and user support/help site</p></li></ul><h3 class="mb-4 text-sm uppercase text-zinc-500">Software development</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://gitea.kosmos.org class="border-b border-zinc-400">Gitea</a></h4><p>Code hosting and collaboration for software projects</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://drone.kosmos.org class="border-b border-zinc-400">Drone CI</a></h4><p>Continuous integration and build pipelines</p></li></ul><h3 class="mb-4 text-sm uppercase text-zinc-500">Account & Auxiliary services</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://accounts.kosmos.org class="border-b border-zinc-400">Accounts</a></h4><p>Manage your Kosmos account, and invite new users</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://sockethub.org class="border-b border-zinc-400">Sockethub</a></h4><p>Access other Internet protocols from Web apps</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://wiki.kosmos.org/Kredits:IPFS class="border-b border-zinc-400">IPFS Gateway</a></h4><p>Web gateway for the IPFS decentralized filesystem</p></li></ul><h3 class="mb-4 text-sm uppercase text-zinc-500">Documentation</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://wiki.kosmos.org class="border-b border-zinc-400">Wiki</a></h4><p>Kosmos documentation and knowledge base</p></li></ul></div></main><footer></footer></body></html>
|
1
themes/kosmos-22/assets/css/main.css
Normal file
1
themes/kosmos-22/assets/css/main.css
Normal file
File diff suppressed because one or more lines are too long
@ -4,7 +4,8 @@
|
||||
{{ partial "meta.html" . }}
|
||||
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
|
||||
<link href='https://assets.kosmos.org/fonts/open-sans/open-sans.css' rel='stylesheet'>
|
||||
<link href="/css/main.css" rel="stylesheet" />
|
||||
{{ $css := resources.Get "css/main.css" | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $css.Permalink }}" />
|
||||
</head>
|
||||
<body class="text-center">
|
||||
{{ partial "topnav" . }}
|
||||
|
@ -1,720 +0,0 @@
|
||||
/*
|
||||
! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com
|
||||
*/
|
||||
|
||||
/*
|
||||
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
||||
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
||||
*/
|
||||
|
||||
*,
|
||||
::before,
|
||||
::after {
|
||||
box-sizing: border-box;
|
||||
/* 1 */
|
||||
border-width: 0;
|
||||
/* 2 */
|
||||
border-style: solid;
|
||||
/* 2 */
|
||||
border-color: #e5e7eb;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
::before,
|
||||
::after {
|
||||
--tw-content: '';
|
||||
}
|
||||
|
||||
/*
|
||||
1. Use a consistent sensible line-height in all browsers.
|
||||
2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
3. Use a more readable tab size.
|
||||
4. Use the user's configured `sans` font-family by default.
|
||||
*/
|
||||
|
||||
html {
|
||||
line-height: 1.5;
|
||||
/* 1 */
|
||||
-webkit-text-size-adjust: 100%;
|
||||
/* 2 */
|
||||
-moz-tab-size: 4;
|
||||
/* 3 */
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
/* 3 */
|
||||
font-family: Open Sans, sans-serif;
|
||||
/* 4 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Remove the margin in all browsers.
|
||||
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
/* 1 */
|
||||
line-height: inherit;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Add the correct height in Firefox.
|
||||
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
||||
3. Ensure horizontal rules are visible by default.
|
||||
*/
|
||||
|
||||
hr {
|
||||
height: 0;
|
||||
/* 1 */
|
||||
color: inherit;
|
||||
/* 2 */
|
||||
border-top-width: 1px;
|
||||
/* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct text decoration in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
abbr:where([title]) {
|
||||
-webkit-text-decoration: underline dotted;
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the default font size and weight for headings.
|
||||
*/
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-size: inherit;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
/*
|
||||
Reset links to optimize for opt-in styling instead of opt-out.
|
||||
*/
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct font weight in Edge and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Use the user's configured `mono` font family by default.
|
||||
2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp,
|
||||
pre {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
/* 1 */
|
||||
font-size: 1em;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
||||
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
||||
3. Remove gaps between table borders by default.
|
||||
*/
|
||||
|
||||
table {
|
||||
text-indent: 0;
|
||||
/* 1 */
|
||||
border-color: inherit;
|
||||
/* 2 */
|
||||
border-collapse: collapse;
|
||||
/* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
1. Change the font styles in all browsers.
|
||||
2. Remove the margin in Firefox and Safari.
|
||||
3. Remove default padding in all browsers.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit;
|
||||
/* 1 */
|
||||
font-size: 100%;
|
||||
/* 1 */
|
||||
line-height: inherit;
|
||||
/* 1 */
|
||||
color: inherit;
|
||||
/* 1 */
|
||||
margin: 0;
|
||||
/* 2 */
|
||||
padding: 0;
|
||||
/* 3 */
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the inheritance of text transform in Edge and Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Correct the inability to style clickable types in iOS and Safari.
|
||||
2. Remove default button styles.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type='button'],
|
||||
[type='reset'],
|
||||
[type='submit'] {
|
||||
-webkit-appearance: button;
|
||||
/* 1 */
|
||||
background-color: transparent;
|
||||
/* 2 */
|
||||
background-image: none;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Use the modern Firefox focus style for all focusable elements.
|
||||
*/
|
||||
|
||||
:-moz-focusring {
|
||||
outline: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
||||
*/
|
||||
|
||||
:-moz-ui-invalid {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct vertical alignment in Chrome and Firefox.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/*
|
||||
Correct the cursor style of increment and decrement buttons in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-inner-spin-button,
|
||||
::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Correct the odd appearance in Chrome and Safari.
|
||||
2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type='search'] {
|
||||
-webkit-appearance: textfield;
|
||||
/* 1 */
|
||||
outline-offset: -2px;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Correct the inability to style clickable types in iOS and Safari.
|
||||
2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button;
|
||||
/* 1 */
|
||||
font: inherit;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Add the correct display in Chrome and Safari.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/*
|
||||
Removes the default spacing and border for appropriate elements.
|
||||
*/
|
||||
|
||||
blockquote,
|
||||
dl,
|
||||
dd,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
hr,
|
||||
figure,
|
||||
p,
|
||||
pre {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
legend {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul,
|
||||
menu {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/*
|
||||
Prevent resizing textareas horizontally by default.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
||||
2. Set the default placeholder color to the user's configured gray 400 color.
|
||||
*/
|
||||
|
||||
input::-moz-placeholder, textarea::-moz-placeholder {
|
||||
opacity: 1;
|
||||
/* 1 */
|
||||
color: #9ca3af;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
|
||||
opacity: 1;
|
||||
/* 1 */
|
||||
color: #9ca3af;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
input::placeholder,
|
||||
textarea::placeholder {
|
||||
opacity: 1;
|
||||
/* 1 */
|
||||
color: #9ca3af;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Set the default cursor for buttons.
|
||||
*/
|
||||
|
||||
button,
|
||||
[role="button"] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*
|
||||
Make sure disabled buttons don't get the pointer cursor.
|
||||
*/
|
||||
|
||||
:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/*
|
||||
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
||||
This can trigger a poorly considered lint error in some tools but is included by design.
|
||||
*/
|
||||
|
||||
img,
|
||||
svg,
|
||||
video,
|
||||
canvas,
|
||||
audio,
|
||||
iframe,
|
||||
embed,
|
||||
object {
|
||||
display: block;
|
||||
/* 1 */
|
||||
vertical-align: middle;
|
||||
/* 2 */
|
||||
}
|
||||
|
||||
/*
|
||||
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
||||
*/
|
||||
|
||||
img,
|
||||
video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/*
|
||||
Ensure the default browser behavior of the `hidden` attribute.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 2rem;
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
*, ::before, ::after {
|
||||
--tw-translate-x: 0;
|
||||
--tw-translate-y: 0;
|
||||
--tw-rotate: 0;
|
||||
--tw-skew-x: 0;
|
||||
--tw-skew-y: 0;
|
||||
--tw-scale-x: 1;
|
||||
--tw-scale-y: 1;
|
||||
--tw-pan-x: ;
|
||||
--tw-pan-y: ;
|
||||
--tw-pinch-zoom: ;
|
||||
--tw-scroll-snap-strictness: proximity;
|
||||
--tw-ordinal: ;
|
||||
--tw-slashed-zero: ;
|
||||
--tw-numeric-figure: ;
|
||||
--tw-numeric-spacing: ;
|
||||
--tw-numeric-fraction: ;
|
||||
--tw-ring-inset: ;
|
||||
--tw-ring-offset-width: 0px;
|
||||
--tw-ring-offset-color: #fff;
|
||||
--tw-ring-color: rgb(59 130 246 / 0.5);
|
||||
--tw-ring-offset-shadow: 0 0 #0000;
|
||||
--tw-ring-shadow: 0 0 #0000;
|
||||
--tw-shadow: 0 0 #0000;
|
||||
--tw-shadow-colored: 0 0 #0000;
|
||||
--tw-blur: ;
|
||||
--tw-brightness: ;
|
||||
--tw-contrast: ;
|
||||
--tw-grayscale: ;
|
||||
--tw-hue-rotate: ;
|
||||
--tw-invert: ;
|
||||
--tw-saturate: ;
|
||||
--tw-sepia: ;
|
||||
--tw-drop-shadow: ;
|
||||
--tw-backdrop-blur: ;
|
||||
--tw-backdrop-brightness: ;
|
||||
--tw-backdrop-contrast: ;
|
||||
--tw-backdrop-grayscale: ;
|
||||
--tw-backdrop-hue-rotate: ;
|
||||
--tw-backdrop-invert: ;
|
||||
--tw-backdrop-opacity: ;
|
||||
--tw-backdrop-saturate: ;
|
||||
--tw-backdrop-sepia: ;
|
||||
}
|
||||
|
||||
.mx-auto {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.-mt-12 {
|
||||
margin-top: -3rem;
|
||||
}
|
||||
|
||||
.mb-8 {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.-mt-0\.5 {
|
||||
margin-top: -0.125rem;
|
||||
}
|
||||
|
||||
.mr-1 {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
.-mt-0 {
|
||||
margin-top: -0px;
|
||||
}
|
||||
|
||||
.ml-16 {
|
||||
margin-left: 4rem;
|
||||
}
|
||||
|
||||
.mb-6 {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.mb-4 {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.inline-block {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.h-32 {
|
||||
height: 8rem;
|
||||
}
|
||||
|
||||
.h-20 {
|
||||
height: 5rem;
|
||||
}
|
||||
|
||||
.h-6 {
|
||||
height: 1.5rem;
|
||||
}
|
||||
|
||||
.w-full {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.w-auto {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.max-w-5xl {
|
||||
max-width: 64rem;
|
||||
}
|
||||
|
||||
.flex-shrink-0 {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.transform {
|
||||
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
||||
}
|
||||
|
||||
.grid-cols-1 {
|
||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.items-center {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.items-baseline {
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.justify-between {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.gap-6 {
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
|
||||
--tw-space-x-reverse: 0;
|
||||
margin-right: calc(2rem * var(--tw-space-x-reverse));
|
||||
margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
|
||||
}
|
||||
|
||||
.border-b-2 {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.border-b {
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
|
||||
.border-teal-500 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(20 184 166 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-zinc-200 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(228 228 231 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-zinc-300 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(212 212 216 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-zinc-500 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(113 113 122 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.border-zinc-400 {
|
||||
--tw-border-opacity: 1;
|
||||
border-color: rgb(161 161 170 / var(--tw-border-opacity));
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
--tw-bg-opacity: 1;
|
||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||
}
|
||||
|
||||
.bg-\[url\(\'\/img\/lagoon-close-02\.jpg\'\)\] {
|
||||
background-image: url('/img/lagoon-close-02.jpg');
|
||||
}
|
||||
|
||||
.bg-cover {
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.bg-\[center_top_30rem\] {
|
||||
background-position: center top 30rem;
|
||||
}
|
||||
|
||||
.py-8 {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.px-8 {
|
||||
padding-left: 2rem;
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-top {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.text-2xl {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
.text-lg {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.font-bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.uppercase {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.text-zinc-500 {
|
||||
--tw-text-opacity: 1;
|
||||
color: rgb(113 113 122 / var(--tw-text-opacity));
|
||||
}
|
||||
|
||||
.underline {
|
||||
-webkit-text-decoration-line: underline;
|
||||
text-decoration-line: underline;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.sm\:grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.md\:block {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.md\:grid-cols-3 {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user