From 80cc0bbae4583bcff7acf4b4f88879b26de2aa17 Mon Sep 17 00:00:00 2001 From: Kuldeep M Date: Mon, 11 Oct 2021 08:40:34 +0100 Subject: [PATCH] move all base styles out of component --- src/component/base/index.js | 22 +- src/component/{base/base => body}/index.css | 0 src/component/body/index.js | 3 + src/component/control/sliderSlim/index.js | 3 +- src/component/index.js | 4 +- src/component/menuNav/index.js | 1 - src/component/tab/index.js | 3 - src/style/animation/index.css | 127 ++ src/style/font/index.css | 26 + src/style/{reset.css => reset/index.css} | 0 src/style/spacing/index.css | 1563 +++++++++++++++++++ src/style/state/index.css | 63 + src/style/typography/index.css | 183 +++ src/style/utility/index.css | 85 + src/style/version/index.css | 40 + src/style/zindex/index.css | 11 + 16 files changed, 2117 insertions(+), 17 deletions(-) rename src/component/{base/base => body}/index.css (100%) create mode 100644 src/component/body/index.js create mode 100644 src/style/animation/index.css create mode 100644 src/style/font/index.css rename src/style/{reset.css => reset/index.css} (100%) create mode 100644 src/style/spacing/index.css create mode 100644 src/style/state/index.css create mode 100644 src/style/typography/index.css create mode 100644 src/style/utility/index.css create mode 100644 src/style/version/index.css create mode 100644 src/style/zindex/index.css diff --git a/src/component/base/index.js b/src/component/base/index.js index 1fd44375..372ede7c 100644 --- a/src/component/base/index.js +++ b/src/component/base/index.js @@ -1,11 +1,15 @@ -import './base/index.css'; -import './font/index.css'; -import './animation/index.css'; -import './spacing/index.css'; -import './state/index.css'; -import './typography/index.css'; -import './version/index.css'; -import './zindex/index.css'; -import './utility/index.css'; +// must be loaded first +import '../../style/reset/index.css'; + +// base styles for all components +import '../../style/animation/index.css'; +import '../../style/font/index.css'; +import '../../style/spacing/index.css'; +import '../../style/state/index.css'; +import '../../style/typography/index.css'; +//FIXME version to move made into its own component +import '../../style/version/index.css'; +import '../../style/zindex/index.css'; +import '../../style/utility/index.css'; export const base = {}; diff --git a/src/component/base/base/index.css b/src/component/body/index.css similarity index 100% rename from src/component/base/base/index.css rename to src/component/body/index.css diff --git a/src/component/body/index.js b/src/component/body/index.js new file mode 100644 index 00000000..35cf5848 --- /dev/null +++ b/src/component/body/index.js @@ -0,0 +1,3 @@ +import './index.css'; + +export const body = {}; diff --git a/src/component/control/sliderSlim/index.js b/src/component/control/sliderSlim/index.js index c11de917..014f9718 100644 --- a/src/component/control/sliderSlim/index.js +++ b/src/component/control/sliderSlim/index.js @@ -1,4 +1,3 @@ - import * as form from '../../form'; import { Button } from '../../button'; @@ -32,7 +31,7 @@ export const Control_sliderSlim = function ({ forInput: id, text: labelText, noPadding: true, - classList: ['form-group-text', 'form-group-text-left', 'form-group-text-transparent', 'form-group-text-borderless', 'form-group-item-medium',] + classList: ['form-group-text', 'form-group-text-left', 'form-group-text-transparent', 'form-group-text-borderless', 'form-group-item-medium'] }); const classList = ['form-group-item-grow']; diff --git a/src/component/index.js b/src/component/index.js index ed80aed8..8325f41e 100644 --- a/src/component/index.js +++ b/src/component/index.js @@ -1,6 +1,5 @@ -import '../style/reset.css'; - import { base } from './base'; +import { body } from './body'; import { state } from './state'; import { data } from './data'; import { version } from './version'; @@ -23,6 +22,7 @@ import * as form from './form'; export const component = { base, + body, state, data, version, diff --git a/src/component/menuNav/index.js b/src/component/menuNav/index.js index f15286ae..6f46efc0 100644 --- a/src/component/menuNav/index.js +++ b/src/component/menuNav/index.js @@ -1,4 +1,3 @@ - import { Button } from '../button'; import { node } from '../../utility/node'; diff --git a/src/component/tab/index.js b/src/component/tab/index.js index 6dc62e4d..ec45f809 100644 --- a/src/component/tab/index.js +++ b/src/component/tab/index.js @@ -1,4 +1,3 @@ - import { Button } from '../button'; import { node } from '../../utility/node'; @@ -89,8 +88,6 @@ export const Tab = function ({ this.element.tab.classList.add('tab-nav-indicator-active'); }); - this.element.indicator.addEventListener('transitionend', () => { }); - } }; diff --git a/src/style/animation/index.css b/src/style/animation/index.css new file mode 100644 index 00000000..2a4781fd --- /dev/null +++ b/src/style/animation/index.css @@ -0,0 +1,127 @@ +@keyframes appear { + 0% { + opacity: 0; + } + + 100% { + opacity: 1; + } +} + +@keyframes shake { + 0% { + transform: translate3d(0, 0, 0); + } + + 10% { + transform: translate3d(-1.2em, 0, 0); + } + + 20% { + transform: translate3d(1.2em, 0, 0); + } + + 30% { + transform: translate3d(-1em, 0, 0); + } + + 40% { + transform: translate3d(1em, 0, 0); + } + + 50% { + transform: translate3d(-0.8em, 0, 0); + } + + 60% { + transform: translate3d(0.8em, 0, 0); + } + + 70% { + transform: translate3d(-0.3em, 0, 0); + } + + 80% { + transform: translate3d(0.3em, 0, 0); + } + + 90% { + transform: translate3d(-0.1em, 0, 0); + } + + 100% { + transform: translate3d(0, 0, 0); + } +} + +@keyframes pop { + 0% { + transform: scale(1); + } + + 25% { + transform: scale(1.1); + } + + 50% { + transform: scale(0.9); + } + + 75% { + transform: scale(1.1); + } + + 100% { + transform: scale(1); + } +} + +@keyframes jello { + 0% { + transform: scale3d(1, 1, 1); + } + + 30% { + transform: scale3d(1.25, 0.75, 1); + } + + 40% { + transform: scale3d(0.75, 1.25, 1); + } + + 50% { + transform: scale3d(1.15, 0.85, 1); + } + + 65% { + transform: scale3d(0.95, 1.05, 1); + } + + 75% { + transform: scale3d(1.05, 0.95, 1); + } + + 100% { + transform: scale3d(1, 1, 1); + } +} + +@keyframes circle-in { + 0% { + clip-path: circle(100% at 50% 50%); + } + + 100% { + clip-path: circle(0% at 50% 50%); + } +} + +@keyframes circle-out { + 0% { + clip-path: circle(0% at 50% 50%); + } + + 100% { + clip-path: circle(100% at 50% 50%); + } +} diff --git a/src/style/font/index.css b/src/style/font/index.css new file mode 100644 index 00000000..76ba0e20 --- /dev/null +++ b/src/style/font/index.css @@ -0,0 +1,26 @@ +/* open sans */ +@font-face { + font-family: "Open Sans"; + font-weight: 400; + font-style: normal; + font-display: swap; + src: + local("Open Sans Regular"), + local("OpenSans-Regular"), + url("../../font/open-sans/open-sans-400.woff") format("woff"), + url("../../font/open-sans/open-sans-400.woff2") format("woff2"), + url("../../font/open-sans/open-sans-400.ttf") format("truetype"); +} + +/* fjalla one */ +@font-face { + font-family: "Fjalla One"; + font-weight: 400; + font-style: normal; + font-display: swap; + src: + local("Fjalla One"), + url("../../font/fjalla-one/fjalla-one-400.woff") format("woff"), + url("../../font/fjalla-one/fjalla-one-400.woff2") format("woff2"), + url("../../font/fjalla-one/fjalla-one-400.ttf") format("truetype"); +} diff --git a/src/style/reset.css b/src/style/reset/index.css similarity index 100% rename from src/style/reset.css rename to src/style/reset/index.css diff --git a/src/style/spacing/index.css b/src/style/spacing/index.css new file mode 100644 index 00000000..f5d59123 --- /dev/null +++ b/src/style/spacing/index.css @@ -0,0 +1,1563 @@ +.mt-0, +.my-0 { + margin-top: 0 !important; +} + +.mr-0, +.mx-0 { + margin-right: 0 !important; +} + +.mb-0, +.my-0 { + margin-bottom: 0 !important; +} + +.ml-0, +.mx-0 { + margin-left: 0 !important; +} + +.m-1 { + margin: 0.25rem !important; +} + +.mt-1, +.my-1 { + margin-top: 0.25rem !important; +} + +.mr-1, +.mx-1 { + margin-right: 0.25rem !important; +} + +.mb-1, +.my-1 { + margin-bottom: 0.25rem !important; +} + +.ml-1, +.mx-1 { + margin-left: 0.25rem !important; +} + +.m-2 { + margin: 0.5rem !important; +} + +.mt-2, +.my-2 { + margin-top: 0.5rem !important; +} + +.mr-2, +.mx-2 { + margin-right: 0.5rem !important; +} + +.mb-2, +.my-2 { + margin-bottom: 0.5rem !important; +} + +.ml-2, +.mx-2 { + margin-left: 0.5rem !important; +} + +.m-3 { + margin: 1rem !important; +} + +.mt-3, +.my-3 { + margin-top: 1rem !important; +} + +.mr-3, +.mx-3 { + margin-right: 1rem !important; +} + +.mb-3, +.my-3 { + margin-bottom: 1rem !important; +} + +.ml-3, +.mx-3 { + margin-left: 1rem !important; +} + +.m-4 { + margin: 1.5rem !important; +} + +.mt-4, +.my-4 { + margin-top: 1.5rem !important; +} + +.mr-4, +.mx-4 { + margin-right: 1.5rem !important; +} + +.mb-4, +.my-4 { + margin-bottom: 1.5rem !important; +} + +.ml-4, +.mx-4 { + margin-left: 1.5rem !important; +} + +.m-5 { + margin: 3rem !important; +} + +.mt-5, +.my-5 { + margin-top: 3rem !important; +} + +.mr-5, +.mx-5 { + margin-right: 3rem !important; +} + +.mb-5, +.my-5 { + margin-bottom: 3rem !important; +} + +.ml-5, +.mx-5 { + margin-left: 3rem !important; +} + +.p-0 { + padding: 0 !important; +} + +.pt-0, +.py-0 { + padding-top: 0 !important; +} + +.pr-0, +.px-0 { + padding-right: 0 !important; +} + +.pb-0, +.py-0 { + padding-bottom: 0 !important; +} + +.pl-0, +.px-0 { + padding-left: 0 !important; +} + +.p-1 { + padding: 0.25rem !important; +} + +.pt-1, +.py-1 { + padding-top: 0.25rem !important; +} + +.pr-1, +.px-1 { + padding-right: 0.25rem !important; +} + +.pb-1, +.py-1 { + padding-bottom: 0.25rem !important; +} + +.pl-1, +.px-1 { + padding-left: 0.25rem !important; +} + +.p-2 { + padding: 0.5rem !important; +} + +.pt-2, +.py-2 { + padding-top: 0.5rem !important; +} + +.pr-2, +.px-2 { + padding-right: 0.5rem !important; +} + +.pb-2, +.py-2 { + padding-bottom: 0.5rem !important; +} + +.pl-2, +.px-2 { + padding-left: 0.5rem !important; +} + +.p-3 { + padding: 1rem !important; +} + +.pt-3, +.py-3 { + padding-top: 1rem !important; +} + +.pr-3, +.px-3 { + padding-right: 1rem !important; +} + +.pb-3, +.py-3 { + padding-bottom: 1rem !important; +} + +.pl-3, +.px-3 { + padding-left: 1rem !important; +} + +.p-4 { + padding: 1.5rem !important; +} + +.pt-4, +.py-4 { + padding-top: 1.5rem !important; +} + +.pr-4, +.px-4 { + padding-right: 1.5rem !important; +} + +.pb-4, +.py-4 { + padding-bottom: 1.5rem !important; +} + +.pl-4, +.px-4 { + padding-left: 1.5rem !important; +} + +.p-5 { + padding: 3rem !important; +} + +.pt-5, +.py-5 { + padding-top: 3rem !important; +} + +.pr-5, +.px-5 { + padding-right: 3rem !important; +} + +.pb-5, +.py-5 { + padding-bottom: 3rem !important; +} + +.pl-5, +.px-5 { + padding-left: 3rem !important; +} + +.m-auto { + margin: auto !important; +} + +.mt-auto, +.my-auto { + margin-top: auto !important; +} + +.mr-auto, +.mx-auto { + margin-right: auto !important; +} + +.mb-auto, +.my-auto { + margin-bottom: auto !important; +} + +.ml-auto, +.mx-auto { + margin-left: auto !important; +} + +@media (min-width: 550px) { + .m-sm-0 { + margin: 0 !important; + } + + .mt-sm-0, + .my-sm-0 { + margin-top: 0 !important; + } + + .mr-sm-0, + .mx-sm-0 { + margin-right: 0 !important; + } + + .mb-sm-0, + .my-sm-0 { + margin-bottom: 0 !important; + } + + .ml-sm-0, + .mx-sm-0 { + margin-left: 0 !important; + } + + .m-sm-1 { + margin: 0.25rem !important; + } + + .mt-sm-1, + .my-sm-1 { + margin-top: 0.25rem !important; + } + + .mr-sm-1, + .mx-sm-1 { + margin-right: 0.25rem !important; + } + + .mb-sm-1, + .my-sm-1 { + margin-bottom: 0.25rem !important; + } + + .ml-sm-1, + .mx-sm-1 { + margin-left: 0.25rem !important; + } + + .m-sm-2 { + margin: 0.5rem !important; + } + + .mt-sm-2, + .my-sm-2 { + margin-top: 0.5rem !important; + } + + .mr-sm-2, + .mx-sm-2 { + margin-right: 0.5rem !important; + } + + .mb-sm-2, + .my-sm-2 { + margin-bottom: 0.5rem !important; + } + + .ml-sm-2, + .mx-sm-2 { + margin-left: 0.5rem !important; + } + + .m-sm-3 { + margin: 1rem !important; + } + + .mt-sm-3, + .my-sm-3 { + margin-top: 1rem !important; + } + + .mr-sm-3, + .mx-sm-3 { + margin-right: 1rem !important; + } + + .mb-sm-3, + .my-sm-3 { + margin-bottom: 1rem !important; + } + + .ml-sm-3, + .mx-sm-3 { + margin-left: 1rem !important; + } + + .m-sm-4 { + margin: 1.5rem !important; + } + + .mt-sm-4, + .my-sm-4 { + margin-top: 1.5rem !important; + } + + .mr-sm-4, + .mx-sm-4 { + margin-right: 1.5rem !important; + } + + .mb-sm-4, + .my-sm-4 { + margin-bottom: 1.5rem !important; + } + + .ml-sm-4, + .mx-sm-4 { + margin-left: 1.5rem !important; + } + + .m-sm-5 { + margin: 3rem !important; + } + + .mt-sm-5, + .my-sm-5 { + margin-top: 3rem !important; + } + + .mr-sm-5, + .mx-sm-5 { + margin-right: 3rem !important; + } + + .mb-sm-5, + .my-sm-5 { + margin-bottom: 3rem !important; + } + + .ml-sm-5, + .mx-sm-5 { + margin-left: 3rem !important; + } + + .p-sm-0 { + padding: 0 !important; + } + + .pt-sm-0, + .py-sm-0 { + padding-top: 0 !important; + } + + .pr-sm-0, + .px-sm-0 { + padding-right: 0 !important; + } + + .pb-sm-0, + .py-sm-0 { + padding-bottom: 0 !important; + } + + .pl-sm-0, + .px-sm-0 { + padding-left: 0 !important; + } + + .p-sm-1 { + padding: 0.25rem !important; + } + + .pt-sm-1, + .py-sm-1 { + padding-top: 0.25rem !important; + } + + .pr-sm-1, + .px-sm-1 { + padding-right: 0.25rem !important; + } + + .pb-sm-1, + .py-sm-1 { + padding-bottom: 0.25rem !important; + } + + .pl-sm-1, + .px-sm-1 { + padding-left: 0.25rem !important; + } + + .p-sm-2 { + padding: 0.5rem !important; + } + + .pt-sm-2, + .py-sm-2 { + padding-top: 0.5rem !important; + } + + .pr-sm-2, + .px-sm-2 { + padding-right: 0.5rem !important; + } + + .pb-sm-2, + .py-sm-2 { + padding-bottom: 0.5rem !important; + } + + .pl-sm-2, + .px-sm-2 { + padding-left: 0.5rem !important; + } + + .p-sm-3 { + padding: 1rem !important; + } + + .pt-sm-3, + .py-sm-3 { + padding-top: 1rem !important; + } + + .pr-sm-3, + .px-sm-3 { + padding-right: 1rem !important; + } + + .pb-sm-3, + .py-sm-3 { + padding-bottom: 1rem !important; + } + + .pl-sm-3, + .px-sm-3 { + padding-left: 1rem !important; + } + + .p-sm-4 { + padding: 1.5rem !important; + } + + .pt-sm-4, + .py-sm-4 { + padding-top: 1.5rem !important; + } + + .pr-sm-4, + .px-sm-4 { + padding-right: 1.5rem !important; + } + + .pb-sm-4, + .py-sm-4 { + padding-bottom: 1.5rem !important; + } + + .pl-sm-4, + .px-sm-4 { + padding-left: 1.5rem !important; + } + + .p-sm-5 { + padding: 3rem !important; + } + + .pt-sm-5, + .py-sm-5 { + padding-top: 3rem !important; + } + + .pr-sm-5, + .px-sm-5 { + padding-right: 3rem !important; + } + + .pb-sm-5, + .py-sm-5 { + padding-bottom: 3rem !important; + } + + .pl-sm-5, + .px-sm-5 { + padding-left: 3rem !important; + } + + .m-sm-auto { + margin: auto !important; + } + + .mt-sm-auto, + .my-sm-auto { + margin-top: auto !important; + } + + .mr-sm-auto, + .mx-sm-auto { + margin-right: auto !important; + } + + .mb-sm-auto, + .my-sm-auto { + margin-bottom: auto !important; + } + + .ml-sm-auto, + .mx-sm-auto { + margin-left: auto !important; + } +} + +@media (min-width: 700px) { + .m-md-0 { + margin: 0 !important; + } + + .mt-md-0, + .my-md-0 { + margin-top: 0 !important; + } + + .mr-md-0, + .mx-md-0 { + margin-right: 0 !important; + } + + .mb-md-0, + .my-md-0 { + margin-bottom: 0 !important; + } + + .ml-md-0, + .mx-md-0 { + margin-left: 0 !important; + } + + .m-md-1 { + margin: 0.25rem !important; + } + + .mt-md-1, + .my-md-1 { + margin-top: 0.25rem !important; + } + + .mr-md-1, + .mx-md-1 { + margin-right: 0.25rem !important; + } + + .mb-md-1, + .my-md-1 { + margin-bottom: 0.25rem !important; + } + + .ml-md-1, + .mx-md-1 { + margin-left: 0.25rem !important; + } + + .m-md-2 { + margin: 0.5rem !important; + } + + .mt-md-2, + .my-md-2 { + margin-top: 0.5rem !important; + } + + .mr-md-2, + .mx-md-2 { + margin-right: 0.5rem !important; + } + + .mb-md-2, + .my-md-2 { + margin-bottom: 0.5rem !important; + } + + .ml-md-2, + .mx-md-2 { + margin-left: 0.5rem !important; + } + + .m-md-3 { + margin: 1rem !important; + } + + .mt-md-3, + .my-md-3 { + margin-top: 1rem !important; + } + + .mr-md-3, + .mx-md-3 { + margin-right: 1rem !important; + } + + .mb-md-3, + .my-md-3 { + margin-bottom: 1rem !important; + } + + .ml-md-3, + .mx-md-3 { + margin-left: 1rem !important; + } + + .m-md-4 { + margin: 1.5rem !important; + } + + .mt-md-4, + .my-md-4 { + margin-top: 1.5rem !important; + } + + .mr-md-4, + .mx-md-4 { + margin-right: 1.5rem !important; + } + + .mb-md-4, + .my-md-4 { + margin-bottom: 1.5rem !important; + } + + .ml-md-4, + .mx-md-4 { + margin-left: 1.5rem !important; + } + + .m-md-5 { + margin: 3rem !important; + } + + .mt-md-5, + .my-md-5 { + margin-top: 3rem !important; + } + + .mr-md-5, + .mx-md-5 { + margin-right: 3rem !important; + } + + .mb-md-5, + .my-md-5 { + margin-bottom: 3rem !important; + } + + .ml-md-5, + .mx-md-5 { + margin-left: 3rem !important; + } + + .p-md-0 { + padding: 0 !important; + } + + .pt-md-0, + .py-md-0 { + padding-top: 0 !important; + } + + .pr-md-0, + .px-md-0 { + padding-right: 0 !important; + } + + .pb-md-0, + .py-md-0 { + padding-bottom: 0 !important; + } + + .pl-md-0, + .px-md-0 { + padding-left: 0 !important; + } + + .p-md-1 { + padding: 0.25rem !important; + } + + .pt-md-1, + .py-md-1 { + padding-top: 0.25rem !important; + } + + .pr-md-1, + .px-md-1 { + padding-right: 0.25rem !important; + } + + .pb-md-1, + .py-md-1 { + padding-bottom: 0.25rem !important; + } + + .pl-md-1, + .px-md-1 { + padding-left: 0.25rem !important; + } + + .p-md-2 { + padding: 0.5rem !important; + } + + .pt-md-2, + .py-md-2 { + padding-top: 0.5rem !important; + } + + .pr-md-2, + .px-md-2 { + padding-right: 0.5rem !important; + } + + .pb-md-2, + .py-md-2 { + padding-bottom: 0.5rem !important; + } + + .pl-md-2, + .px-md-2 { + padding-left: 0.5rem !important; + } + + .p-md-3 { + padding: 1rem !important; + } + + .pt-md-3, + .py-md-3 { + padding-top: 1rem !important; + } + + .pr-md-3, + .px-md-3 { + padding-right: 1rem !important; + } + + .pb-md-3, + .py-md-3 { + padding-bottom: 1rem !important; + } + + .pl-md-3, + .px-md-3 { + padding-left: 1rem !important; + } + + .p-md-4 { + padding: 1.5rem !important; + } + + .pt-md-4, + .py-md-4 { + padding-top: 1.5rem !important; + } + + .pr-md-4, + .px-md-4 { + padding-right: 1.5rem !important; + } + + .pb-md-4, + .py-md-4 { + padding-bottom: 1.5rem !important; + } + + .pl-md-4, + .px-md-4 { + padding-left: 1.5rem !important; + } + + .p-md-5 { + padding: 3rem !important; + } + + .pt-md-5, + .py-md-5 { + padding-top: 3rem !important; + } + + .pr-md-5, + .px-md-5 { + padding-right: 3rem !important; + } + + .pb-md-5, + .py-md-5 { + padding-bottom: 3rem !important; + } + + .pl-md-5, + .px-md-5 { + padding-left: 3rem !important; + } + + .m-md-auto { + margin: auto !important; + } + + .mt-md-auto, + .my-md-auto { + margin-top: auto !important; + } + + .mr-md-auto, + .mx-md-auto { + margin-right: auto !important; + } + + .mb-md-auto, + .my-md-auto { + margin-bottom: auto !important; + } + + .ml-md-auto, + .mx-md-auto { + margin-left: auto !important; + } +} + +@media (min-width: 900px) { + .m-lg-0 { + margin: 0 !important; + } + + .mt-lg-0, + .my-lg-0 { + margin-top: 0 !important; + } + + .mr-lg-0, + .mx-lg-0 { + margin-right: 0 !important; + } + + .mb-lg-0, + .my-lg-0 { + margin-bottom: 0 !important; + } + + .ml-lg-0, + .mx-lg-0 { + margin-left: 0 !important; + } + + .m-lg-1 { + margin: 0.25rem !important; + } + + .mt-lg-1, + .my-lg-1 { + margin-top: 0.25rem !important; + } + + .mr-lg-1, + .mx-lg-1 { + margin-right: 0.25rem !important; + } + + .mb-lg-1, + .my-lg-1 { + margin-bottom: 0.25rem !important; + } + + .ml-lg-1, + .mx-lg-1 { + margin-left: 0.25rem !important; + } + + .m-lg-2 { + margin: 0.5rem !important; + } + + .mt-lg-2, + .my-lg-2 { + margin-top: 0.5rem !important; + } + + .mr-lg-2, + .mx-lg-2 { + margin-right: 0.5rem !important; + } + + .mb-lg-2, + .my-lg-2 { + margin-bottom: 0.5rem !important; + } + + .ml-lg-2, + .mx-lg-2 { + margin-left: 0.5rem !important; + } + + .m-lg-3 { + margin: 1rem !important; + } + + .mt-lg-3, + .my-lg-3 { + margin-top: 1rem !important; + } + + .mr-lg-3, + .mx-lg-3 { + margin-right: 1rem !important; + } + + .mb-lg-3, + .my-lg-3 { + margin-bottom: 1rem !important; + } + + .ml-lg-3, + .mx-lg-3 { + margin-left: 1rem !important; + } + + .m-lg-4 { + margin: 1.5rem !important; + } + + .mt-lg-4, + .my-lg-4 { + margin-top: 1.5rem !important; + } + + .mr-lg-4, + .mx-lg-4 { + margin-right: 1.5rem !important; + } + + .mb-lg-4, + .my-lg-4 { + margin-bottom: 1.5rem !important; + } + + .ml-lg-4, + .mx-lg-4 { + margin-left: 1.5rem !important; + } + + .m-lg-5 { + margin: 3rem !important; + } + + .mt-lg-5, + .my-lg-5 { + margin-top: 3rem !important; + } + + .mr-lg-5, + .mx-lg-5 { + margin-right: 3rem !important; + } + + .mb-lg-5, + .my-lg-5 { + margin-bottom: 3rem !important; + } + + .ml-lg-5, + .mx-lg-5 { + margin-left: 3rem !important; + } + + .p-lg-0 { + padding: 0 !important; + } + + .pt-lg-0, + .py-lg-0 { + padding-top: 0 !important; + } + + .pr-lg-0, + .px-lg-0 { + padding-right: 0 !important; + } + + .pb-lg-0, + .py-lg-0 { + padding-bottom: 0 !important; + } + + .pl-lg-0, + .px-lg-0 { + padding-left: 0 !important; + } + + .p-lg-1 { + padding: 0.25rem !important; + } + + .pt-lg-1, + .py-lg-1 { + padding-top: 0.25rem !important; + } + + .pr-lg-1, + .px-lg-1 { + padding-right: 0.25rem !important; + } + + .pb-lg-1, + .py-lg-1 { + padding-bottom: 0.25rem !important; + } + + .pl-lg-1, + .px-lg-1 { + padding-left: 0.25rem !important; + } + + .p-lg-2 { + padding: 0.5rem !important; + } + + .pt-lg-2, + .py-lg-2 { + padding-top: 0.5rem !important; + } + + .pr-lg-2, + .px-lg-2 { + padding-right: 0.5rem !important; + } + + .pb-lg-2, + .py-lg-2 { + padding-bottom: 0.5rem !important; + } + + .pl-lg-2, + .px-lg-2 { + padding-left: 0.5rem !important; + } + + .p-lg-3 { + padding: 1rem !important; + } + + .pt-lg-3, + .py-lg-3 { + padding-top: 1rem !important; + } + + .pr-lg-3, + .px-lg-3 { + padding-right: 1rem !important; + } + + .pb-lg-3, + .py-lg-3 { + padding-bottom: 1rem !important; + } + + .pl-lg-3, + .px-lg-3 { + padding-left: 1rem !important; + } + + .p-lg-4 { + padding: 1.5rem !important; + } + + .pt-lg-4, + .py-lg-4 { + padding-top: 1.5rem !important; + } + + .pr-lg-4, + .px-lg-4 { + padding-right: 1.5rem !important; + } + + .pb-lg-4, + .py-lg-4 { + padding-bottom: 1.5rem !important; + } + + .pl-lg-4, + .px-lg-4 { + padding-left: 1.5rem !important; + } + + .p-lg-5 { + padding: 3rem !important; + } + + .pt-lg-5, + .py-lg-5 { + padding-top: 3rem !important; + } + + .pr-lg-5, + .px-lg-5 { + padding-right: 3rem !important; + } + + .pb-lg-5, + .py-lg-5 { + padding-bottom: 3rem !important; + } + + .pl-lg-5, + .px-lg-5 { + padding-left: 3rem !important; + } + + .m-lg-auto { + margin: auto !important; + } + + .mt-lg-auto, + .my-lg-auto { + margin-top: auto !important; + } + + .mr-lg-auto, + .mx-lg-auto { + margin-right: auto !important; + } + + .mb-lg-auto, + .my-lg-auto { + margin-bottom: auto !important; + } + + .ml-lg-auto, + .mx-lg-auto { + margin-left: auto !important; + } +} + +@media (min-width: 1100px) { + .m-xl-0 { + margin: 0 !important; + } + + .mt-xl-0, + .my-xl-0 { + margin-top: 0 !important; + } + + .mr-xl-0, + .mx-xl-0 { + margin-right: 0 !important; + } + + .mb-xl-0, + .my-xl-0 { + margin-bottom: 0 !important; + } + + .ml-xl-0, + .mx-xl-0 { + margin-left: 0 !important; + } + + .m-xl-1 { + margin: 0.25rem !important; + } + + .mt-xl-1, + .my-xl-1 { + margin-top: 0.25rem !important; + } + + .mr-xl-1, + .mx-xl-1 { + margin-right: 0.25rem !important; + } + + .mb-xl-1, + .my-xl-1 { + margin-bottom: 0.25rem !important; + } + + .ml-xl-1, + .mx-xl-1 { + margin-left: 0.25rem !important; + } + + .m-xl-2 { + margin: 0.5rem !important; + } + + .mt-xl-2, + .my-xl-2 { + margin-top: 0.5rem !important; + } + + .mr-xl-2, + .mx-xl-2 { + margin-right: 0.5rem !important; + } + + .mb-xl-2, + .my-xl-2 { + margin-bottom: 0.5rem !important; + } + + .ml-xl-2, + .mx-xl-2 { + margin-left: 0.5rem !important; + } + + .m-xl-3 { + margin: 1rem !important; + } + + .mt-xl-3, + .my-xl-3 { + margin-top: 1rem !important; + } + + .mr-xl-3, + .mx-xl-3 { + margin-right: 1rem !important; + } + + .mb-xl-3, + .my-xl-3 { + margin-bottom: 1rem !important; + } + + .ml-xl-3, + .mx-xl-3 { + margin-left: 1rem !important; + } + + .m-xl-4 { + margin: 1.5rem !important; + } + + .mt-xl-4, + .my-xl-4 { + margin-top: 1.5rem !important; + } + + .mr-xl-4, + .mx-xl-4 { + margin-right: 1.5rem !important; + } + + .mb-xl-4, + .my-xl-4 { + margin-bottom: 1.5rem !important; + } + + .ml-xl-4, + .mx-xl-4 { + margin-left: 1.5rem !important; + } + + .m-xl-5 { + margin: 3rem !important; + } + + .mt-xl-5, + .my-xl-5 { + margin-top: 3rem !important; + } + + .mr-xl-5, + .mx-xl-5 { + margin-right: 3rem !important; + } + + .mb-xl-5, + .my-xl-5 { + margin-bottom: 3rem !important; + } + + .ml-xl-5, + .mx-xl-5 { + margin-left: 3rem !important; + } + + .p-xl-0 { + padding: 0 !important; + } + + .pt-xl-0, + .py-xl-0 { + padding-top: 0 !important; + } + + .pr-xl-0, + .px-xl-0 { + padding-right: 0 !important; + } + + .pb-xl-0, + .py-xl-0 { + padding-bottom: 0 !important; + } + + .pl-xl-0, + .px-xl-0 { + padding-left: 0 !important; + } + + .p-xl-1 { + padding: 0.25rem !important; + } + + .pt-xl-1, + .py-xl-1 { + padding-top: 0.25rem !important; + } + + .pr-xl-1, + .px-xl-1 { + padding-right: 0.25rem !important; + } + + .pb-xl-1, + .py-xl-1 { + padding-bottom: 0.25rem !important; + } + + .pl-xl-1, + .px-xl-1 { + padding-left: 0.25rem !important; + } + + .p-xl-2 { + padding: 0.5rem !important; + } + + .pt-xl-2, + .py-xl-2 { + padding-top: 0.5rem !important; + } + + .pr-xl-2, + .px-xl-2 { + padding-right: 0.5rem !important; + } + + .pb-xl-2, + .py-xl-2 { + padding-bottom: 0.5rem !important; + } + + .pl-xl-2, + .px-xl-2 { + padding-left: 0.5rem !important; + } + + .p-xl-3 { + padding: 1rem !important; + } + + .pt-xl-3, + .py-xl-3 { + padding-top: 1rem !important; + } + + .pr-xl-3, + .px-xl-3 { + padding-right: 1rem !important; + } + + .pb-xl-3, + .py-xl-3 { + padding-bottom: 1rem !important; + } + + .pl-xl-3, + .px-xl-3 { + padding-left: 1rem !important; + } + + .p-xl-4 { + padding: 1.5rem !important; + } + + .pt-xl-4, + .py-xl-4 { + padding-top: 1.5rem !important; + } + + .pr-xl-4, + .px-xl-4 { + padding-right: 1.5rem !important; + } + + .pb-xl-4, + .py-xl-4 { + padding-bottom: 1.5rem !important; + } + + .pl-xl-4, + .px-xl-4 { + padding-left: 1.5rem !important; + } + + .p-xl-5 { + padding: 3rem !important; + } + + .pt-xl-5, + .py-xl-5 { + padding-top: 3rem !important; + } + + .pr-xl-5, + .px-xl-5 { + padding-right: 3rem !important; + } + + .pb-xl-5, + .py-xl-5 { + padding-bottom: 3rem !important; + } + + .pl-xl-5, + .px-xl-5 { + padding-left: 3rem !important; + } + + .m-xl-auto { + margin: auto !important; + } + + .mt-xl-auto, + .my-xl-auto { + margin-top: auto !important; + } + + .mr-xl-auto, + .mx-xl-auto { + margin-right: auto !important; + } + + .mb-xl-auto, + .my-xl-auto { + margin-bottom: auto !important; + } + + .ml-xl-auto, + .mx-xl-auto { + margin-left: auto !important; + } +} diff --git a/src/style/state/index.css b/src/style/state/index.css new file mode 100644 index 00000000..85ca1e45 --- /dev/null +++ b/src/style/state/index.css @@ -0,0 +1,63 @@ +.is-hidden { + display: none !important; +} + +.is-inline-block { + display: inline-block !important; +} + +.is-block { + display: block !important; +} + +.is-transparent { + opacity: 0 !important; +} + +.is-opaque { + opacity: 1 !important; +} + +.is-invisible { + visibility: hidden !important; +} + +.is-visible { + visibility: visible !important; +} + +.is-small { + transform: scale(0.5) !important; +} + +.is-large { + transform: scale(1.5) !important; +} + +.is-scroll-disabled { + overflow: hidden !important; +} + +.is-scroll-x-disabled { + overflow-x: hidden !important; +} + +.is-scroll-y-disabled { + overflow-y: hidden !important; +} + +.is-appear { + animation: appear var(--layout-transition-medium) 1; +} + +.is-shake { + animation: shake var(--layout-transition-slow) 1; +} + +.is-pop { + animation: pop var(--layout-transition-medium) 1; +} + +.is-jello { + animation: jello var(--layout-transition-slow) 1; +} diff --git a/src/style/typography/index.css b/src/style/typography/index.css new file mode 100644 index 00000000..d0778ac6 --- /dev/null +++ b/src/style/typography/index.css @@ -0,0 +1,183 @@ +h1, +h2, +h3, +h4, +h5, +h6 { + margin: 0 0 1em 0; + font-weight: normal; + line-height: 1.6; + color: hsl(var(--theme-primary-text-010)); +} + +h1 { + font-size: 1.5em; + font-family: var(--theme-font-display-name); + font-weight: var(--theme-font-display-weight); + font-style: var(--theme-font-display-style); +} + +h2 { + font-size: 1.3em; + font-family: var(--theme-font-display-name); + font-weight: var(--theme-font-display-weight); + font-style: var(--theme-font-display-style); +} + +h3 { + font-size: 1.1em; + font-family: var(--theme-font-ui-name); + font-weight: var(--theme-font-ui-weight); + font-style: var(--theme-font-ui-style); +} + +h4 { + font-size: 1em; + font-family: var(--theme-font-ui-name); + font-weight: var(--theme-font-ui-weight); + font-style: var(--theme-font-ui-style); +} + +h5 { + font-size: 1em; + font-family: var(--theme-font-ui-name); + font-weight: var(--theme-font-ui-weight); + font-style: var(--theme-font-ui-style); + font-weight: bold; +} + +h6 { + font-size: 0.75em; + font-family: var(--theme-font-ui-name); + font-weight: var(--theme-font-ui-weight); + font-style: var(--theme-font-ui-style); + font-weight: bold; +} + +p { + color: hsl(var(--theme-primary-text-010)); + margin: 0; + line-height: 1.6; +} + +p:not(:last-child) { + margin-bottom: 0.5em; +} + +hr { + border: 0; + border-top: var(--layout-horizontal-rule-small); + border-radius: calc(var(--theme-radius) * 0.01em); + margin: calc(var(--wrap-space) * 2) 0; + clear: both; + transition: border-color var(--layout-transition-extra-fast); +} + +b, +caption, +strong { + color: hsl(var(--theme-primary-text-010)); + font-family: var(--theme-font-ui-name); + font-weight: 600; +} + +i { + font-style: italic; +} + +a { + color: hsl(var(--theme-primary-text-010)); + text-decoration: underline; + transition: text-decoration var(--layout-transition-extra-fast); +} + +a:link, +a:visited { + color: hsl(var(--theme-primary-text-010)); +} + +a:focus { + text-decoration-color: hsl(var(--theme-primary-text-010)); + outline: none; +} + +a:hover { + color: hsl(var(--theme-primary-text-010)); + text-decoration-color: rgb(var(--theme-accent)); +} + +a:active { + color: hsl(var(--theme-primary-text-010)); + text-decoration-color: hsl(var(--theme-primary-text-010)); +} + +ol, +ul { + margin: 0; + padding: 0 0 0 1.5em; +} + +ol:not(:last-child), +ul:not(:last-child) { + margin-bottom: 1em; +} + +li { + margin: 0; +} + +li>ul, +li>ol { + margin: 0; +} + +li:not(:last-child) { + margin-bottom: 0.5em; +} + +li>ul:not(:last-child), +li>ol:not(:last-child) { + margin-bottom: 0.5em; +} + +table { + border: 0; + margin: 0 0 1em; + padding: 0; + width: 100%; + border-spacing: 0; +} + +table thead tr td, +table thead tr th { + background-color: hsl(var(--theme-primary-030)); + border: 0; + border-bottom: 1px solid hsl(var(--theme-primary-040)); + padding: 0.5em; + margin: 0; + text-align: left; + font-family: var(--theme-font-ui-name); + font-weight: var(--theme-font-ui-weight); + font-style: var(--theme-font-ui-style); + font-weight: bold; + box-sizing: border-box; +} + +table tr:nth-child(odd) { + background-color: hsl(var(--theme-primary-020)); +} + +table tbody tr td, +table tbody tr th { + padding: 0.25em 0.5em; + margin: 0; + border: 0; + text-align: left; + box-sizing: border-box; +} + +code { + background-color: hsl(var(--theme-primary-040)); + padding: 0.2em 0.5em; + border-radius: calc(var(--theme-radius) * 0.01em); +} diff --git a/src/style/utility/index.css b/src/style/utility/index.css new file mode 100644 index 00000000..b14fbd38 --- /dev/null +++ b/src/style/utility/index.css @@ -0,0 +1,85 @@ +:root { + --utility-muted: var(--theme-primary-110); + --utility-muted-hover: var(--theme-primary-110); + --utility-muted-focus-active: var(--theme-primary-110); + --utility-muted-checked: var(--theme-primary-110); + --utility-muted-disabled: var(--theme-primary-030); +} + +.list-unstyled { + padding-left: 0; + margin-bottom: 0; +} + +.list-unstyled li { + list-style-type: none; +} + +.list-unstyled li:not(:last-child) { + margin-bottom: 0; +} + +.list-feature { + padding-left: 0; + margin-bottom: 0; + display: flex; + flex-direction: column; + gap: 0.5em; +} + +.list-feature li { + padding: 0.25em 0.5em; + list-style-type: none; +} + +.list-feature li:not(:last-child) { + margin-bottom: 0; +} + +.list-inline li { + display: inline-block; +} + +.small { + font-size: 0.8em; +} + +.large { + font-size: 1.2em; +} + +.muted { + color: hsl(var(--utility-muted)); +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + +.d-flex { + display: flex; +} + +.d-horizontal { + flex-direction: row; +} + +.d-vertical { + flex-direction: column; +} + +.d-center { + align-items: center; + justify-content: center; +} + +.d-gap { + gap: 1em; +} diff --git a/src/style/version/index.css b/src/style/version/index.css new file mode 100644 index 00000000..5269201f --- /dev/null +++ b/src/style/version/index.css @@ -0,0 +1,40 @@ +:root { + --version-icon-size: 22; + --version-icon: calc((var(--version-icon-size) / 4) * 1em); +} + +.version { + font-size: 1rem; + display: inline-grid; + grid-template-columns: auto auto; + grid-gap: var(--wrap-space); + align-items: center; + justify-items: start; +} + +.version-app-name { + margin-bottom: 0; +} + +.version-number:not(:last-child), +.version-name:not(:last-child) { + margin-bottom: 0; +} + +.version-number { + background-color: rgb(var(--theme-accent)); + color: hsl(var(--theme-accent-text)); + border-radius: calc(var(--theme-radius) * 0.01em); + padding: 0 0.5em; +} + +.version-icon { + width: var(--version-icon); +} + +.version-details { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 0.25em; +} diff --git a/src/style/zindex/index.css b/src/style/zindex/index.css new file mode 100644 index 00000000..fe9d3c94 --- /dev/null +++ b/src/style/zindex/index.css @@ -0,0 +1,11 @@ +:root { + --z-index-background: 1000; + --z-index-layout: 2000; + --z-index-toolbar: 3000; + --z-index-edge: 4000; + --z-index-dropdown: 5000; + --z-index-shade: 6000; + --z-index-menu: 7000; + --z-index-modal: 8000; + --z-index-suggest: 9000; +}