1
0
mirror of https://github.com/jenil/chota.git synced 2023-08-10 21:13:07 +03:00

Jenil/linter (#92)

* add linter and format files

* remove custom scrollbar css

* add caniuse

* add stylelint to test cmd

* revert test file change
This commit is contained in:
Jenil Gogari 2023-03-20 23:57:54 -04:00 committed by GitHub
parent a0514001db
commit 1430bfe73a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 1574 additions and 884 deletions

1
.gitignore vendored
View File

@ -80,7 +80,6 @@ typings/
# Nuxt.js build / generate output # Nuxt.js build / generate output
.nuxt .nuxt
dist
# Gatsby files # Gatsby files
.cache/ .cache/

12
.stylelintrc Normal file
View File

@ -0,0 +1,12 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
],
"ignorePath": [
"dist/**"
],
"rules": {
"custom-property-pattern": null
}
}

View File

@ -211,6 +211,8 @@ GEM
jekyll-feed (~> 0.9) jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1) jekyll-seo-tag (~> 2.1)
minitest (5.16.3) minitest (5.16.3)
nokogiri (1.13.10-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-linux) nokogiri (1.13.10-x86_64-linux)
racc (~> 1.4) racc (~> 1.4)
octokit (4.25.1) octokit (4.25.1)
@ -253,6 +255,8 @@ GEM
zeitwerk (2.6.0) zeitwerk (2.6.0)
PLATFORMS PLATFORMS
arm64-darwin-21
arm64-darwin-22
x86_64-linux x86_64-linux
DEPENDENCIES DEPENDENCIES

943
dist/chota.css vendored

File diff suppressed because it is too large Load Diff

2
dist/chota.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,6 @@
/* stylelint-disable color-function-notation */
/* stylelint-disable length-zero-no-unit */
/* stylelint-disable property-no-vendor-prefix */
body.dark { body.dark {
--bg-color: #000; --bg-color: #000;
--bg-secondary-color: #262626; --bg-secondary-color: #262626;
@ -60,21 +63,21 @@ hr {
margin: 3rem 0; margin: 3rem 0;
} }
body.dark .card {
box-shadow: 0 1px 3px var(--color-darkGrey);
}
#grid .card { #grid .card {
padding: 1rem 0rem; padding: 1rem 0rem;
-webkit-box-shadow: none; -webkit-box-shadow: none;
-moz-box-shadow: none; -moz-box-shadow: none;
box-shadow: none; box-shadow: none;
background-color: rgba(26, 159, 96, 0.2); background-color: rgba(26, 159, 96, 20%);
font-size: 1.2rem; font-size: 1.2rem;
} }
body.dark #grid .card { body.dark #grid .card {
background-color: rgba(26, 159, 96, 0.4); background-color: rgba(26, 159, 96, 40%);
}
body.dark .card {
box-shadow: 0 1px 3px var(--color-darkGrey);
} }
.buttons { .buttons {
@ -95,6 +98,7 @@ body.dark .card {
code { code {
background-color: var(--bg-secondary-color); background-color: var(--bg-secondary-color);
} }
.highlight .c { .highlight .c {
color: #93a1a1; color: #93a1a1;
} /* Comment */ } /* Comment */

View File

@ -5,11 +5,11 @@
"main": "dist/chota.min.css", "main": "dist/chota.min.css",
"scripts": { "scripts": {
"start": "run-p docs watch", "start": "run-p docs watch",
"docs": "jekyll s -s docs", "docs": "bundle exec jekyll s -s docs",
"build": "rimraf dist/* && yarn postcss && cross-env NODE_ENV=production yarn postcss --ext .min.css && gzip -c dist/chota.min.css | wc -c | xargs echo 'Size:'", "build": "rimraf dist/* && stylelint src/*.css --fix && yarn postcss && cross-env NODE_ENV=production yarn postcss --ext .min.css && gzip -c dist/chota.min.css | wc -c | xargs echo 'Size:'",
"postcss": "postcss ./src/chota.css -d dist/", "postcss": "postcss ./src/chota.css -d dist/",
"watch": "cross-env NODE_ENV=development yarn postcss -w", "watch": "cross-env NODE_ENV=development yarn postcss -w",
"test": "echo \"Error: no test specified\" && exit 1", "test": "stylelint src/*.css",
"prepublish": "yarn build" "prepublish": "yarn build"
}, },
"keywords": [ "keywords": [
@ -28,15 +28,21 @@
"url": "https://github.com/jenil/chota/issues" "url": "https://github.com/jenil/chota/issues"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.4.8", "autoprefixer": "10.4.8",
"cross-env": "^7.0.2", "caniuse-lite": "1.0.30001468",
"cssnano": "^5.1.13", "cross-env": "7.0.2",
"npm-run-all": "^4.1.5", "cssnano": "5.1.13",
"postcss": "^8.4.16", "npm-run-all": "4.1.5",
"postcss-cli": "^10.0.0", "postcss": "8.4.16",
"postcss-csso": "^6.0.1", "postcss-cli": "10.0.0",
"postcss-import": "^15.0.0", "postcss-csso": "6.0.1",
"rimraf": "^3.0.0" "postcss-import": "15.0.0",
"postcss-reporter": "7.0.5",
"prettier": "2.7.1",
"rimraf": "3.0.0",
"stylelint": "14.11.0",
"stylelint-config-prettier": "9.0.3",
"stylelint-config-standard": "28.0.0"
}, },
"files": [ "files": [
"src/", "src/",
@ -45,5 +51,9 @@
], ],
"browserslist": [ "browserslist": [
"last 2 versions" "last 2 versions"
] ],
"prettier": {
"tabWidth": 2
},
"dependencies": {}
} }

View File

@ -1,16 +1,19 @@
let plugins = [ let plugins = [
require("postcss-import"), require("postcss-import")({
require("autoprefixer")() plugins: [require("stylelint")({ fix: true, formatter: "compact" })],
}),
require("autoprefixer")(),
require("postcss-reporter")({ clearReportedMessages: true }),
]; ];
// if (process.env.NODE_ENV == 'production') plugins.push(require("postcss-csso")) // if (process.env.NODE_ENV == 'production') plugins.push(require("postcss-csso"))
if (process.env.NODE_ENV == "production") if (process.env.NODE_ENV == "production")
plugins.push( plugins.push(
require("cssnano")({ require("cssnano")({
preset: "default" preset: "default",
}) })
); );
module.exports = { module.exports = {
plugins plugins,
}; };

View File

@ -1,7 +1,7 @@
:root { :root {
--bg-color: #ffffff; --bg-color: #fff;
--bg-secondary-color: #f3f3f6; --bg-secondary-color: #f3f3f6;
--color-primary: #14854F; --color-primary: #14854f;
--color-lightGrey: #d2d6dd; --color-lightGrey: #d2d6dd;
--color-grey: #747681; --color-grey: #747681;
--color-darkGrey: #3f4144; --color-darkGrey: #3f4144;
@ -10,10 +10,10 @@
--grid-maxWidth: 120rem; --grid-maxWidth: 120rem;
--grid-gutter: 2rem; --grid-gutter: 2rem;
--font-size: 1.6rem; --font-size: 1.6rem;
--font-color: #333333; --font-color: #333;
--font-family-sans: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next", --font-family-sans: -apple-system, "BlinkMacSystemFont", "Avenir",
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Avenir Next", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
"Droid Sans", "Helvetica Neue", sans-serif; "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
--font-family-mono: monaco, "Consolas", "Lucida Console", monospace; --font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
} }
@ -21,37 +21,21 @@ html {
box-sizing: border-box; box-sizing: border-box;
font-size: 62.5%; font-size: 62.5%;
line-height: 1.15; line-height: 1.15;
-ms-text-size-adjust: 100%; text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
} }
*, *:before, *:after { *,
*::before,
*::after {
box-sizing: inherit; box-sizing: inherit;
} }
* {
scrollbar-width: thin;
scrollbar-color: var(--color-lightGrey) var(--bg-primary);
}
*::-webkit-scrollbar {
width: 8px;
}
*::-webkit-scrollbar-track {
background: var(--bg-primary);
}
*::-webkit-scrollbar-thumb {
background: var(--color-lightGrey);
}
body { body {
background-color: var(--bg-color); background-color: var(--bg-color);
line-height: 1.6; line-height: 1.6;
font-size: var(--font-size); font-size: var(--font-size);
color: var(--font-color); color: var(--font-color);
font-family: "Segoe UI", "Helvetica Neue", sans-serif; /*fallback*/ font-family: "Segoe UI", "Helvetica Neue", sans-serif; /* fallback */
font-family: var(--font-family-sans); font-family: var(--font-family-sans);
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -64,7 +48,7 @@ h4,
h5, h5,
h6 { h6 {
font-weight: 500; font-weight: 500;
margin: 0.35em 0 0.7em 0; margin: 0.35em 0 0.7em;
} }
h1 { h1 {
@ -161,7 +145,6 @@ tt {
code, code,
kbd { kbd {
padding: 0 0.4rem;
font-size: 90%; font-size: 90%;
white-space: pre-wrap; white-space: pre-wrap;
border-radius: 4px; border-radius: 4px;

View File

@ -8,7 +8,7 @@ legend {
letter-spacing: 0.1rem; letter-spacing: 0.1rem;
} }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]), input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]),
select, select,
textarea, textarea,
textarea[type="text"] { textarea[type="text"] {
@ -22,47 +22,14 @@ textarea[type="text"] {
width: 100%; width: 100%;
} }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]):not(:disabled):hover,
select:hover,
textarea:hover,
textarea[type="text"]:hover {
border-color: var(--color-grey);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]):focus,
select:focus,
textarea:focus,
textarea[type="text"]:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 1px var(--color-primary);
}
input.error:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]),
textarea.error {
border-color: var(--color-error);
}
input.success:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]),
textarea.success {
border-color: var(--color-success);
}
select { select {
-webkit-appearance: none; appearance: none;
background: #f3f3f6 no-repeat 100%; background: #f3f3f6 no-repeat 100%;
background-size: 1ex; background-size: 1ex;
background-origin: content-box; background-origin: content-box;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='%23555'><polygon points='0,0 60,0 30,40'/></svg>"); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='%23555'><polygon points='0,0 60,0 30,40'/></svg>");
} }
[type="checkbox"],
[type="radio"] {
width: 1.6rem;
height: 1.6rem;
}
/* BUTTONS */
.button, .button,
[type="button"], [type="button"],
[type="reset"], [type="reset"],
@ -83,29 +50,16 @@ button {
cursor: pointer; cursor: pointer;
} }
.grouped { .button.primary,
display: flex; .button.secondary,
} .button.dark,
.button.error,
.grouped > *:not(:last-child) { .button.success,
margin-right: 16px; [type="submit"] {
} color: #fff;
z-index: 1; /* hightlight from other button's border when grouped */
.grouped.gapless > * { background-color: #000;
margin: 0 0 0 -1px !important; background-color: var(--color-primary);
border-radius:0 !important;
}
.grouped.gapless > *:first-child {
margin: 0 !important;
border-radius:4px 0 0 4px !important;
}
.grouped.gapless > *:last-child {
border-radius:0 4px 4px 0 !important;
}
.button + .button {
margin-left: 1rem;
} }
.button:hover, .button:hover,
@ -125,23 +79,71 @@ button:active {
} }
input:disabled, input:disabled,
button:disabled,
input:disabled:hover, input:disabled:hover,
button:disabled,
button:disabled:hover { button:disabled:hover {
opacity: 0.4; opacity: 0.4;
cursor: not-allowed; cursor: not-allowed;
} }
.button.primary, .grouped {
.button.secondary, display: flex;
.button.dark, }
.button.error,
.button.success, .grouped > *:not(:last-child) {
[type="submit"] { margin-right: 16px;
color: #fff; }
z-index: 1; /* hightlight from other button's border when grouped */
background-color: #000; .grouped.gapless > * {
background-color: var(--color-primary); margin: 0 0 0 -1px !important;
border-radius: 0 !important;
}
.grouped.gapless > *:first-child {
margin: 0 !important;
border-radius: 4px 0 0 4px !important;
}
.grouped.gapless > *:last-child {
border-radius: 0 4px 4px 0 !important;
}
input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"], :disabled):hover,
select:hover,
textarea:hover,
textarea[type="text"]:hover {
border-color: var(--color-grey);
}
input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]):focus,
select:focus,
textarea:focus,
textarea[type="text"]:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 1px var(--color-primary);
}
input.error:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]),
textarea.error {
border-color: var(--color-error);
}
input.success:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]),
textarea.success {
border-color: var(--color-success);
}
[type="checkbox"],
[type="radio"] {
width: 1.6rem;
height: 1.6rem;
}
/* BUTTONS */
.button + .button {
margin-left: 1rem;
} }
.button.secondary { .button.secondary {
@ -194,6 +196,7 @@ button:disabled:hover {
.button.icon > img { .button.icon > img {
margin-left: 2px; margin-left: 2px;
} }
.button.icon-only { .button.icon-only {
padding: 1rem; padding: 1rem;
} }

View File

@ -1,225 +1,225 @@
.container { .container {
max-width: var(--grid-maxWidth); max-width: var(--grid-maxWidth);
margin: 0 auto; margin: 0 auto;
width: 96%; width: 96%;
padding: 0 calc(var(--grid-gutter) / 2); padding: 0 calc(var(--grid-gutter) / 2);
} }
.row { .row {
display: flex; display: flex;
flex-flow: row wrap; flex-flow: row wrap;
justify-content: flex-start; justify-content: flex-start;
margin-left: calc(var(--grid-gutter) / -2); margin-left: calc(var(--grid-gutter) / -2);
margin-right: calc(var(--grid-gutter) / -2); margin-right: calc(var(--grid-gutter) / -2);
} }
.row.reverse { .row.reverse {
flex-direction: row-reverse; flex-direction: row-reverse;
} }
.col { .col {
flex: 1; flex: 1;
} }
.col, .col,
[class*=" col-"], [class*=" col-"],
[class^='col-'] { [class^="col-"] {
margin: 0 calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2); margin: 0 calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2);
} }
.col-1 { .col-1 {
flex: 0 0 calc((100% / (12/1)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/1)) - var(--grid-gutter));
max-width: calc((100% / (12/1)) - var(--grid-gutter)); max-width: calc((100% / (12/1)) - var(--grid-gutter));
} }
.col-2 { .col-2 {
flex: 0 0 calc((100% / (12/2)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/2)) - var(--grid-gutter));
max-width: calc((100% / (12/2)) - var(--grid-gutter)); max-width: calc((100% / (12/2)) - var(--grid-gutter));
} }
.col-3 { .col-3 {
flex: 0 0 calc((100% / (12/3)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/3)) - var(--grid-gutter));
max-width: calc((100% / (12/3)) - var(--grid-gutter)); max-width: calc((100% / (12/3)) - var(--grid-gutter));
} }
.col-4 { .col-4 {
flex: 0 0 calc((100% / (12/4)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/4)) - var(--grid-gutter));
max-width: calc((100% / (12/4)) - var(--grid-gutter)); max-width: calc((100% / (12/4)) - var(--grid-gutter));
} }
.col-5 { .col-5 {
flex: 0 0 calc((100% / (12/5)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/5)) - var(--grid-gutter));
max-width: calc((100% / (12/5)) - var(--grid-gutter)); max-width: calc((100% / (12/5)) - var(--grid-gutter));
} }
.col-6 { .col-6 {
flex: 0 0 calc((100% / (12/6)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/6)) - var(--grid-gutter));
max-width: calc((100% / (12/6)) - var(--grid-gutter)); max-width: calc((100% / (12/6)) - var(--grid-gutter));
} }
.col-7 { .col-7 {
flex: 0 0 calc((100% / (12/7)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/7)) - var(--grid-gutter));
max-width: calc((100% / (12/7)) - var(--grid-gutter)); max-width: calc((100% / (12/7)) - var(--grid-gutter));
} }
.col-8 { .col-8 {
flex: 0 0 calc((100% / (12/8)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/8)) - var(--grid-gutter));
max-width: calc((100% / (12/8)) - var(--grid-gutter)); max-width: calc((100% / (12/8)) - var(--grid-gutter));
} }
.col-9 { .col-9 {
flex: 0 0 calc((100% / (12/9)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/9)) - var(--grid-gutter));
max-width: calc((100% / (12/9)) - var(--grid-gutter)); max-width: calc((100% / (12/9)) - var(--grid-gutter));
} }
.col-10 { .col-10 {
flex: 0 0 calc((100% / (12/10)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/10)) - var(--grid-gutter));
max-width: calc((100% / (12/10)) - var(--grid-gutter)); max-width: calc((100% / (12/10)) - var(--grid-gutter));
} }
.col-11 { .col-11 {
flex: 0 0 calc((100% / (12/11)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/11)) - var(--grid-gutter));
max-width: calc((100% / (12/11)) - var(--grid-gutter)); max-width: calc((100% / (12/11)) - var(--grid-gutter));
} }
.col-12 { .col-12 {
flex: 0 0 calc((100% / (12/12)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/12)) - var(--grid-gutter));
max-width: calc((100% / (12/12)) - var(--grid-gutter)); max-width: calc((100% / (12/12)) - var(--grid-gutter));
} }
@media screen and (max-width: 599px) { @media screen and (max-width: 599px) {
.container { .container {
width: 100%; width: 100%;
} }
.col, .col,
[class*="col-"], [class*="col-"],
[class^='col-'] { [class^="col-"] {
flex: 0 1 100%; flex: 0 1 100%;
max-width: 100%; max-width: 100%;
} }
} }
@media screen and (min-width: 900px) { @media screen and (min-width: 900px) {
.col-1-md { .col-1-md {
flex: 0 0 calc((100% / (12/1)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/1)) - var(--grid-gutter));
max-width: calc((100% / (12/1)) - var(--grid-gutter)); max-width: calc((100% / (12/1)) - var(--grid-gutter));
} }
.col-2-md { .col-2-md {
flex: 0 0 calc((100% / (12/2)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/2)) - var(--grid-gutter));
max-width: calc((100% / (12/2)) - var(--grid-gutter)); max-width: calc((100% / (12/2)) - var(--grid-gutter));
} }
.col-3-md { .col-3-md {
flex: 0 0 calc((100% / (12/3)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/3)) - var(--grid-gutter));
max-width: calc((100% / (12/3)) - var(--grid-gutter)); max-width: calc((100% / (12/3)) - var(--grid-gutter));
} }
.col-4-md { .col-4-md {
flex: 0 0 calc((100% / (12/4)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/4)) - var(--grid-gutter));
max-width: calc((100% / (12/4)) - var(--grid-gutter)); max-width: calc((100% / (12/4)) - var(--grid-gutter));
} }
.col-5-md { .col-5-md {
flex: 0 0 calc((100% / (12/5)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/5)) - var(--grid-gutter));
max-width: calc((100% / (12/5)) - var(--grid-gutter)); max-width: calc((100% / (12/5)) - var(--grid-gutter));
} }
.col-6-md { .col-6-md {
flex: 0 0 calc((100% / (12/6)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/6)) - var(--grid-gutter));
max-width: calc((100% / (12/6)) - var(--grid-gutter)); max-width: calc((100% / (12/6)) - var(--grid-gutter));
} }
.col-7-md { .col-7-md {
flex: 0 0 calc((100% / (12/7)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/7)) - var(--grid-gutter));
max-width: calc((100% / (12/7)) - var(--grid-gutter)); max-width: calc((100% / (12/7)) - var(--grid-gutter));
} }
.col-8-md { .col-8-md {
flex: 0 0 calc((100% / (12/8)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/8)) - var(--grid-gutter));
max-width: calc((100% / (12/8)) - var(--grid-gutter)); max-width: calc((100% / (12/8)) - var(--grid-gutter));
} }
.col-9-md { .col-9-md {
flex: 0 0 calc((100% / (12/9)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/9)) - var(--grid-gutter));
max-width: calc((100% / (12/9)) - var(--grid-gutter)); max-width: calc((100% / (12/9)) - var(--grid-gutter));
} }
.col-10-md { .col-10-md {
flex: 0 0 calc((100% / (12/10)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/10)) - var(--grid-gutter));
max-width: calc((100% / (12/10)) - var(--grid-gutter)); max-width: calc((100% / (12/10)) - var(--grid-gutter));
} }
.col-11-md { .col-11-md {
flex: 0 0 calc((100% / (12/11)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/11)) - var(--grid-gutter));
max-width: calc((100% / (12/11)) - var(--grid-gutter)); max-width: calc((100% / (12/11)) - var(--grid-gutter));
} }
.col-12-md { .col-12-md {
flex: 0 0 calc((100% / (12/12)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/12)) - var(--grid-gutter));
max-width: calc((100% / (12/12)) - var(--grid-gutter)); max-width: calc((100% / (12/12)) - var(--grid-gutter));
} }
} }
@media screen and (min-width: 1200px) { @media screen and (min-width: 1200px) {
.col-1-lg { .col-1-lg {
flex: 0 0 calc((100% / (12/1)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/1)) - var(--grid-gutter));
max-width: calc((100% / (12/1)) - var(--grid-gutter)); max-width: calc((100% / (12/1)) - var(--grid-gutter));
} }
.col-2-lg { .col-2-lg {
flex: 0 0 calc((100% / (12/2)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/2)) - var(--grid-gutter));
max-width: calc((100% / (12/2)) - var(--grid-gutter)); max-width: calc((100% / (12/2)) - var(--grid-gutter));
} }
.col-3-lg { .col-3-lg {
flex: 0 0 calc((100% / (12/3)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/3)) - var(--grid-gutter));
max-width: calc((100% / (12/3)) - var(--grid-gutter)); max-width: calc((100% / (12/3)) - var(--grid-gutter));
} }
.col-4-lg { .col-4-lg {
flex: 0 0 calc((100% / (12/4)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/4)) - var(--grid-gutter));
max-width: calc((100% / (12/4)) - var(--grid-gutter)); max-width: calc((100% / (12/4)) - var(--grid-gutter));
} }
.col-5-lg { .col-5-lg {
flex: 0 0 calc((100% / (12/5)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/5)) - var(--grid-gutter));
max-width: calc((100% / (12/5)) - var(--grid-gutter)); max-width: calc((100% / (12/5)) - var(--grid-gutter));
} }
.col-6-lg { .col-6-lg {
flex: 0 0 calc((100% / (12/6)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/6)) - var(--grid-gutter));
max-width: calc((100% / (12/6)) - var(--grid-gutter)); max-width: calc((100% / (12/6)) - var(--grid-gutter));
} }
.col-7-lg { .col-7-lg {
flex: 0 0 calc((100% / (12/7)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/7)) - var(--grid-gutter));
max-width: calc((100% / (12/7)) - var(--grid-gutter)); max-width: calc((100% / (12/7)) - var(--grid-gutter));
} }
.col-8-lg { .col-8-lg {
flex: 0 0 calc((100% / (12/8)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/8)) - var(--grid-gutter));
max-width: calc((100% / (12/8)) - var(--grid-gutter)); max-width: calc((100% / (12/8)) - var(--grid-gutter));
} }
.col-9-lg { .col-9-lg {
flex: 0 0 calc((100% / (12/9)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/9)) - var(--grid-gutter));
max-width: calc((100% / (12/9)) - var(--grid-gutter)); max-width: calc((100% / (12/9)) - var(--grid-gutter));
} }
.col-10-lg { .col-10-lg {
flex: 0 0 calc((100% / (12/10)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/10)) - var(--grid-gutter));
max-width: calc((100% / (12/10)) - var(--grid-gutter)); max-width: calc((100% / (12/10)) - var(--grid-gutter));
} }
.col-11-lg { .col-11-lg {
flex: 0 0 calc((100% / (12/11)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/11)) - var(--grid-gutter));
max-width: calc((100% / (12/11)) - var(--grid-gutter)); max-width: calc((100% / (12/11)) - var(--grid-gutter));
} }
.col-12-lg { .col-12-lg {
flex: 0 0 calc((100% / (12/12)) - var(--grid-gutter)); flex: 0 0 calc((100% / (12/12)) - var(--grid-gutter));
max-width: calc((100% / (12/12)) - var(--grid-gutter)); max-width: calc((100% / (12/12)) - var(--grid-gutter));
} }
} }

View File

@ -1,74 +1,75 @@
.nav { .nav {
display: flex; display: flex;
min-height: 5rem; min-height: 5rem;
align-items: stretch; align-items: stretch;
} }
.nav img { .nav img {
max-height: 3rem; max-height: 3rem;
} }
.nav>.container { .nav > .container {
display: flex; display: flex;
} }
.nav-center, .nav-center,
.nav-left, .nav-left,
.nav-right { .nav-right {
display: flex; display: flex;
flex: 1; flex: 1;
} }
.nav-left { .nav-left {
justify-content: flex-start; justify-content: flex-start;
} }
.nav-right { .nav-right {
justify-content: flex-end; justify-content: flex-end;
} }
.nav-center { .nav-center {
justify-content: center; justify-content: center;
} }
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
.nav, .nav,
.nav>.container { .nav > .container {
flex-direction: column; flex-direction: column;
} }
.nav-center,
.nav-left, .nav-center,
.nav-right { .nav-left,
flex-wrap: wrap; .nav-right {
justify-content: center; flex-wrap: wrap;
} justify-content: center;
}
} }
.nav a, .nav a,
.nav .brand { .nav .brand {
text-decoration: none; text-decoration: none;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 1rem 2rem; padding: 1rem 2rem;
color: var(--color-darkGrey); color: var(--color-darkGrey);
} }
.nav [aria-current="page"]:not(.button), .nav [aria-current="page"]:not(.button),
.nav .active:not(.button) { .nav .active:not(.button) {
color: #000; /* fallback */ color: #000; /* fallback */
color: var(--color-primary); color: var(--color-primary);
} }
.nav .brand { .nav .brand {
font-size: 1.75em; font-size: 1.75em;
padding-top: 0; padding-top: 0;
padding-bottom: 0; padding-bottom: 0;
} }
.nav .brand img { .nav .brand img {
padding-right: 1rem; padding-right: 1rem;
} }
.nav .button { .nav .button {
margin: auto 1rem; margin: auto 1rem;
} }

View File

@ -1,32 +1,32 @@
.tabs { .tabs {
display: flex; display: flex;
} }
.tabs a { .tabs a {
text-decoration: none; text-decoration: none;
} }
.tabs > .dropdown > summary, .tabs > .dropdown > summary,
.tabs > a { .tabs > a {
padding: 1rem 2rem; padding: 1rem 2rem;
flex: 0 1 auto; flex: 0 1 auto;
color: var(--color-darkGrey); color: var(--color-darkGrey);
border-bottom: 2px solid var(--color-lightGrey); border-bottom: 2px solid var(--color-lightGrey);
text-align: center; text-align: center;
} }
.tabs > a[aria-current="page"], .tabs > a[aria-current="page"],
.tabs > a.active, .tabs > a.active,
.tabs > a:hover { .tabs > a:hover {
opacity: 1; opacity: 1;
border-bottom: 2px solid var(--color-darkGrey); border-bottom: 2px solid var(--color-darkGrey);
} }
.tabs > a[aria-current="page"], .tabs > a[aria-current="page"],
.tabs > a.active { .tabs > a.active {
border-color: var(--color-primary); border-color: var(--color-primary);
} }
.tabs.is-full a { .tabs.is-full a {
flex: 1 1 auto; flex: 1 1 auto;
} }

View File

@ -18,6 +18,6 @@
font-size: 1.125em; font-size: 1.125em;
} }
.tag+.tag { .tag + .tag {
margin-left: 1rem; margin-left: 1rem;
} }

View File

@ -1,211 +1,211 @@
/* Colors */ /* Colors */
.bg-primary { .bg-primary {
background-color: var(--color-primary) !important; background-color: var(--color-primary) !important;
} }
.bg-light { .bg-light {
background-color: var(--color-lightGrey) !important; background-color: var(--color-lightGrey) !important;
} }
.bg-dark { .bg-dark {
background-color: var(--color-darkGrey) !important; background-color: var(--color-darkGrey) !important;
} }
.bg-grey { .bg-grey {
background-color: var(--color-grey) !important; background-color: var(--color-grey) !important;
} }
.bg-error { .bg-error {
background-color: var(--color-error) !important; background-color: var(--color-error) !important;
} }
.bg-success { .bg-success {
background-color: var(--color-success) !important; background-color: var(--color-success) !important;
} }
.bd-primary { .bd-primary {
border: 1px solid var(--color-primary) !important; border: 1px solid var(--color-primary) !important;
} }
.bd-light { .bd-light {
border: 1px solid var(--color-lightGrey) !important; border: 1px solid var(--color-lightGrey) !important;
} }
.bd-dark { .bd-dark {
border: 1px solid var(--color-darkGrey) !important; border: 1px solid var(--color-darkGrey) !important;
} }
.bd-grey { .bd-grey {
border: 1px solid var(--color-grey) !important; border: 1px solid var(--color-grey) !important;
} }
.bd-error { .bd-error {
border: 1px solid var(--color-error) !important; border: 1px solid var(--color-error) !important;
} }
.bd-success { .bd-success {
border: 1px solid var(--color-success) !important; border: 1px solid var(--color-success) !important;
} }
.text-primary { .text-primary {
color: var(--color-primary) !important; color: var(--color-primary) !important;
} }
.text-light { .text-light {
color: var(--color-lightGrey) !important; color: var(--color-lightGrey) !important;
} }
.text-dark { .text-dark {
color: var(--color-darkGrey) !important; color: var(--color-darkGrey) !important;
} }
.text-grey { .text-grey {
color: var(--color-grey) !important; color: var(--color-grey) !important;
} }
.text-error { .text-error {
color: var(--color-error) !important; color: var(--color-error) !important;
} }
.text-success { .text-success {
color: var(--color-success) !important; color: var(--color-success) !important;
} }
.text-white { .text-white {
color: #fff !important; color: #fff !important;
} }
/* Position & alignment */ /* Position & alignment */
.pull-right { .pull-right {
float: right !important; float: right !important;
} }
.pull-left { .pull-left {
float: left !important; float: left !important;
} }
.text-center { .text-center {
text-align: center; text-align: center;
} }
.text-left { .text-left {
text-align: left; text-align: left;
} }
.text-right { .text-right {
text-align: right; text-align: right;
} }
.text-justify { .text-justify {
text-align: justify; text-align: justify;
} }
.text-uppercase { .text-uppercase {
text-transform: uppercase; text-transform: uppercase;
} }
.text-lowercase { .text-lowercase {
text-transform: lowercase; text-transform: lowercase;
} }
.text-capitalize { .text-capitalize {
text-transform: capitalize; text-transform: capitalize;
} }
.is-full-screen { .is-full-screen {
width: 100%; width: 100%;
min-height: 100vh; min-height: 100vh;
} }
.is-full-width { .is-full-width {
width: 100% !important; width: 100% !important;
} }
.is-vertical-align { .is-vertical-align {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.is-horizontal-align { .is-horizontal-align {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.is-center { .is-center {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.is-right { .is-right {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
.is-left { .is-left {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
} }
.is-fixed { .is-fixed {
position: fixed; position: fixed;
width: 100%; width: 100%;
} }
.is-paddingless { .is-paddingless {
padding: 0 !important; padding: 0 !important;
} }
.is-marginless { .is-marginless {
margin: 0 !important; margin: 0 !important;
} }
.is-pointer { .is-pointer {
cursor: pointer !important; cursor: pointer !important;
} }
.is-rounded { .is-rounded {
border-radius: 100%; border-radius: 100%;
} }
.clearfix { .clearfix {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
} }
.is-hidden { .is-hidden {
display: none !important; display: none !important;
} }
@media screen and (max-width: 599px) { @media screen and (max-width: 599px) {
.hide-xs { .hide-xs {
display: none !important; display: none !important;
} }
} }
@media screen and (min-width: 600px) and (max-width: 899px) { @media screen and (min-width: 600px) and (max-width: 899px) {
.hide-sm { .hide-sm {
display: none !important; display: none !important;
} }
} }
@media screen and (min-width: 900px) and (max-width: 1199px) { @media screen and (min-width: 900px) and (max-width: 1199px) {
.hide-md { .hide-md {
display: none !important; display: none !important;
} }
} }
@media screen and (min-width: 1200px) { @media screen and (min-width: 1200px) {
.hide-lg { .hide-lg {
display: none !important; display: none !important;
} }
} }
@media print { @media print {
.hide-pr { .hide-pr {
display: none !important; display: none !important;
} }
} }

View File

@ -2,11 +2,9 @@
@import "_base.css"; @import "_base.css";
@import "_grid.css"; @import "_grid.css";
@import "_form.css"; @import "_form.css";
@import "_nav.css"; @import "_nav.css";
@import "_card.css"; @import "_card.css";
@import "_tab.css"; @import "_tab.css";
@import "_tag.css"; @import "_tag.css";
@import "_dropdown.css"; @import "_dropdown.css";
@import "_util.css"; @import "_util.css";

730
yarn.lock

File diff suppressed because it is too large Load Diff