From 9ea72fbc322aaf3e2eed76ce28266a2fed071820 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sat, 26 Dec 2020 15:51:07 +0000 Subject: [PATCH] cleanup css --- base.css | 314 +++++++++++++++++++++++++---------------------------- index.html | 42 +++---- ts/main.ts | 18 +-- 3 files changed, 176 insertions(+), 198 deletions(-) diff --git a/base.css b/base.css index 39525e9..4e31bdd 100644 --- a/base.css +++ b/base.css @@ -11,158 +11,97 @@ background-color: #101010; } -.pageContainer { +.page-container { margin: 5% 20% 5% 20%; } + @media (max-width: 1100px) { - .pageContainer { + .page-container { margin: 2%; } } -.contactBox { - color: grey; -} -#container { - margin-top: 5%; - margin-bottom: 5%; -} -.tabText { + +.tab-button { font-size: 2rem; } -.mb-1 { - margin-bottom: 1rem; -} + .mb-half { margin-bottom: 0.5rem; } -.pb-1 { - padding-bottom: 1rem; -} -.pl-1 { - padding-left: 1rem; -} -.mr-1 { - margin-right: 1rem; -} -.ml-1 { - margin-left: 1rem; + +.mb-1 { + margin-bottom: 1rem; } + .mb-2 { margin-bottom: 2rem; } + +.mt-half { + margin-top: 0.5rem; +} + .mt-1 { margin-top: 1rem; } -.mt-half { - margin-top: 0.5rem; + +.ml-1 { + margin-left: 1rem; } -.inv-codearea { - /*width: 40%;*/ + +.mr-1 { + margin-right: 1rem; } + +.pb-1 { + padding-bottom: 1rem; +} + +.pl-1 { + padding-left: 1rem; +} + .al { text-align: left; } -.inline-block { - display: inline-block; -} + .ar { text-align: right; } -.monospace { - background-color: inherit; -} -.mt-half { - margin-top: 0.5rem; -} -.table-header { - padding-left: 0.5rem; - padding-bottom: 0.2rem; -} -.inv { - overflow: visible; -} -.inv-header { - display: flex; - justify-content: space-between; -} -.button-input { - display: flex; - justify-content: space-between; -} -.inv-row { - display: flex; - justify-content: space-between; - align-items: top; -} -.ib { + +.inline-block { display: inline-block; } -.inv-profileselect { - min-width: 100%; -} -.inv-table { - font-size: 0.8rem; -} -.no-lp { - padding-left: 0px; -} -.block { display: block; } -.hiding { - animation: slide-out 0.1s cubic-bezier(0.550, 0.055, 0.675, 0.190) forwards; -} -.hidden { - display: none; -} -.visible { - display: block; - /*animation: fade-in 0.2s cubic-bezier(0.550, 0.055, 0.675, 0.190) forwards;*/ -} -@keyframes fade-in { - from { - opacity: 0; - visibility: hidden; - } - to { - opacity: 1; - visibility: visible; - } -} -@keyframes slide-out { - from { - opacity: 1; - visibility: visible; - } - to { - opacity: 0; - visibility: hidden; - } -} -.toggle-details { - display: none; -} -.rotated { - transform: rotate(180deg); --webkit-transition: all 0.3s cubic-bezier(0,.89,.27,.92); --moz-transition: all 0.3s cubic-bezier(0,.89,.27,.92); - -o-transition: all 0.3s cubic-bezier(0,.89,.27,.92); - transition: all 0.3s cubic-bezier(0,.89,.27,.92); /* easeInOutQuart */ + +.align-top { + align-items: top; } -.not-rotated { - transform: rotate(0deg); --webkit-transition: all 0.3s cubic-bezier(0,.89,.27,.92); --moz-transition: all 0.3s cubic-bezier(0,.89,.27,.92); - -o-transition: all 0.3s cubic-bezier(0,.89,.27,.92); - transition: all 0.3s cubic-bezier(0,.89,.27,.92); /* easeInOutQuart */ +.flex-expand { + display: flex; + justify-content: space-between; } + +.flex-row { + display: flex; + flex-direction: row; +} + +.flex-row-group { + display: block; + flex-grow: 1; +} + .row { display: flex; flex-wrap: wrap; } + .col { flex: 1; margin: 0.5rem; } + @media screen and (max-width: 400px) { .row { flex-direction: column; @@ -171,28 +110,108 @@ flex: 45%; } } -.input { - box-sizing: border-box; + +.fr { + float: right; } -.submit { - border: none; - outline: none; +.monospace { + background-color: inherit; /* so we can use a17t code blocks */ +} + +sup.\~critical { + color: var(--color-critical-normal-content); +} + +.aside.sm { + font-size: 0.8rem; + padding: 0.8rem; +} + +.support.lg { + font-size: 1rem; +} + +.table-header { + padding-left: 0.5rem; + padding-bottom: 0.2rem; +} + +.inv { + overflow: visible; +} + +.inv-table { + font-size: 0.8rem; +} + +.inv-profileselect { + min-width: 100%; +} + +.input { + box-sizing: border-box; /* fixes weird length issue with inputs */ } .button-lg { height: 3rem; } -.full-width { - box-sizing: border-box; + +.submit { + border: none; + outline: none; /* remove browser styling on submit buttons */ +} + +.full-width { /* full width inputs */ + box-sizing: border-box; /* TODO: maybe remove if we figure out input thing? */ width: 100%; } + +.center { + justify-content: center; +} + +.no-lp { + padding-left: 0px; +} + +.block { + display: block; +} + +.focused { + display: block; +} + .unfocused { display: none; } -.fr { - float: right; + +.rotated { + transform: rotate(180deg); + -webkit-transition: all 0.3s cubic-bezier(0,.89,.27,.92); + -moz-transition: all 0.3s cubic-bezier(0,.89,.27,.92); + -o-transition: all 0.3s cubic-bezier(0,.89,.27,.92); + transition: all 0.3s cubic-bezier(0,.89,.27,.92); } + +.not-rotated { + transform: rotate(0deg); + -webkit-transition: all 0.3s cubic-bezier(0,.89,.27,.92); + -moz-transition: all 0.3s cubic-bezier(0,.89,.27,.92); + -o-transition: all 0.3s cubic-bezier(0,.89,.27,.92); + transition: all 0.3s cubic-bezier(0,.89,.27,.92); +} + +.stealth-input { + font-size: 1rem; + padding-top: 0.1rem; + padding-bottom: 0.1rem; + margin-left: 0.5rem; + margin-right: 1rem; + max-width: 50%; +} + .stealth-input-hidden { border-style: none; --fallback-box-shadow: none; @@ -201,72 +220,31 @@ padding-top: 0.1rem; padding-bottom: 0.1rem; } -.stealth-input { - font-size: 1rem; - padding-top: 0.1rem; - padding-bottom: 0.1rem; - margin-left: 0.5rem; - margin-right: 1rem; - max-width: 50%; -} .settings-section-button { box-sizing: border-box; width: 100%; height: 2.5rem; - background-color: rgba(0, 0, 0, 0); + background-color: rgba(0,0,0,0); } -.settings-section-button:hover { - box-sizing: border-box; - width: 100%; - height: 2.5rem; - background-color: var(--color-neutral-normal-fill); - filter: brightness(var(--settings-section-button-filter)) !important; -} -.settings-section-button:focus { +.settings-section-button:hover, .settings-section-button:focus { box-sizing: border-box; width: 100%; height: 2.5rem; background-color: var(--color-neutral-normal-fill); filter: brightness(var(--settings-section-button-filter)) !important; } + .settings-section-button.selected { background-color: var(--color-neutral-normal-fill); - --button-filter-brightness: var(--settings-section-button-filter); + --buton-filter-brightness: var(--settings-section-button-filter); filter: brightness(var(--settings-section-button-filter)) !important; } -.text-critical { - color: var(--color-critical-normal-content); -} -.aside.small { - font-size: 0.8rem; - padding: 0.8rem; -} + .setting { margin-bottom: 0.25rem; } -.support.large { - font-size: 1rem; -} - -.inline { - display: inline; -} - -.flex-row { - display: flex; - flex-direction: row; -} - -.fw-group { - display: block; - flex-grow: 1; -} - -.center { - justify-content: center; -} .textarea { resize: vertical; diff --git a/index.html b/index.html index 8c176e3..33cc87d 100644 --- a/index.html +++ b/index.html @@ -36,12 +36,12 @@ Modify Settings ×

Apply settings from an existing profile, or source them directly from a user.

-
@@ -52,7 +52,7 @@ -