bitwarden-desktop/src/scss/base.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

136 lines
2.0 KiB
SCSS
Raw Normal View History

2018-04-20 04:54:37 +02:00
@import "variables.scss";
2018-01-27 19:12:06 +01:00
* {
box-sizing: border-box;
2018-01-31 22:51:59 +01:00
padding: 0;
margin: 0;
2018-01-27 19:12:06 +01:00
}
html,
body {
height: 100%;
font-family: $font-family-sans-serif;
font-size: $font-size-base;
2018-01-31 22:51:59 +01:00
line-height: $line-height-base;
2018-01-27 19:12:06 +01:00
}
2018-05-30 21:21:41 +02:00
body {
2018-05-31 04:28:04 +02:00
color: $text-color;
background-color: $background-color-alt2;
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed("textColor");
background-color: themed("backgroundColorAlt2");
}
}
2018-01-27 19:12:06 +01:00
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-family-sans-serif;
2021-12-20 15:47:17 +01:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed("textColor");
}
2018-01-27 19:12:06 +01:00
}
2018-01-30 23:24:02 +01:00
p {
2018-01-31 22:51:59 +01:00
margin-bottom: 10px;
2018-01-30 23:24:02 +01:00
}
2018-02-16 21:03:29 +01:00
ul,
ol {
margin-bottom: 10px;
}
2018-01-30 23:24:02 +01:00
img {
border: none;
}
2018-01-27 19:12:06 +01:00
a {
text-decoration: none;
2018-01-31 23:58:06 +01:00
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed("primaryColor");
}
2018-01-31 23:58:06 +01:00
&:hover,
&:focus {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: darken(themed("primaryColor"), 6%);
2018-01-31 23:58:06 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
}
2018-04-20 04:54:37 +02:00
input,
select,
textarea {
2018-05-30 21:21:41 +02:00
@include themify($themes) {
color: themed("textColor");
background-color: themed("inputBackgroundColor");
}
2018-04-20 04:54:37 +02:00
}
2018-01-27 19:12:06 +01:00
input,
select,
textarea,
button {
font-size: $font-size-base;
font-family: $font-family-sans-serif;
2018-06-29 05:20:31 +02:00
line-height: $line-height-base;
2018-01-27 19:12:06 +01:00
}
2018-01-27 20:43:29 +01:00
button {
Change links to buttons, expose `aria-pressed` for toggles, add `aria-expanded` to send view's "Options" (#1437) * Change links to buttons, expose `aria-pressed` for toggles - also make existing `<a routerLink...>` type controls keyboard focusable with the addition of `tabindex="0"` * Correctly set aria-pressed now that I have a working build environment, could verify correct way to set this with my limited Angular knowledge * Change more links to buttons, initial style changes * Fix layout of <button> elements with .box-content-row * Update jslib submodule * Add `aria-expanded` to the send view's "Show options" expand/collapse control * Fix position of "Edit" pencil when hovering over folders * Update jslib * Change sends list links to buttons * Add `aria-pressed` to vault and send list buttons Programmatically denote which of the buttons is currently active/shown in the right-most panel * Fix incorrect "Options" expand/collapse button in add-edit view Currently, that buttons lacks an accName because the "Options" text is outside of it. * Add `aria-pressed` to the send left-hand column filters * Simplify base, list, and vault styles Since links are now buttons, no need to double up selectors for both types of elements. No need to double-up theming in base, as this also causes incorrect "x" in toasts. * Remove unnecessary `position:relative` Fixes issue with cut-off focus outlines, has no other adverse effect * Fix styling for last child of action buttons Old approach of making right padding smaller results in unsightly, off-center icon (noticeable when focus outline is visible). This visually remains the same, but reduces right-hand margin instead.
2022-04-30 16:09:41 +02:00
border: none;
background: transparent;
color: inherit;
2018-01-28 00:22:49 +01:00
white-space: nowrap;
2018-02-01 03:13:42 +01:00
cursor: pointer;
2018-01-27 20:43:29 +01:00
}
2018-01-27 19:12:06 +01:00
textarea {
resize: vertical;
}
div:not(.modal)::-webkit-scrollbar,
.cdk-virtual-scroll-viewport::-webkit-scrollbar {
2018-01-27 19:12:06 +01:00
width: 10px;
height: 10px;
}
div:not(.modal)::-webkit-scrollbar-track,
.cdk-virtual-scroll-viewport::-webkit-scrollbar-track {
2018-01-27 19:12:06 +01:00
background-color: transparent;
}
div:not(.modal)::-webkit-scrollbar-thumb,
.cdk-virtual-scroll-viewport::-webkit-scrollbar-thumb {
2018-01-27 19:12:06 +01:00
border-radius: 10px;
margin-right: 1px;
2018-06-01 18:13:46 +02:00
@include themify($themes) {
background-color: themed("scrollbarColor");
}
2018-01-27 19:12:06 +01:00
&:hover {
2018-06-01 18:13:46 +02:00
@include themify($themes) {
background-color: themed("scrollbarHoverColor");
2018-01-27 19:12:06 +01:00
}
2021-12-20 15:47:17 +01:00
}
2018-01-27 19:12:06 +01:00
}
// cdk-virtual-scroll
.cdk-virtual-scroll-viewport {
width: 100%;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.cdk-virtual-scroll-content-wrapper {
width: 100%;
}