diff options
author | Nad Chishtie <n.chishtie@gmail.com> | 2019-08-15 17:40:36 -0700 |
---|---|---|
committer | Jorik Schellekens <joriks@matrix.org> | 2019-08-28 15:59:54 +0100 |
commit | 511f8b626b93d014a67dc0c389fe849d5aa81828 (patch) | |
tree | 25bb215b5b120db1db33329fdfe28bda93aeb353 /synapse_topology/webui | |
parent | First cut of visual polish for installer. (diff) | |
download | synapse-511f8b626b93d014a67dc0c389fe849d5aa81828.tar.xz |
Add WIP CSS classes
Diffstat (limited to 'synapse_topology/webui')
-rw-r--r-- | synapse_topology/webui/src/scss/main.scss | 160 |
1 files changed, 117 insertions, 43 deletions
diff --git a/synapse_topology/webui/src/scss/main.scss b/synapse_topology/webui/src/scss/main.scss index f8b941ed00..9d14e789ea 100644 --- a/synapse_topology/webui/src/scss/main.scss +++ b/synapse_topology/webui/src/scss/main.scss @@ -6,9 +6,9 @@ } html { - box-sizing: border-box; - font-family: Ariel, sans-serif; - font-size: 2rem; + box-sizing: border-box; + font-family: Ariel, sans-serif; + font-size: 1.6rem; } *, *:before, *:after { @@ -16,16 +16,26 @@ html { } body { - @include theme; - background-color: $primary; - color: $font; - margin: 0; + @include theme; + background-color: $primary; + color: $font; + margin: auto; + width: 48rem; + max-width: 90%; + text-align: center; } a { - @include theme; - color: $link; - text-decoration: none; + @include theme; + color: $link; + text-decoration: none; + font-size: 0.6rem; + line-height: 0.8rem; +} + +a:hover { + color: $link; + text-decoration: none; } .invalid { @@ -59,26 +69,29 @@ a { } button { - @include rippler; - @include dropshadowed; - border-radius: 0.5rem; - font-size: 1rem; - padding: 0.6rem; - color: $font; - background-color: $tertiary; - border: none; - display: inline-block; - text-transform: capitalize; - font-style: bold; - color: $primary; - margin-left: 0.4rem; - margin-right: 0.4rem; +@include rippler; + border-radius: 5rem; + font-size: 0.8rem; + padding: 0.4rem 1.2rem; + color: $font; + background-color: $tertiary; + border: none; + display: inline-block; + text-transform: capitalize; + font-style: bold; + color: $primary; + // margin-left: 0.4rem; + // margin-right: 0.4rem; +} + +button:hover { + background-color: $link; } button[disabled] { - background-color: darken($secondary, 20%); - color: lighten($font, 20%); + background-color: darken($secondary, 8%); + color: lighten($font, 50%); } @mixin select { @@ -94,20 +107,39 @@ button[disabled] { } input { - @include select; +@include select + font-size: 0.6rem; + border-style: none; + background: white; + border-radius: 4rem; + color: $font; + padding: 0.6rem 1rem; } -select { - @include select; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; +pre { + background: white; + border-radius: 4rem; + border-style: none !important; + color: $font; +} - &:after { - content: ▸; - transform: rotate(90deg); - position: absolute; - } +select { +@include select; +-webkit-appearance: none; +-moz-appearance: none; +appearance: none; +font-size: 0.6rem; +border-style: none; +background: white; +border-radius: 4rem; +color: $font; +padding: 0.6rem 1rem; + +&:after { + content: ▸; + transform: rotate(90deg); + position: absolute; +} } pre { @@ -127,12 +159,54 @@ pre { .invalidInput { border-color: red; } + +h1 { + @include theme; + font-size: 1rem; + margin: 1rem; +} + p { - text-align: justify; - text-align-last: center; + font-size: 0.6rem; + line-height: 0.8rem; } -h1 { - @include theme; - font-size: 2rem; -} \ No newline at end of file +label { + font-size: 0.6rem; + font-weight: 600; +} + +input[type=checkbox] { + margin-right: 0.4rem; +} + +.card { + text-align: left; + border-style: none; + background: $secondary; + margin-bottom: 8px; +} + +.baseintro { + padding: 2rem 1rem; +} + +.card-header { + font-size: 0.8rem; + border-style: none; +} + +.blockwrapper { + display: block; +} + +.or { + font-size: 0.6rem; + margin-left: 0.4rem; + margin-right: 0.4rem; +} + +.buttonGroup { + margin-top: 1rem; + margin-bottom: 1rem; +} |