1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00
Files
browser/apps/web/src/scss/base.scss
Oscar Hinton 38d8fbdb5a Vertical Vault Navigation (#6957)
* WIP admin console layout

* Update icons

* Migrate more things

* Migrate the last pages

* Move header to web

* Fix story not working

* Convert header component to standalone

* Migrate org layout to standalone

* Enable org switcher

* Add AC to product switcher

* Migrate provider portal to vertical nav

* Migrate PM

* Prettier fixes

* Change AC and PP to use secondary variant layout & update logos

* Remove full width setting

* Remove commented code

* Add header to report pages

* Add provider portal banner

* Fix banner for billing pages

* Move vault title to header

* Prevent scrollbar jumping

* Move send button to header

* Replace search input with bit-search

* Remove unused files and css

* Add banner

* Tweak storage option

* Fix duplicate nav item after merge

* Migrate banner state to state provider framework

* [AC-2078] Fix device approvals header

* [PM-5861] Hide AC from product switcher for users that do not have access

* [PM-5860] Fix Vault and Send page headers

* [AC-2075] Fix missing link on reporting nav group

* [AC-2079] Hide Payment Method and Billing History pages for self-hosted instances

* [AC-2090] Hide reports/event log nav items for users that do not have permission

* [AC-2092] Fix missing provider portal option in product switcher on page load

* Add null check for organization in org layout component

* [AC-2094] Fix missing page header for new client orgs page

* [AC-2093] Update New client button styling

* Fix failing test after merge

* [PM-2087] Use disk-local for web layout banner

* [PM-6041] Update banner copy to read "web app"

* [PM-6094] Update banner link to marketing URL

* [PM-6114] add CL container component to VVR pages (#7802)

* create bit-container component

* add container to all page components

* Fix linting errors after merge with main

* Fix product switcher stories

* Fix web-header stories

* mock org state properly in product switcher stories (#7956)

* refactor: move web layout migration banner logic into a service (#7958)

* make CL codeowner of web header files

* move migration banner logic to service; update stories

* [PM-5862] Ensure a sync has run before hiding navigation links

* Remove leftover banner global state

* Re-add dropped selfHosted ngIf

* Add rel noreferrer

* Remove comment

---------

Co-authored-by: Shane Melton <smelton@bitwarden.com>
Co-authored-by: Will Martin <contact@willmartian.com>
2024-02-23 09:22:45 -08:00

308 lines
4.7 KiB
SCSS

html {
font-size: 14px;
}
body {
min-width: 1010px;
&.layout_frontend {
@media (prefers-color-scheme: dark) {
background-color: $darkDarkBlue2;
}
@media (prefers-color-scheme: light) {
background-color: $white;
}
@include themify($themes) {
background-color: themed("layoutFrontendColor");
color: themed("textHeadingColor");
}
}
@include themify($themes) {
background-color: themed("backgroundColor");
color: themed("textColor");
}
&.full-width:not(.layout_frontend) {
.container {
min-width: 980px;
width: 90%;
}
}
}
.container {
margin: 0 auto;
max-width: none !important;
padding: 0;
width: 980px;
}
.page-header,
.secondary-header,
.tabbed-header {
margin-bottom: 0.5rem;
padding-bottom: 0.6rem;
&:not(.text-danger) {
h1,
h2,
h3,
h4 {
margin: 0;
@include themify($themes) {
color: themed("textHeadingColor");
}
}
}
}
.page-header,
.secondary-header {
@include themify($themes) {
border-bottom: 1px solid themed("separator");
}
}
.secondary-header,
.spaced-header {
margin-top: 4rem;
}
.tabbed-header {
margin-top: 1.5rem;
}
img.logo {
display: block;
height: 43px;
margin: 0 auto;
width: 284px;
}
img.logo-themed {
@include themify($themes) {
content: url("../images/logo-" + themed("logoSuffix") + "@2x.png");
}
}
.page-content {
margin-top: 20px;
}
hr,
.dropdown-divider {
@include themify($themes) {
border-top: 1px solid themed("separatorHr");
}
}
.min-height-fix {
min-height: 1px;
}
.overflow-hidden {
overflow: hidden;
}
.cursor-move {
cursor: move !important;
}
h1,
h2,
h3,
h4,
h5 {
@include themify($themes) {
color: themed("textHeadingColor");
}
small {
font-size: 80%;
}
&.spaced-header {
@include themify($themes) {
color: themed("textHeadingColor");
}
}
}
a {
@include themify($themes) {
color: themed("linkColor");
}
&.text-body {
@include themify($themes) {
color: themed("textHeadingColor") !important;
font-weight: themed("linkWeight");
}
}
}
code {
@include themify($themes) {
color: themed("codeColor");
}
}
.bwi-icon-above-input {
height: 1.5em;
}
.text-lg {
font-size: $font-size-lg;
}
.text-strike {
text-decoration: line-through;
}
.font-weight-semibold {
font-weight: 600;
}
.btn:focus,
.btn.focus,
.form-control:focus {
@include themify($themes) {
box-shadow: 0 0 0 0.2rem themed("focus");
}
}
/* Override Bootstrap theming */
.bg-primary {
@include themify($themes) {
background-color: themed("bgPrimaryColor");
}
}
.bg-light {
@include themify($themes) {
background-color: themed("bgLightColor") !important;
}
}
.bg-success {
@include themify($themes) {
background-color: themed("success") !important;
color: themed("textSuccessColor") !important;
}
}
.bg-warning {
@include themify($themes) {
background-color: themed("warning") !important;
color: themed("textWarningColor") !important;
}
}
.bg-error,
.bg-danger {
@include themify($themes) {
background-color: themed("danger") !important;
color: themed("textDangerColor") !important;
}
}
.bg-info {
@include themify($themes) {
background-color: themed("info") !important;
color: themed("textInfoColor") !important;
}
}
.border-primary {
@include themify($themes) {
border-color: themed("borderPrimaryColor") !important;
}
}
.border-warning {
@include themify($themes) {
border-color: themed("warning") !important;
}
}
.border-danger {
@include themify($themes) {
border-color: themed("danger") !important;
}
}
.border-info {
@include themify($themes) {
border-color: themed("info") !important;
}
}
.text-success {
@include themify($themes) {
color: themed("success") !important;
}
& > h1,
h2,
h3,
h4 {
@include themify($themes) {
color: themed("success") !important;
}
}
}
.text-warning {
@include themify($themes) {
color: themed("warning") !important;
}
& > h1,
h2,
h3,
h4 {
@include themify($themes) {
color: themed("warning") !important;
}
}
}
.text-danger {
&:not(.dropdown-item) {
@include themify($themes) {
color: themed("danger") !important;
}
& > h1,
h2,
h3,
h4 {
@include themify($themes) {
color: themed("danger") !important;
}
}
}
}
.text-muted {
@include themify($themes) {
color: themed("textMuted") !important;
}
}
button:not([bitbutton]):not([biticonbutton]) i.bwi,
a i.bwi {
margin-right: 0.25rem;
}
.no-items {
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}