github.com/freiheit-com/kuberpult@v1.24.2-0.20240328135542-315d5630abe6/services/frontend-service/src/assets/_variables.scss (about) 1 /*This file is part of kuberpult. 2 3 Kuberpult is free software: you can redistribute it and/or modify 4 it under the terms of the Expat(MIT) License as published by 5 the Free Software Foundation. 6 7 Kuberpult is distributed in the hope that it will be useful, 8 but WITHOUT ANY WARRANTY; without even the implied warranty of 9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 MIT License for more details. 11 12 You should have received a copy of the MIT License 13 along with kuberpult. If not, see <https://directory.fsf.org/wiki/License:Expat>. 14 15 Copyright 2023 freiheit.com*/ 16 $border-radius-small: 3px; 17 $border-radius-medium: 6px; 18 $border-radius-large: 8px; 19 20 // Navigation variables 21 $nav-bar-width: 4em; 22 $nav-list-item-padding: 10px; // (4em - 40px)/2 - indicator width/2 23 $nav-list-item-height: 130px; 24 $nav-list-item-gap: 32px; 25 $nav-indicator-width: 4px; 26 27 // Buttons 28 $small-warn-button-padding-left: 10px; 29 $small-warn-button-padding-right: $small-warn-button-padding-left; 30 $small-warn-button-font-size: 8px; 31 $small-warn-button-font-weight: 700; 32 33 // Sidebar variables 34 $sidebar-width: 30em; 35 $sidebar-planned-actions-title-right-centering: 9em; 36 $sidebar-apply-button-height: 3em; 37 $sidebar-show-button-height: 3.5em; 38 $sidebar-show-button-width: 4em; 39 $sidebar-hidden-displacement: -$sidebar-width; 40 $sidebar-transition-duration-large-screen: 0.4s; 41 42 // Top App Bar 43 $top-app-bar-padding: 0.5em 0 0.5em $nav-bar-width; // 0.5em on top and bottom each 44 $top-app-bar-height: 5em; // 5em = 80px 45 $top-app-bar-section-gap: 61px; 46 // Logo 47 // 4em = 64px - Logo_width(40px) = 24px / 2 = 12px 48 // top_bar_height(5em) = 80px - Logo_height(50px) = 30px / 2 = 15px 49 $kp-logo-padding: 15px 12px; 50 51 // Locks Page 52 $locks-list-header-border-radius: 10px; 53 $locks-list-header-height: 3em; 54 $locks-list-header-padding: 0.5em; 55 $locks-list-row-spacing: -0.3em 0; 56 $locks-list-row-height: 3.5em; 57 $locks-list-row-margin: 0.5em; 58 $locks-button-delete-height: 4em; 59 $locks-date-outdated-color: #ff8a00; 60 $locks-list-margin: 0 0 2em 0; 61 62 // Environment Page 63 $environment-lock-display-margin: 0px 20px; 64 $environment-locks-bottom: 20px; 65 $environment-locks-margin: 8px; 66 $environment-lock-scale: scale(2); 67 $environment-lane-height: 180px; 68 $environment-lane-border-radius: 15px; 69 $environment-lane-margin: 20px 0; 70 $environment-lane-header-top-displacement: -10px; 71 $environment-lane-header-left-displacement: -10px; 72 $environment-lane-header-color: var(--mdc-theme-surface); 73 $environment-group-lane-header-background-color: #eee; 74 $environment-lane-header-padding: 13px 20px; 75 $environment-lane-header-border-radius: 10px; 76 $environment-lane-header-height: 62px; 77 $environment-lane-background-color: var(--mdc-theme-surface, #fff); 78 $environment-actions-right-displacement: 20px; 79 $environment-actions-top-displacement: 10px; 80 $environment-add-lock-button-border: 1px solid var(--mdc-theme-primary); 81 $environment-add-lock-button-border-radius: 10px; 82 $environment-add-lock-button-color: var(--mdc-theme-primary); 83 $environment-buttons-column-margin: 4px; 84 $environment-add-lock-button-padding-left: 1em; 85 86 // Release Dialog 87 $release-dialog-outer-border-radius: 10px; 88 $release-dialog-top-border-radius: $release-dialog-outer-border-radius $release-dialog-outer-border-radius 0px 0px; 89 $release-dialog-bottom-border-radius: 0px 0px $release-dialog-outer-border-radius $release-dialog-outer-border-radius; 90 $release-dialog-inner-border-radius: 10px; 91 $release-dialog-label-displacement: -10px; 92 $release-dialog-lock-icon-size: 24px; 93 94 // Environment Config Dialog 95 $environment-config-dialog-outer-border-radius: 10px; 96 $environment-config-dialog-top-border-radius: $release-dialog-outer-border-radius $release-dialog-outer-border-radius 97 0px 0px; 98 $environment-config-dialog-bottom-border-radius: 0px 0px $release-dialog-outer-border-radius 99 $release-dialog-outer-border-radius; 100 $environment-config-dialog-inner-border-radius: 10px; 101 $environment-config-dialog-label-displacement: -10px; 102 $environment-config-dialog-lock-icon-size: 24px; 103 104 // Environment Chip 105 $env-group-chip-margin: 4px; 106 $env-chip-height: 20px; 107 $env-chip-padding: 4px; 108 $env-color-yolo: #dc00dc; 109 $env-color-prod: #dc0000; 110 $env-color-canary: #f37e00; 111 $env-color-pre_prod: #f3be00; 112 $env-color-other: #a5d8ff; 113 $env-color-upstream: #50c241; 114 $env-color-unrecognized: #887799; 115 116 // Release Card 117 $release-card-height: 75px; 118 $release-card-width: 160px; 119 $release-card-margin: -16px 4px 0 4px; 120 $release-card-inner-padding: 10px; 121 $release-card-environments-min-height: 26px; 122 $release-card-hash-height: 22px; 123 124 // Release Card Tooltip 125 $release-card-tooltip-border-color: #bababa; 126 $release-card-tooltip-width: 220px; 127 $release-card-tooltip-padding: 8px 4px; 128 $release-card-tooltip-caret-shift-left: 55px; 129 130 // Service Lane 131 $service-lane-header-height: 40px; 132 $service-lane-header-padding: 0 10px; 133 $service-lane-header-actions-margin-left: 40px; 134 $service-lane-header-actions-height: 28px; 135 $service-lane-header-actions-button-padding-left: 16px; 136 $service-lane-releases-margin: 4px 0 12px 0; 137 138 // Service Lane Diff Element 139 $service-lane-diff-element-border-color: #bababa; 140 $service-lane-diff-element-width: 50px; 141 142 // Main content padding 143 $main-content-padding: ($top-app-bar-height + 0.5em) 1em 1em ($nav-bar-width + 1em); 144 145 $warning-color: #e0d541; 146 147 :root { 148 // Colors 149 --mdc-theme-primary: #2d70d6; 150 --mdc-theme-on-primary: #ffffff; 151 --mdc-theme-background: #ffffff; 152 --mdc-theme-surface: #f5f5f5; 153 --mdc-theme-on-surface: #4a4a4a; 154 --mdc-theme-on-surface-light: #8a8a8a; 155 --mdc-theme-secondary: #00afff; 156 --mdc-theme-on-secondary: #ffffff; 157 --mdc-theme-error: rgba(220, 0, 0, 0.92); 158 --mdc-theme-warn: rgba(243, 190, 0, 0.92); 159 --mdc-theme-success: rgba(80, 194, 65, 0.93); 160 --mdc-filled-button-disabled-container-color: rgb(89, 89, 89); 161 }