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

235 lines
4.0 KiB
SCSS
Raw Normal View History

@import "variables.scss";
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html, body {
2018-04-05 16:29:11 +02:00
background-color: $background-color;
font-family: $font-family-sans-serif;
font-size: $font-size-base;
color: $text-color;
line-height: $line-height-base;
-webkit-font-smoothing: antialiased;
}
body {
width: 375px !important;
height: 600px !important;
overflow: hidden;
&.sm {
width: 375px !important;
height: 500px !important;
}
&.xs {
width: 375px !important;
height: 300px !important;
}
}
h1, h2, h3, h4, h5, h6 {
font-family: $font-family-sans-serif;
color: $text-color;
}
p {
margin-bottom: 10px;
}
ul, ol {
margin-bottom: 10px;
}
img {
border: none;
}
a {
color: $brand-primary;
text-decoration: none;
&:hover, &:focus {
color: darken($brand-primary, 6%);
}
}
input, select, textarea, button {
font-size: $font-size-base;
font-family: $font-family-sans-serif;
}
button {
white-space: nowrap;
cursor: pointer;
}
textarea {
resize: vertical;
}
2018-04-05 16:29:11 +02:00
content::-webkit-scrollbar {
width: 10px;
height: 10px;
}
2018-04-05 16:29:11 +02:00
content::-webkit-scrollbar-track {
background-color: transparent;
}
2018-04-05 16:29:11 +02:00
content::-webkit-scrollbar-thumb {
background-color: rgba(100,100,100,.2);
border-radius: 10px;
margin-right: 1px;
&:hover {
background-color: rgba(100,100,100,.4);
}
}
header {
background-color: $brand-primary;
min-height: 44px;
max-height: 44px;
color: white;
display: flex;
.left, .right {
flex: 1;
display: flex;
min-width: -webkit-min-content; /* Workaround to Chrome bug */
}
.right {
justify-content: flex-end;
}
.center {
display: flex;
align-items: center;
text-align: center;
}
app-pop-out > button, div > button, div > a {
background: $brand-primary;
border: none;
color: white;
padding: 0 10px;
text-decoration: none;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
&:hover, &:focus {
background-color: rgba(255, 255, 255, 0.1);
color: white;
}
&:focus {
text-decoration: underline;
}
i + span {
margin-left: 5px;
}
}
app-pop-out {
display: flex;
}
.title {
font-weight: bold;
}
}
.content {
padding: 15px;
}
2018-04-05 04:59:42 +02:00
.tabs {
width: 100%;
height: 55px;
background-color: white;
border-top: 1px solid $border-color-dark;
position: absolute;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
ul {
width: 100%;
list-style: none;
padding: 0;
margin: 0;
li {
width: 25%;
float: left;
display: inline-block;
padding: 0;
margin: 0;
a {
text-align: center;
display: block;
padding: 7px 0;
text-decoration: none;
color: $gray-light;
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
&:hover, &:focus {
background-color: $list-item-hover;
}
i {
display: block;
margin-bottom: 2px;
text-align: center;
}
}
&.active {
a {
color: $brand-primary;
}
}
}
}
}
2018-04-05 16:29:11 +02:00
app-root {
position: absolute;
width: 100%;
height: 100%;
z-index: 980;
}
content {
position: absolute;
top: 44px;
bottom: 0;
left: 0;
right: 0;
overflow: auto;
2018-04-08 06:30:04 +02:00
background-color: $background-color;
2018-04-05 16:29:11 +02:00
&.no-header {
top: 0;
}
}
.tab-page {
content {
bottom: 55px;
}
}