bitwarden-estensione-browser/src/popup/scss/base.scss

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

472 lines
7.6 KiB
SCSS
Raw Normal View History

@import "variables.scss";
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
font-family: $font-family-sans-serif;
font-size: $font-size-base;
line-height: $line-height-base;
-webkit-font-smoothing: antialiased;
}
body {
width: 375px !important;
height: 600px !important;
overflow: hidden;
2018-05-31 05:11:05 +02:00
color: $text-color;
background-color: $background-color;
2021-12-21 15:43:35 +01:00
2018-05-31 05:11:05 +02:00
@include themify($themes) {
color: themed("textColor");
background-color: themed("backgroundColor");
2021-12-21 15:43:35 +01:00
}
2018-04-10 04:25:03 +02:00
&.body-sm {
width: 375px !important;
height: 500px !important;
}
2018-04-10 04:25:03 +02:00
&.body-xs {
width: 375px !important;
height: 300px !important;
}
2018-04-10 04:25:03 +02:00
&.body-full {
width: 100% !important;
height: 100% !important;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $font-family-sans-serif;
font-size: $font-size-base;
font-weight: normal;
}
p {
margin-bottom: 10px;
}
ul,
ol {
margin-bottom: 10px;
}
img {
border: none;
}
a {
text-decoration: none;
2018-05-31 05:11:05 +02:00
@include themify($themes) {
color: themed("primaryColor");
}
&:hover,
&:focus {
2018-05-31 05:11:05 +02:00
@include themify($themes) {
color: darken(themed("primaryColor"), 6%);
}
2021-12-21 15:43:35 +01:00
}
}
2018-04-20 04:53:55 +02:00
input,
select,
textarea {
2018-05-31 05:11:05 +02:00
@include themify($themes) {
color: themed("textColor");
background-color: themed("inputBackgroundColor");
}
2018-04-20 04:53:55 +02:00
}
input,
select,
textarea,
button {
font-size: $font-size-base;
font-family: $font-family-sans-serif;
}
button {
white-space: nowrap;
cursor: pointer;
}
textarea {
resize: vertical;
}
app-root > div {
2018-04-14 04:08:24 +02:00
height: 100%;
}
main::-webkit-scrollbar,
2021-05-21 06:06:26 +02:00
cdk-virtual-scroll-viewport::-webkit-scrollbar {
width: 10px;
height: 10px;
}
main::-webkit-scrollbar-track {
background-color: transparent;
}
2021-05-21 06:06:26 +02:00
cdk-virtual-scroll-viewport::-webkit-scrollbar-track {
@include themify($themes) {
background-color: themed("backgroundColor");
}
}
main::-webkit-scrollbar-thumb,
2021-05-21 06:06:26 +02:00
cdk-virtual-scroll-viewport::-webkit-scrollbar-thumb {
border-radius: 10px;
margin-right: 1px;
2018-06-01 18:13:49 +02:00
@include themify($themes) {
background-color: themed("scrollbarColor");
}
&:hover {
2018-06-01 18:13:49 +02:00
@include themify($themes) {
background-color: themed("scrollbarHoverColor");
}
2021-12-21 15:43:35 +01:00
}
}
header {
min-height: 44px;
max-height: 44px;
display: flex;
2018-05-31 21:45:03 +02:00
border-bottom: 1px solid #000000;
2021-12-21 15:43:35 +01:00
2018-05-31 21:45:03 +02:00
@include themify($themes) {
color: themed("headerColor");
background-color: themed("headerBackgroundColor");
border-bottom-color: themed("headerBorderColor");
2021-12-21 15:43:35 +01:00
}
.left,
.right {
flex: 1;
display: flex;
min-width: -webkit-min-content; /* Workaround to Chrome bug */
2018-04-10 04:53:46 +02:00
.header-icon {
margin-right: 5px;
2021-12-21 15:43:35 +01:00
}
}
.right {
justify-content: flex-end;
2021-12-21 15:43:35 +01:00
}
.center {
display: flex;
align-items: center;
text-align: center;
2018-04-10 04:53:46 +02:00
min-width: 0;
2021-12-21 15:43:35 +01:00
}
app-pop-out > button,
div > button,
div > a {
border: none;
padding: 0 10px;
text-decoration: none;
display: flex;
flex-direction: row;
justify-content: center;
2018-05-31 21:45:03 +02:00
align-items: center;
@include themify($themes) {
color: themed("headerColor");
background-color: themed("headerBackgroundColor");
}
&:hover,
&:focus {
@include themify($themes) {
background-color: themed("headerBackgroundHoverColor");
2018-04-10 04:53:46 +02:00
color: themed("headerColor");
}
}
&:focus {
text-decoration: underline;
}
&[disabled] {
opacity: 0.65;
cursor: default !important;
}
i + span {
margin-left: 5px;
2021-12-21 15:43:35 +01:00
}
}
2018-05-31 21:45:03 +02:00
app-pop-out {
display: flex;
}
.title {
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.search {
padding: 7px 10px;
2018-04-09 16:50:28 +02:00
width: 100%;
text-align: left;
position: relative;
2018-04-09 16:50:28 +02:00
display: flex;
.bwi {
position: absolute;
2018-04-09 16:50:28 +02:00
top: 15px;
left: 20px;
@include themify($themes) {
color: themed("headerInputPlaceholderColor");
}
}
input {
2018-04-09 16:50:28 +02:00
width: 100%;
margin: 0;
border: none;
padding: 5px 10px 5px 30px;
2018-04-09 16:50:28 +02:00
border-radius: $border-radius;
@include themify($themes) {
background-color: themed("headerInputBackgroundColor");
2018-05-31 21:45:03 +02:00
color: themed("headerInputColor");
2021-12-21 15:43:35 +01:00
}
&:focus {
2018-04-10 04:53:46 +02:00
border-radius: $border-radius;
outline: none;
2018-04-09 16:50:28 +02:00
2018-05-31 21:45:03 +02:00
@include themify($themes) {
background-color: themed("headerInputBackgroundFocusColor");
2018-04-09 16:50:28 +02:00
}
2021-12-21 15:43:35 +01:00
}
2018-04-09 16:50:28 +02:00
2018-05-31 21:45:03 +02:00
&::-webkit-input-placeholder {
@include themify($themes) {
color: themed("headerInputPlaceholderColor");
2018-04-09 16:50:28 +02:00
}
2021-12-21 15:43:35 +01:00
}
2018-04-09 16:50:28 +02:00
}
2021-12-21 15:43:35 +01:00
}
2018-04-10 04:53:46 +02:00
.left + .search,
.left + .sr-only + .search {
2018-04-10 04:53:46 +02:00
padding-left: 0;
2018-04-14 05:37:57 +02:00
.bwi {
2018-04-14 05:37:57 +02:00
left: 10px;
2018-04-10 04:53:46 +02:00
}
2021-12-21 15:43:35 +01:00
}
2018-04-10 04:53:46 +02:00
.search + .right {
margin-left: -10px;
}
}
.content {
padding: 15px;
}
2018-04-05 04:59:42 +02:00
.tabs {
width: 100%;
height: 55px;
2018-05-31 21:45:03 +02:00
border-top: 1px solid #000000;
2018-04-05 04:59:42 +02:00
position: absolute;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
2021-12-21 15:43:35 +01:00
2018-05-31 21:45:03 +02:00
@include themify($themes) {
background-color: themed("tabBackgroundColor");
2018-06-01 23:00:43 +02:00
border-top-color: themed("borderColor");
2021-12-21 15:43:35 +01:00
}
ul {
display: flex;
2018-04-05 04:59:42 +02:00
list-style: none;
padding: 0;
margin: 0;
2018-05-31 21:45:03 +02:00
li {
2021-12-21 15:43:35 +01:00
flex: 1;
2018-05-31 21:45:03 +02:00
display: inline-block;
2018-04-05 04:59:42 +02:00
padding: 0;
margin: 0;
2021-12-21 15:43:35 +01:00
a,
button {
2018-05-31 21:45:03 +02:00
text-align: center;
display: block;
2018-04-05 04:59:42 +02:00
padding: 7px 0;
2018-06-01 23:00:43 +02:00
text-decoration: none;
2018-04-05 04:59:42 +02:00
font-size: 12px;
white-space: nowrap;
2018-06-01 23:00:43 +02:00
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
2018-05-31 21:45:03 +02:00
2018-04-05 04:59:42 +02:00
@include themify($themes) {
color: themed("mutedColor");
2021-12-21 15:43:35 +01:00
}
2018-04-05 04:59:42 +02:00
&:hover,
&:focus {
2018-05-31 21:45:03 +02:00
@include themify($themes) {
2018-05-31 22:06:08 +02:00
background-color: themed("tabBackgroundHoverColor");
2018-05-31 21:45:03 +02:00
}
2018-04-05 04:59:42 +02:00
}
2021-12-21 15:43:35 +01:00
i {
2018-04-05 04:59:42 +02:00
display: block;
margin-bottom: 2px;
text-align: center;
2021-12-21 15:43:35 +01:00
}
}
2018-04-05 04:59:42 +02:00
&.active {
a,
button {
@include themify($themes) {
2018-05-31 21:45:03 +02:00
color: themed("primaryColor");
2021-12-21 15:43:35 +01:00
}
}
}
2018-04-05 04:59:42 +02:00
}
2021-12-21 15:43:35 +01:00
}
2018-04-05 04:59:42 +02:00
}
2018-04-05 16:29:11 +02:00
app-root {
position: absolute;
width: 100%;
height: 100%;
z-index: 980;
@include themify($themes) {
background-color: themed("backgroundColor");
}
2018-04-05 16:29:11 +02:00
}
@media only screen and (min-width: 601px) {
app-login header {
padding: 0 calc((100% - 500px) / 2);
}
app-login main {
padding: 0 calc((100% - 500px) / 2);
}
app-two-factor header {
padding: 0 calc((100% - 500px) / 2);
}
app-two-factor main {
padding: 0 calc((100% - 500px) / 2);
}
app-lock header {
2021-10-14 18:59:38 +02:00
padding: 0 calc((100% - 500px) / 2);
}
app-lock main {
2021-10-14 18:59:38 +02:00
padding: 0 calc((100% - 500px) / 2);
}
}
main {
2018-04-05 16:29:11 +02:00
position: absolute;
top: 44px;
bottom: 0;
left: 0;
right: 0;
2018-04-10 04:25:03 +02:00
overflow-y: auto;
overflow-x: hidden;
2021-12-21 15:43:35 +01:00
2018-05-31 05:11:05 +02:00
@include themify($themes) {
background-color: themed("backgroundColor");
}
2021-12-21 15:43:35 +01:00
2018-04-05 16:29:11 +02:00
&.no-header {
top: 0;
}
2021-12-21 15:43:35 +01:00
&.flex {
display: flex;
flex-flow: column;
height: calc(100% - 44px);
&.tab-page {
height: calc(100% - 99px);
}
2021-12-21 15:43:35 +01:00
}
2018-04-05 16:29:11 +02:00
}
.tab-page {
main {
2018-04-05 16:29:11 +02:00
bottom: 55px;
}
}
2018-04-09 16:50:28 +02:00
.center-content,
.no-items,
.full-loading-spinner {
2018-04-09 16:50:28 +02:00
display: flex;
justify-content: center;
align-items: center;
2018-04-13 17:49:03 +02:00
height: 100%;
flex-direction: column;
flex-grow: 1;
2018-04-13 17:49:03 +02:00
}
.no-items,
.full-loading-spinner {
2018-04-09 16:50:28 +02:00
text-align: center;
2022-01-21 16:31:01 +01:00
.no-items-image {
@include themify($themes) {
content: url("../images/search-desktop" + themed("svgSuffix"));
}
}
.bwi {
2018-04-09 16:50:28 +02:00
margin-bottom: 10px;
2018-05-31 05:11:05 +02:00
@include themify($themes) {
color: themed("disabledIconColor");
2018-04-09 16:50:28 +02:00
}
2021-12-21 15:43:35 +01:00
}
2018-04-09 16:50:28 +02:00
}
2021-05-21 06:06:26 +02: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%;
}