diff options
| author | Pitu <[email protected]> | 2018-09-16 01:09:02 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2018-09-16 01:09:02 -0300 |
| commit | fe10a00ba9a3c30d8718ca004ccd19518466f5bd (patch) | |
| tree | 369752f59a88dd03df1e9752be0ba166bf93c933 /src/site/styles/style.scss | |
| parent | First version of start script (diff) | |
| download | host.fuwn.me-fe10a00ba9a3c30d8718ca004ccd19518466f5bd.tar.xz host.fuwn.me-fe10a00ba9a3c30d8718ca004ccd19518466f5bd.zip | |
Site
Diffstat (limited to 'src/site/styles/style.scss')
| -rw-r--r-- | src/site/styles/style.scss | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/src/site/styles/style.scss b/src/site/styles/style.scss new file mode 100644 index 0000000..5af4087 --- /dev/null +++ b/src/site/styles/style.scss @@ -0,0 +1,141 @@ +// Let's first take care of having the customized colors ready. +@import "./_colors.scss"; + +// Loading screen is the first thing that shows up, let's put it at the top. +div#loading { + position: absolute; + top: 0; + left: 0; + z-index: 100; + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + + div.background { + position: absolute; + z-index: -1; + height: 100%; + width: 100%; + top: 0px; + left: 0px; + background: $background; + } +} + +// Bulma/Buefy customization +@import "../../../node_modules/bulma/sass/utilities/_all.sass"; + +$body-size: 14px !default; +$family-primary: 'Nunito', BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; +$size-normal: 0.75rem; + +@import "../../../node_modules/bulma/bulma.sass"; +@import "../../../node_modules/buefy/src/scss/buefy.scss"; + +/* +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; + line-height: 1; + letter-spacing: normal; + text-transform: none; + display: inline-block; + white-space: nowrap; + word-wrap: normal; + direction: ltr; + font-feature-settings: "liga"; + -webkit-font-feature-settings: 'liga'; + -webkit-font-smoothing: antialiased; +} +*/ + +/* +*, +*::before, +*::after { + box-sizing: border-box; + text-rendering: optimizeLegibility; +} +*/ +html { + // font-size: 100%; + font-size: 14px; + background-color: $background; +} + +h4 { + font-size: 2em; + font-weight: 700; + line-height: 1.25em; +} + +div.spacer { + &.mt1 { margin-top: 1em; } + &.mt2 { margin-top: 2em; } + &.mt3 { margin-top: 3em; } + &.mt4 { margin-top: 4em; } + &.mt5 { margin-top: 5em; } + &.mt6 { margin-top: 6em; } + &.mt7 { margin-top: 7em; } +} + +// Bulma color changes. +.tooltip.is-top.is-primary:before { border-top: 5px solid #20222b; } +.tooltip.is-primary:after { background: #20222b; } + +div#drag-overlay { + position: fixed; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 100; + div.background { + background: rgba(0, 0, 0, 0.9); + position: absolute; + top: 3%; + left: 3%; + width: 94%; + height: 94%; + border: 2px dashed #fff; + border-radius: 10px; + box-shadow: 0 0 0 4px #ffffff00, 2px 1px 6px 4px rgba(10, 10, 0, 0.5); + } + + div.drop { + width: 100%; + color: white; + position: absolute; + height: 100%; + align-items: center; + display: flex; + justify-content: center; + font-size: 2em; + } +} + +section input, section a.button { + font-size: 14px !important; +} +section input, section p.control a.button { + border-left: 0px !important; + border-top: 0px !important; + border-right: 0px !important; + border-radius: 0px !important; + box-shadow: 0 0 0 !important; +} + +section p.control a.button { margin-left: 10px !important; } +section p.control button { + height: 100%; + font-size: 12px; +} + +.switch input[type=checkbox] + .check:before { + background: #fbfbfb; +} |