mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
more list styling throughout vault
This commit is contained in:
228
src/popup/less/components.less
Normal file
228
src/popup/less/components.less
Normal file
@@ -0,0 +1,228 @@
|
||||
@import (reference) "../../../node_modules/bootstrap/less/mixins.less";
|
||||
@import (reference) "../../../node_modules/bootstrap/less/variables.less";
|
||||
@import (reference) "variables.less";
|
||||
|
||||
.header {
|
||||
min-height: 44px;
|
||||
max-height: 44px;
|
||||
background-color: @brand-primary;
|
||||
color: white;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
overflow: hidden;
|
||||
|
||||
a {
|
||||
color: white !important;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
padding: 12px 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.left {
|
||||
float: left;
|
||||
display: block;
|
||||
padding: 12px 10px;
|
||||
}
|
||||
|
||||
.right {
|
||||
float: right;
|
||||
display: block;
|
||||
padding: 12px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.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 {
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
i {
|
||||
display: block;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
a {
|
||||
color: @brand-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list {
|
||||
.list-item {
|
||||
border-top: 1px solid @border-color;
|
||||
|
||||
&:first-child {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.list-item-header {
|
||||
background-color: transparent;
|
||||
padding: 10px 10px;
|
||||
color: @gray-light;
|
||||
|
||||
+ .list-item {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.list-section {
|
||||
padding-bottom: 10px;
|
||||
|
||||
&:first-child {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.list-section-header {
|
||||
background-color: transparent;
|
||||
padding: 5px 10px;
|
||||
color: @gray-light;
|
||||
text-transform: uppercase;
|
||||
|
||||
label {
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.list-section-items {
|
||||
border-top: 1px solid @border-color-dark;
|
||||
border-bottom: 1px solid @border-color-dark;
|
||||
|
||||
.list-section-item {
|
||||
border-bottom: 1px solid @border-color;
|
||||
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.list-section-footer {
|
||||
padding: 5px 10px;
|
||||
font-size: @font-size-small;
|
||||
color: @gray-light;
|
||||
}
|
||||
}
|
||||
|
||||
.list-item, .list-section-item {
|
||||
display: block;
|
||||
padding: 10px 10px;
|
||||
background-color: white;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: @text-color;
|
||||
|
||||
&:hover {
|
||||
background-color: @list-item-hover;
|
||||
}
|
||||
|
||||
&.list-item-condensed {
|
||||
padding: 3px 10px;
|
||||
}
|
||||
|
||||
.text {
|
||||
display: block;
|
||||
color: @text-color;
|
||||
}
|
||||
|
||||
.detail {
|
||||
font-size: @font-size-small;
|
||||
color: @gray-light;
|
||||
display: block;
|
||||
}
|
||||
|
||||
label, .item-label {
|
||||
font-size: @font-size-small;
|
||||
color: @gray-light;
|
||||
display: block;
|
||||
width: 100%;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
input:not([type="checkbox"]), select, textarea {
|
||||
border: none;
|
||||
width: 100%;
|
||||
background-color: transparent;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.list-section-item-checkbox {
|
||||
label {
|
||||
font-size: @font-size-base;
|
||||
color: @text-color;
|
||||
display: inline;
|
||||
width: initial;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.list-no-selection {
|
||||
.list-item, .list-section-item {
|
||||
&:hover {
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user