Mailspring/internal_packages/preferences/stylesheets/preferences.less
2016-04-06 13:08:44 -07:00

221 lines
4.4 KiB
Text

@import "ui-variables";
@import "ui-mixins";
// Preferences Specific
.preferences-wrap {
input[type=checkbox] { margin: 0 7px 0 0; position: relative; top: -1px; }
input[type=radio] { margin: 0 7px 0 0; position: relative; top: -1px; }
select { margin: 4px 0 0 8px; }
height: 100%;
background-color: @background-primary;
color: @text-color;
h6 {
color: @text-color-very-subtle;
margin-top: 30px;
margin-bottom: 20px;
}
section:first-child h6:first-child {
margin-top: 0;
}
p {
color: @text-color-very-subtle;
font-size: @font-size-smaller;
}
section {
padding-bottom: @padding-base-vertical;
.item {
padding-top: @padding-small-vertical;
padding-bottom: @padding-small-vertical;
}
}
.container-preference-tabs {
width: 100%;
height: 90px;
background-color: @source-list-bg;
border-bottom: 1px solid @border-color-divider;
.preferences-tabs {
padding-top: 10px;
background-color: @source-list-bg;
width: 70%;
margin: 0 auto;
.item {
cursor: default;
margin: 0 auto;
&:active {
img {
-webkit-filter: brightness(40%);
}
}
&.active {
background: darken(@background-primary, 10%);
border-radius: @border-radius-large @border-radius-large 0 0;
box-shadow: @shadow-border;
}
.tab-icon {
padding-top: 8px;
display: block;
margin: auto;
}
.name {
padding: @padding-base-vertical @padding-large-horizontal;
}
}
}
}
.preferences-content {
flex: 8;
background-color: lighten(@background-secondary, 1%);
&>.scroll-region-content {
padding: @padding-large-vertical * 3 @padding-large-horizontal * 3;
}
.container-dropdown {
margin: 5px 0;
.dropdown {
padding-left: 10px;
}
}
}
.container-general {
width: 40%;
margin: 0 auto;
}
.container-appearance {
width: 400px;
margin: 0 auto;
.appearance-mode-switch {
max-width: 400px;
text-align: right;
margin: 10px 0;
.appearance-mode {
background-color: @background-off-primary;;
border-radius: 10px;
border: 1px solid @background-tertiary;
text-align: center;
flex: 1;
padding: 25px;
padding-bottom: 9px;
margin-right: 10px;
margin-bottom: 7px;
margin-top: 0;
img {
background-color: @background-tertiary;
}
div {
margin-top: 15px;
text-transform: capitalize;
cursor: default;
}
&:last-child {
margin-right: 0;
}
}
.appearance-mode.active {
border: 1px solid @component-active-color;
color: @component-active-color;
img { background-color: @component-active-color; }
}
}
}
.container-keymaps {
width: 40%;
margin: 0 auto;
.col-left {
text-align: right;
flex: 1;
margin-right: 20px;
}
.col-right {
text-align: left;
flex: 1;
select {
width: 75%;
}
}
.shortcut-section-title {
border-bottom: 1px solid @border-color-divider;
margin: @padding-large-vertical * 1.5 0;
}
.shortcut {
padding: 3px 0;
color: @text-color-very-subtle;
.shortcut-value {
font-family: monospace;
font-weight: 600;
color: @text-color;
&:after {
content: ", "
}
&:last-child:after {
content: "";
}
}
}
}
.platform-note {
padding: @padding-base-vertical @padding-base-horizontal;
background: fade(@black, 4%);
border-left: 3px solid @color-info;
margin: @padding-base-vertical 0;
font-size: 0.95em;
&:before {
color: @color-info;
font-weight: 600;
content: "NOTE: ";
}
}
.platform-linux-only {
display: none;
}
}
body.platform-win32 {
.preferences-wrap {
.well {
border-radius: 0;
}
.container-appearance {
.appearance-mode {
border-radius: 0;
}
}
}
}
body.platform-linux {
.preferences-wrap {
.platform-linux-only {
display: block;
}
}
}
@media (-webkit-min-device-pixel-ratio: 2) {
.preferences-tabs {
.tab-icon {
padding-top: 15px !important;
}
}
}