diff --git a/assets/styles/base/_variables.scss b/assets/styles/base/_variables.scss index c38b5d8b3e..794b595816 100644 --- a/assets/styles/base/_variables.scss +++ b/assets/styles/base/_variables.scss @@ -1,7 +1,10 @@ $max-width: 1440px !default; $min-width: 75% !default; -$input-height: 55px; -// $input-height-small: 35px; +$input-height: 54px; + +$input-padding-lg: 18px; +$input-padding-sm: 10px; +$input-line-height: 18px; $column-gutter: 1.75%; diff --git a/assets/styles/global/_button.scss b/assets/styles/global/_button.scss index cf94e28d22..7a9d5d9db0 100644 --- a/assets/styles/global/_button.scss +++ b/assets/styles/global/_button.scss @@ -1,11 +1,7 @@ -// $btn-padding: 15px 40px; -$btn-padding: 0 20px 0 20px; +$btn-padding: 0 21px 0 21px; $btn-sm-padding: 0 7px 0 7px; $btn-height: 40px; $btn-sm-height: 30px; -// $xs-padding: 2px 3px; -// $sm-padding: 8px 13px; -// $lg-padding: 18px 30px; // ----------------------------------------------------------------------------- // This file contains all styles related to the button component. @@ -22,15 +18,16 @@ button, -moz-user-select: none; -ms-user-select: none; user-select: none; - border: 1px solid transparent; + border: 0; padding: $btn-padding; border-radius: var(--border-radius); - color: white; - // height: $btn-height; - line-height: 38px; + color: var(--lightest); + line-height: $btn-height; + min-height: $btn-height; &:hover { text-decoration: none; + color: var(--lightest); } &.bg-transparent { @@ -57,13 +54,19 @@ button, .btn-group-sm > .btn, .btn-sm .btn-label { padding: $btn-sm-padding; - height: $btn-sm-height; + min-height: $btn-sm-height; line-height: 28px; } //btn roles .role-primary { background: var(--link-text); + color: var(--primary-text); + + &:hover { + background-color: var(--primary-hover-bg); + color: var(--primary-text); + } } .role-secondary { @@ -81,9 +84,6 @@ button, .role-link { background: transparent; color: var(--link-text) !important; - padding: $btn-padding; - letter-spacing: 1px; - text-transform: uppercase; } .role-multi-action { @@ -91,9 +91,6 @@ button, border: solid thin var(--link-text); color: var(--link-text); border-radius: 2px; - // line-height: 0; - // width: $btn-height; - // padding: 0; } .icon-group i { diff --git a/assets/styles/global/_form.scss b/assets/styles/global/_form.scss index f5d0a600b1..4279a3be78 100644 --- a/assets/styles/global/_form.scss +++ b/assets/styles/global/_form.scss @@ -17,7 +17,7 @@ TEXTAREA, display: block; box-sizing: border-box; width: 100%; - padding: 10px; + padding: $input-padding-sm; background-color: var(--input-bg); border-radius: var(--border-radius); border: solid var(--border-width) var(--input-border); @@ -59,9 +59,13 @@ TEXTAREA, } } +INPUT[type='search']:not(.vs__search) { + padding: calc(#{$input-padding-sm} + 2px); +} + TEXTAREA { - padding: 17px 10px 10px 10px; - line-height: 1.25; + padding: $input-padding-lg 10px 10px 10px; + line-height: $input-line-height; } FORM { @@ -118,46 +122,10 @@ INPUT.inline-input { margin: 0 10px; } - -/* -.validated-input { - INPUT { - outline-width: 2px; - outline-offset: -2px; - } - - &.has-warning INPUT { - border-color: var(--warning); - } - - &.has-error INPUT { - border-color: var(--error); - } - - &.has-success INPUT { - border-color: var(--success); - padding-right: 32px; - background-image: url(../images/field-valid.svg); - background-size: 30px; - background-position: right; - background-repeat: no-repeat; - } - - .input-warning-message { - color: var(--warning-text); - } - - .input-error-message { - color: var(--error); - } -} -*/ - .input-title { clear: both; margin-left: 24px; font-size: 12px; - // color: rgba(255,255,255,.6); } .fixed select, .fixed.v-select, .fixed input:not(.vs__search){ diff --git a/assets/styles/global/_labeled-input.scss b/assets/styles/global/_labeled-input.scss index 421725e50b..822690413d 100644 --- a/assets/styles/global/_labeled-input.scss +++ b/assets/styles/global/_labeled-input.scss @@ -18,14 +18,6 @@ } } - /* - &.raised LABEL, .corner { - transform: translate(0, -20px); - font-size: 0.75em; - color: var(--input-label); - } - */ - .corner { top: 5px; right: 10px; @@ -36,6 +28,10 @@ transform: none !important; } + .required { + color: var(--error); + } + INPUT, SELECT { position: relative; font-size: 14px; @@ -59,17 +55,17 @@ background-color: transparent; outline: 0; box-shadow: none; - padding: 17px 0 0 0; - line-height: 1.25; + padding: $input-padding-lg 0 0 0; + line-height: calc(#{$input-line-height} + 1px); &.no-label { - padding: 8.5px 0px 8.5px 0px; + padding: $input-padding-sm 0px $input-padding-sm 0px; } } &.view > DIV:not(.addon) { font-size: 14px; - padding: 17px 0 0 0; + padding: $input-padding-lg 0 0 0; &.no-label { padding-top:0px; @@ -111,7 +107,3 @@ color: var(--input-label); } } - -.required { - color: red; -} \ No newline at end of file diff --git a/assets/styles/global/_select.scss b/assets/styles/global/_select.scss index 43e5f2e141..0851ca653a 100644 --- a/assets/styles/global/_select.scss +++ b/assets/styles/global/_select.scss @@ -4,7 +4,7 @@ width: 100%; .selected { - padding-top: 17px; + padding-top: $input-padding-lg; } } @@ -12,13 +12,14 @@ > .labeled-select:not(.taggable), > .unlabeled-select:not(.taggable) { min-height: $input-height; + padding-bottom: calc(#{$input-padding-sm}/2); } } .labeled-select, .unlabeled-select { min-width: 75px; - // min-height: $input-height; + // line-height: $input-line-height; .v-select { &.inline { @@ -63,7 +64,7 @@ } .v-select.inline:not(.vs--single) { - margin-bottom: -4px; // targets multi-select tag boxes to make the same size as rows next to it + margin-bottom: -5px; // targets multi-select tag boxes to make the same size as rows next to it min-height: 30px; .vs__selected { @@ -93,6 +94,7 @@ background-color: var(--input-bg); border-radius: var(--border-radius); color: var(--input-text); + padding: 3px 0; .vs--single .vs__selected-options { flex-wrap: nowrap; @@ -104,11 +106,7 @@ height: 100%; &.vs--unsearchable { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; + } .vs__dropdown-toggle { @@ -122,6 +120,7 @@ &:not(.view) { background-color: var(--input-bg); + border: solid var(--border-width) var(--input-border); &:hover { &, @@ -130,4 +129,8 @@ } } } + + .labeled-tooltip .status-icon { + top: $input-padding-sm; + } } diff --git a/assets/styles/global/_tooltip.scss b/assets/styles/global/_tooltip.scss index b1d6443861..a0a78ccbe9 100644 --- a/assets/styles/global/_tooltip.scss +++ b/assets/styles/global/_tooltip.scss @@ -61,7 +61,7 @@ border-top-width: 0; border-bottom-color: var(--tooltip-bg); top: 1px; - left: -$triangle-inner-size; + left: -20px; background: transparent; } } diff --git a/assets/styles/themes/_light.scss b/assets/styles/themes/_light.scss index e1872aeccb..08a807f707 100644 --- a/assets/styles/themes/_light.scss +++ b/assets/styles/themes/_light.scss @@ -67,7 +67,7 @@ $selected: rgba($primary, .5); --header-bg : #3797D5; --header-logo : #{$lightest}; --header-btn-bg : #317DB0; - --header-btn-text : white; + --header-btn-text : #{$lightest}; --header-height : 55px; --nav-width : 250px; --nav-bg : #{$lighter}; @@ -83,7 +83,7 @@ $selected: rgba($primary, .5); --border-width : 1px; --border-radius : 4px; --outline : #{rgba($medium, 0.75)}; - --outline-width : 2px; + --outline-width : 1px; --accent-btn : #{rgba($primary, 0.2)}; --accent-btn-hover : #{rgba($primary, 0.5)}; diff --git a/assets/styles/vendor/vue-select.scss b/assets/styles/vendor/vue-select.scss index 2e5bb90df4..c4d6f5872f 100644 --- a/assets/styles/vendor/vue-select.scss +++ b/assets/styles/vendor/vue-select.scss @@ -33,7 +33,7 @@ position: absolute; left: -2px; z-index: z-index('dropdownContent'); - padding: 5px 0; + padding: $input-padding-sm 0; margin: 0; width: calc(100% + 4px); max-height: 350px; @@ -60,7 +60,7 @@ .vs__dropdown-option { line-height: 1.42857143; /* Normalize line height */ display: block; - padding: 3px 20px; + padding: 0 calc(#{$input-padding-sm}/2); clear: both; color: var(--dropdown-text); white-space: nowrap; @@ -200,7 +200,7 @@ $transition-duration: 150ms; width: 0; max-width: 100%; flex-grow: 1; - margin-left: 7px; + margin-left: $input-padding-sm; } .vs__search::placeholder { @@ -242,7 +242,7 @@ $transition-duration: 150ms; border: 1px solid var(--primary); border-radius: 3px; color: var(--link-text); - margin-left: 7px; + margin-left: $input-padding-sm; &:not(:last-of-type) { margin-right: 2px; @@ -283,7 +283,7 @@ $transition-duration: 150ms; opacity: 0.4; } .vs__search { - margin-left: 7px; + margin-left: $input-padding-sm; } } .vs__selected { @@ -346,9 +346,19 @@ $transition-duration: 150ms; } header .vs-select .vs__dropdown-toggle { - background: red !important; + background: var(--error) !important; } .vs__no-options { padding: 3px 20px; } + +header { + .unlabeled-select { + padding: 0; + + &.focused { + border: 0; + } + } +} diff --git a/components/AsyncButton.vue b/components/AsyncButton.vue index b67b3588b4..471d94d4f6 100644 --- a/components/AsyncButton.vue +++ b/components/AsyncButton.vue @@ -40,7 +40,7 @@ export default { actionColor: { type: String, - default: 'bg-primary', + default: 'role-primary', }, waitingColor: { type: String, diff --git a/components/Glance.vue b/components/Glance.vue index 90817d5ba5..a3c64d3eb3 100644 --- a/components/Glance.vue +++ b/components/Glance.vue @@ -27,7 +27,6 @@ export default { flex-direction: row; justify-content: space-evenly; padding: 11px; - align-items: center; .tile { display: flex; diff --git a/components/ResourceDetail/Masthead.vue b/components/ResourceDetail/Masthead.vue index e51e5b51a8..573930b042 100644 --- a/components/ResourceDetail/Masthead.vue +++ b/components/ResourceDetail/Masthead.vue @@ -398,4 +398,18 @@ export default { position: relative; top: -2px; } + + .left-right-split { + display: grid; + align-items: center; + + .left-half { + grid-column: 1; + } + + .right-half { + grid-column: 2; + } + } + diff --git a/components/RoleBindings.vue b/components/RoleBindings.vue index 77aa47d9cd..b2c658eba3 100644 --- a/components/RoleBindings.vue +++ b/components/RoleBindings.vue @@ -403,7 +403,7 @@ export default { />
-
diff --git a/components/SortableTable/index.vue b/components/SortableTable/index.vue index b4f72986b5..83b77b671c 100644 --- a/components/SortableTable/index.vue +++ b/components/SortableTable/index.vue @@ -462,7 +462,7 @@ export default { v-for="act in availableActions" :key="act.action" type="button" - class="btn bg-primary" + class="btn role-primary" :disabled="!act.enabled" @click="applyTableAction(act, null, $event)" @mouseover="setBulkActionOfInterest(act)" @@ -680,9 +680,6 @@ $spacing: 10px; } tbody { - // border-left: 40px solid transparent; - // border-right: 40px solid transparent; - // border-bottom: 2px solid var(--border); tr { border-bottom: 1px solid var(--sortable-table-top-divider); diff --git a/components/auth/login/github.vue b/components/auth/login/github.vue index b57dcf6d3a..7e2563cdd7 100644 --- a/components/auth/login/github.vue +++ b/components/auth/login/github.vue @@ -13,7 +13,7 @@ export default { diff --git a/components/form/ArrayListGrouped.vue b/components/form/ArrayListGrouped.vue index 4ca261d6ec..c97abf0871 100644 --- a/components/form/ArrayListGrouped.vue +++ b/components/form/ArrayListGrouped.vue @@ -21,7 +21,7 @@ export default {
- - - +
@@ -477,7 +477,7 @@ export default { trigger="click" placement="top" > - diff --git a/components/nav/WindowManager/Window.vue b/components/nav/WindowManager/Window.vue index 25743e912f..401db54240 100644 --- a/components/nav/WindowManager/Window.vue +++ b/components/nav/WindowManager/Window.vue @@ -65,7 +65,7 @@ export default { diff --git a/pages/design-system/form-controls.vue b/pages/design-system/form-controls.vue index 9befde6d97..ff01e03c88 100644 --- a/pages/design-system/form-controls.vue +++ b/pages/design-system/form-controls.vue @@ -73,7 +73,7 @@ export default { :tooltip="tooltip" />
-
+