mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Move bootstrap @LESS variables to CSS var()
This commit is contained in:
parent
874bfa852b
commit
0ef8af21b1
19 changed files with 132 additions and 266 deletions
|
|
@ -14,7 +14,6 @@
|
||||||
@import "../../vendors/bootstrap/less/alerts.less";
|
@import "../../vendors/bootstrap/less/alerts.less";
|
||||||
@import "../../vendors/bootstrap/less/code.less";
|
@import "../../vendors/bootstrap/less/code.less";
|
||||||
@import "../../vendors/bootstrap/less/dropdowns.less";
|
@import "../../vendors/bootstrap/less/dropdowns.less";
|
||||||
@import "../../vendors/bootstrap/less/navs.less";
|
|
||||||
@import "../../vendors/bootstrap/less/utilities.less";
|
@import "../../vendors/bootstrap/less/utilities.less";
|
||||||
|
|
||||||
@import "_FontasticToBoot.less";
|
@import "_FontasticToBoot.less";
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ html, body {
|
||||||
|
|
||||||
#rl-app {
|
#rl-app {
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
font-size: @baseFontSize;
|
font-size: var(--main-font-size, 14px);
|
||||||
line-height: 1.15; /* 1 */
|
line-height: 1.15; /* 1 */
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -58,7 +58,7 @@ dialog::backdrop {
|
||||||
|
|
||||||
dialog {
|
dialog {
|
||||||
border: 0;
|
border: 0;
|
||||||
background-color: @white;
|
background-color: var(--dialog-bg-clr, #fff);
|
||||||
border: 1px solid rgba(0,0,0,.3);
|
border: 1px solid rgba(0,0,0,.3);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 5px 80px rgba(0,0,0,0.3);
|
box-shadow: 0 5px 80px rgba(0,0,0,0.3);
|
||||||
|
|
|
||||||
|
|
@ -115,18 +115,17 @@ tr:hover .drag-handle {
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
grid-row-start: 1;
|
grid-row-start: 1;
|
||||||
line-height: @baseLineHeight;
|
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
margin: 0 2px -1px 0;
|
margin: 0 2px -1px 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: @grayLighter;
|
border-color: var(--tab-hover-border-clr, #eee);
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tabs > [id^="tab"]:checked + label {
|
.tabs > [id^="tab"]:checked + label {
|
||||||
background-color: @white;
|
background-color: var(--tab-active-bg-clr, #fff);
|
||||||
border-color: rgba(128,128,128,.5) rgba(128,128,128,.5) transparent rgba(128,128,128,.5);
|
border-color: rgba(128,128,128,.5) rgba(128,128,128,.5) transparent rgba(128,128,128,.5);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
.emailaddresses {
|
.emailaddresses {
|
||||||
background-color: #fff;
|
background-color: var(--input-bg-clr, #fff);
|
||||||
border: 1px solid #ccc;
|
border: 1px solid var(--input-border-clr, #ccc);
|
||||||
border-radius: 3px;
|
border-radius: var(--input-border-radius, 3px);
|
||||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
color: var(--input-clr, #555);
|
||||||
cursor: text;
|
cursor: text;
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
@ -15,7 +16,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.emailaddresses.emailaddresses-focused {
|
.emailaddresses.emailaddresses-focused {
|
||||||
border: 1px solid darken(@inputBorder, 20%);
|
border-color: var(--input-focus-border-clr, #999);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -147,9 +147,9 @@
|
||||||
.b-folders-user a[data-unread]:not(.system)::after
|
.b-folders-user a[data-unread]:not(.system)::after
|
||||||
{
|
{
|
||||||
content: attr(data-unread);
|
content: attr(data-unread);
|
||||||
background-color: @grayLight;
|
background-color: var(--unread-count-bg-color, #999);
|
||||||
border-radius: 9px;
|
border-radius: 9px;
|
||||||
color: @white;
|
color: var(--unread-count-color, #fff);
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ html.rl-side-preview-pane {
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown.show {
|
.dropdown.show {
|
||||||
box-shadow: 0 0 1px var(--main-color, @dropdownLinkColor);
|
box-shadow: 0 0 1px var(--main-color, #333);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.btn-transparent {
|
.btn.btn-transparent {
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,11 @@
|
||||||
|
|
||||||
.legend {
|
.legend {
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin-bottom: @baseLineHeight;
|
|
||||||
font-size: @baseFontSize * 1.5;
|
|
||||||
line-height: @baseLineHeight * 1.5;
|
|
||||||
color: @grayDark;
|
|
||||||
border: 0;
|
|
||||||
border-bottom: 1px solid var(--border-color, #ddd);
|
border-bottom: 1px solid var(--border-color, #ddd);
|
||||||
|
font-size: 150%;
|
||||||
|
line-height: 2.1;
|
||||||
|
margin-bottom: 1.43em;
|
||||||
}
|
}
|
||||||
summary.legend {
|
summary.legend {
|
||||||
display: list-item;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -21,15 +15,14 @@ summary.legend {
|
||||||
|
|
||||||
.alert a:not(.close) {
|
.alert a:not(.close) {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
color: @warningText;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert.alert-info a:not(.close) {
|
.alert.alert-info a:not(.close) {
|
||||||
color: @infoText;
|
color: var(--info-clr, #3a87ad);
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert.alert-error a:not(.close) {
|
.alert.alert-error a:not(.close) {
|
||||||
color: @errorText;
|
color: var(--error-clr, #b94a48);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* mobile and tablet */
|
/* mobile and tablet */
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,22 @@
|
||||||
--main-bg-image: none; /* url("images/background.png"); */
|
--main-bg-image: none; /* url("images/background.png"); */
|
||||||
--main-bg-size: auto;
|
--main-bg-size: auto;
|
||||||
--main-bg-repeat: repeat;
|
--main-bg-repeat: repeat;
|
||||||
|
--main-font-size: 14px;
|
||||||
--link-color: #369;
|
--link-color: #369;
|
||||||
--border-color: #ddd;
|
--border-color: #ddd;
|
||||||
|
--hr-color: #eee;
|
||||||
|
|
||||||
|
--warning-clr: #c09853;
|
||||||
|
--warning-bg-clr: #fcf8e3;
|
||||||
|
--warning-border-clr: #fbeed5;
|
||||||
|
|
||||||
|
--error-clr: #b94a48;
|
||||||
|
--error-bg-clr: #f2dede;
|
||||||
|
--error-border-clr: #eed3d7;
|
||||||
|
|
||||||
|
--info-clr: #3a87ad;
|
||||||
|
--info-bg-clr: #d9edf7;
|
||||||
|
--info-border-clr: #bce8f1;
|
||||||
|
|
||||||
/* LOADING */
|
/* LOADING */
|
||||||
--loading-color: #000;
|
--loading-color: #000;
|
||||||
|
|
@ -42,6 +56,8 @@
|
||||||
--folders-hover-bg-color: false;
|
--folders-hover-bg-color: false;
|
||||||
--folders-drop-color: #eee;
|
--folders-drop-color: #eee;
|
||||||
--folders-drop-bg-color: #333;
|
--folders-drop-bg-color: #333;
|
||||||
|
--unread-count-color: #fff;
|
||||||
|
--unread-count-bg-color: #333;
|
||||||
|
|
||||||
/* SETTINGS */
|
/* SETTINGS */
|
||||||
--settings-menu-color: #333;
|
--settings-menu-color: #333;
|
||||||
|
|
@ -52,9 +68,32 @@
|
||||||
|
|
||||||
/* MESSAGE LIST */
|
/* MESSAGE LIST */
|
||||||
--message-list-toolbar-bg-color: #eee;
|
--message-list-toolbar-bg-color: #eee;
|
||||||
--message-list-toolbar-gradient-start: none; /* #f4f4f4 */
|
|
||||||
--message-list-toolbar-gradient-end: none; /* #dfdfdf */
|
|
||||||
|
|
||||||
/* MESSAGE */
|
/* MESSAGE */
|
||||||
--message-bg-color: #fff;
|
--message-bg-color: #fff;
|
||||||
|
|
||||||
|
/* DIALOGS */
|
||||||
|
--dialog-bg-clr: #fff;
|
||||||
|
|
||||||
|
/* FORMS */
|
||||||
|
--btn-clr: #333;
|
||||||
|
--btn-bg-clr: #fff;
|
||||||
|
--btn-border-clr: #fff;
|
||||||
|
--btn-success-bg-clr: #84AB04;
|
||||||
|
--btn-danger-bg-clr: #ee5f5b;
|
||||||
|
|
||||||
|
--input-clr: #555;
|
||||||
|
--input-bg-clr: #fff;
|
||||||
|
--input-border-clr: #ccc;
|
||||||
|
--input-border-radius: 3px;
|
||||||
|
--input-focus-border-clr: #999;
|
||||||
|
|
||||||
|
/* TABLES */
|
||||||
|
--tr-hover-bg-clr: #f5f5f5;
|
||||||
|
--tr-odd-bg-clr: #f9f9f9; /* when striped */
|
||||||
|
|
||||||
|
/* TABS */
|
||||||
|
--tab-active-bg-clr: #fff;
|
||||||
|
--tab-hover-border-clr: #eee;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
vendors/bootstrap/less/alerts.less
vendored
24
vendors/bootstrap/less/alerts.less
vendored
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
.alert {
|
.alert {
|
||||||
padding: 8px 35px 8px 14px;
|
padding: 8px 35px 8px 14px;
|
||||||
margin-bottom: @baseLineHeight;
|
margin-bottom: 1.43em;
|
||||||
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
background-color: @warningBackground;
|
background-color: var(--warning-bg-clr, #fcf8e3);
|
||||||
border: 1px solid @warningBorder;
|
border: 1px solid var(--warning-border-clr, #fbeed5);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: @warningText;
|
color: var(--warning-clr, #c09853);
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
min-height: @baseLineHeight;
|
min-height: 1.43em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust close link position
|
// Adjust close link position
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -2px;
|
top: -2px;
|
||||||
right: -21px;
|
right: -21px;
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -31,12 +31,12 @@
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
.alert-error {
|
.alert-error {
|
||||||
background-color: @errorBackground;
|
background-color: var(--error-bg-clr, #f2dede);
|
||||||
border-color: @errorBorder;
|
border-color: var(--error-border-clr, #eed3d7);
|
||||||
color: @errorText;
|
color: var(--error-clr, #b94a48);
|
||||||
}
|
}
|
||||||
.alert-info {
|
.alert-info {
|
||||||
background-color: @infoBackground;
|
background-color: var(--info-bg-clr, #d9edf7);
|
||||||
border-color: @infoBorder;
|
border-color: var(--info-border-clr, #bce8f1);
|
||||||
color: @infoText;
|
color: var(--info-clr, #3a87ad);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14
vendors/bootstrap/less/buttons.less
vendored
14
vendors/bootstrap/less/buttons.less
vendored
|
|
@ -12,16 +12,16 @@
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid @btnBorder;
|
border: 1px solid var(--btn-border-clr, #bbb);
|
||||||
border-color: rgba(0,0,0,.15) rgba(0,0,0,.15) rgba(0,0,0,.25);
|
border-color: rgba(0,0,0,.15) rgba(0,0,0,.15) rgba(0,0,0,.25);
|
||||||
box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
||||||
color: @grayDark;
|
color: var(--btn-clr, #333);
|
||||||
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
background-color: @btnBackground;
|
background-color: var(--btn-bg-clr, #fff);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
// Hover state
|
// Hover state
|
||||||
|
|
@ -94,16 +94,16 @@
|
||||||
// Warning appears are orange
|
// Warning appears are orange
|
||||||
.btn-warning {
|
.btn-warning {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: @btnWarningBackground;
|
background-color: #fbb450;
|
||||||
}
|
}
|
||||||
// Danger and error appear as red
|
// Danger and error appear as red
|
||||||
.btn-danger {
|
.btn-danger {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: @btnDangerBackground;
|
background-color: var(--btn-danger-bg-clr, #ee5f5b);
|
||||||
}
|
}
|
||||||
// Success appears as green
|
// Success appears as green
|
||||||
.btn-success {
|
.btn-success {
|
||||||
background-color: @btnSuccessBackground;
|
background-color: var(--btn-success-bg-clr, #84AB04);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
vendors/bootstrap/less/close.less
vendored
2
vendors/bootstrap/less/close.less
vendored
|
|
@ -7,7 +7,7 @@
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 143%;
|
font-size: 143%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
||||||
4
vendors/bootstrap/less/code.less
vendored
4
vendors/bootstrap/less/code.less
vendored
|
|
@ -22,8 +22,8 @@ code {
|
||||||
// Blocks of code
|
// Blocks of code
|
||||||
pre {
|
pre {
|
||||||
display: block;
|
display: block;
|
||||||
padding: (@baseLineHeight / 2);
|
padding: 0.715em;
|
||||||
margin: 0 0 (@baseLineHeight / 2);
|
margin: 0 0 0.715em;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
border: 1px solid rgba(0,0,0,.15);
|
border: 1px solid rgba(0,0,0,.15);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
|
||||||
10
vendors/bootstrap/less/dropdowns.less
vendored
10
vendors/bootstrap/less/dropdowns.less
vendored
|
|
@ -17,15 +17,15 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: @zindexDropdown;
|
z-index: 1000;
|
||||||
display: none; // none by default, but block on "open" of the menu
|
display: none; // none by default, but block on "open" of the menu
|
||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
margin: 2px 0 0; // override default ul
|
margin: 2px 0 0; // override default ul
|
||||||
list-style: none;
|
list-style: none;
|
||||||
color: var(--dropdown-menu-color, inherit);
|
color: var(--dropdown-menu-color, inherit);
|
||||||
background-color: var(--dropdown-menu-bg-color, @dropdownBackground);
|
background-color: var(--dropdown-menu-bg-color, #fff);
|
||||||
border: 1px solid @dropdownBorder;
|
border: 1px solid rgba(0,0,0,.2);
|
||||||
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
// Links within the dropdown menu
|
// Links within the dropdown menu
|
||||||
a {
|
a {
|
||||||
background-color: var(--dropdown-menu-bg-color, #fff);
|
background-color: var(--dropdown-menu-bg-color, #fff);
|
||||||
color: var(--dropdown-menu-color, @dropdownLinkColor);
|
color: var(--dropdown-menu-color, #333);
|
||||||
display: block;
|
display: block;
|
||||||
padding: 3px 10px;
|
padding: 3px 10px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
// Gray out text and ensure the hover state remains gray
|
// Gray out text and ensure the hover state remains gray
|
||||||
.dropdown-menu .disabled > a,
|
.dropdown-menu .disabled > a,
|
||||||
.dropdown-menu .disabled > a:hover {
|
.dropdown-menu .disabled > a:hover {
|
||||||
color: @grayLight;
|
color: #999;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
44
vendors/bootstrap/less/forms.less
vendored
44
vendors/bootstrap/less/forms.less
vendored
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
// Make all forms have space below them
|
// Make all forms have space below them
|
||||||
form {
|
form {
|
||||||
margin: 0 0 @baseLineHeight;
|
margin: 0 0 1.43em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Identify controls by their labels
|
// Identify controls by their labels
|
||||||
label {
|
label {
|
||||||
display: block;
|
display: block;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -27,8 +27,8 @@ select,
|
||||||
.select,
|
.select,
|
||||||
textarea {
|
textarea {
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: @baseFontSize;
|
font-size: var(--main-font-size, 14px);
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
@ -44,25 +44,26 @@ input {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
color: @gray;
|
color: var(--input-clr, #555);
|
||||||
border-radius: @inputBorderRadius;
|
border-radius: var(--input-border-radius, 3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea,
|
textarea,
|
||||||
input {
|
input {
|
||||||
background-color: @inputBackground;
|
background-color: var(--input-bg-clr, #fff);
|
||||||
border: 1px solid @inputBorder;
|
border: 1px solid var(--input-border-clr, #ccc);
|
||||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
|
||||||
transition: border linear .2s, box-shadow linear .2s;
|
transition: border linear .2s, box-shadow linear .2s;
|
||||||
width: 210px;
|
width: 210px;
|
||||||
|
|
||||||
// Focus state
|
// Focus state
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: darken(@inputBorder, 20%);
|
border-color: var(--input-focus-border-clr, #999);
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Position radios and checkboxes better
|
// Position radios and checkboxes better
|
||||||
input[type="radio"],
|
input[type="radio"],
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
|
|
@ -83,8 +84,8 @@ select, .select {
|
||||||
// Safari requires -webkit-
|
// Safari requires -webkit-
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
background: @inputBackground url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='10px' width='15px'><text x='0' y='10' fill='rgb(85,85,85)'>▾</text></svg>") right center/1em no-repeat border-box;
|
background: var(--input-bg-clr, #fff) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='10px' width='15px'><text x='0' y='10' fill='rgb(85,85,85)'>▾</text></svg>") right center/1em no-repeat border-box;
|
||||||
border: 1px solid @inputBorder;
|
border: 1px solid var(--input-border-clr, #ccc);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding-right: 1.5em;
|
padding-right: 1.5em;
|
||||||
width: 223px; // default input width + 10px of padding that doesn't get applied
|
width: 223px; // default input width + 10px of padding that doesn't get applied
|
||||||
|
|
@ -139,7 +140,22 @@ textarea[readonly] {
|
||||||
|
|
||||||
// Error
|
// Error
|
||||||
.control-group.error {
|
.control-group.error {
|
||||||
.formFieldState(@errorText, @errorText, @errorBackground);
|
> label {
|
||||||
|
color: var(--error-clr, #b94a48);
|
||||||
|
}
|
||||||
|
// Style inputs accordingly
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
color: var(--error-clr, #b94a48);
|
||||||
|
border-color: var(--error-border-clr, #eed3d7);
|
||||||
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075); // Redeclare so transitions work
|
||||||
|
&:focus {
|
||||||
|
border-color: var(--error-clr, #b94a48);
|
||||||
|
// Write out in full since the lighten() function isn't easily escaped
|
||||||
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px var(--error-border-clr, #eed3d7);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// HORIZONTAL FORMS
|
// HORIZONTAL FORMS
|
||||||
|
|
@ -161,7 +177,7 @@ textarea[readonly] {
|
||||||
|
|
||||||
// Margin to space out fieldsets
|
// Margin to space out fieldsets
|
||||||
.control-group {
|
.control-group {
|
||||||
margin-bottom: (@baseLineHeight / 2);
|
margin-bottom: 0.715em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Horizontal-specific styles
|
// Horizontal-specific styles
|
||||||
|
|
@ -170,7 +186,7 @@ textarea[readonly] {
|
||||||
.form-horizontal {
|
.form-horizontal {
|
||||||
// Increase spacing between groups
|
// Increase spacing between groups
|
||||||
.control-group {
|
.control-group {
|
||||||
margin-bottom: @baseLineHeight;
|
margin-bottom: 1.43em;
|
||||||
|
|
||||||
> label {
|
> label {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
|
||||||
23
vendors/bootstrap/less/mixins.less
vendored
23
vendors/bootstrap/less/mixins.less
vendored
|
|
@ -29,29 +29,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Mixin for form field states
|
|
||||||
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
|
||||||
// Set the text color
|
|
||||||
> label {
|
|
||||||
color: @textColor;
|
|
||||||
}
|
|
||||||
// Style inputs accordingly
|
|
||||||
input,
|
|
||||||
select,
|
|
||||||
textarea {
|
|
||||||
color: @textColor;
|
|
||||||
border-color: @borderColor;
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075); // Redeclare so transitions work
|
|
||||||
&:focus {
|
|
||||||
border-color: darken(@borderColor, 10%);
|
|
||||||
// Write out in full since the lighten() function isn't easily escaped
|
|
||||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// COMPONENT MIXINS
|
// COMPONENT MIXINS
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
22
vendors/bootstrap/less/navs.less
vendored
22
vendors/bootstrap/less/navs.less
vendored
|
|
@ -1,22 +0,0 @@
|
||||||
//
|
|
||||||
// Navs
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
// BASE CLASS
|
|
||||||
// ----------
|
|
||||||
|
|
||||||
.nav {
|
|
||||||
margin-left: 0;
|
|
||||||
margin-bottom: @baseLineHeight;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make links block level
|
|
||||||
.nav > li > a {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.nav > li > a:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
background-color: @grayLighter;
|
|
||||||
}
|
|
||||||
15
vendors/bootstrap/less/tables.less
vendored
15
vendors/bootstrap/less/tables.less
vendored
|
|
@ -9,19 +9,18 @@
|
||||||
// table {
|
// table {
|
||||||
.table {
|
.table {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
background-color: @tableBackground;
|
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: @baseLineHeight;
|
margin-bottom: 1.43em;
|
||||||
// Cells
|
// Cells
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
border-top: 1px solid @tableBorder;
|
border-top: 1px solid var(--border-color, #ddd);
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
@ -45,12 +44,12 @@
|
||||||
// ----------------
|
// ----------------
|
||||||
|
|
||||||
.table-bordered {
|
.table-bordered {
|
||||||
border: 1px solid @tableBorder;
|
border: 1px solid var(--border-color, #ddd);
|
||||||
border-collapse: separate; // Done so we can round those corners!
|
border-collapse: separate; // Done so we can round those corners!
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
th + th,
|
th + th,
|
||||||
td + td {
|
td + td {
|
||||||
border-left: 1px solid @tableBorder;
|
border-left: 1px solid var(--border-color, #ddd);
|
||||||
}
|
}
|
||||||
// Prevent a double border
|
// Prevent a double border
|
||||||
colgroup + thead tr:first-child th,
|
colgroup + thead tr:first-child th,
|
||||||
|
|
@ -105,7 +104,7 @@
|
||||||
tbody {
|
tbody {
|
||||||
tr:nth-child(odd) td,
|
tr:nth-child(odd) td,
|
||||||
tr:nth-child(odd) th {
|
tr:nth-child(odd) th {
|
||||||
background-color: @tableBackgroundAccent;
|
background-color: var(--tr-odd-bg-clr, #f9f9f9);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -118,7 +117,7 @@
|
||||||
tbody {
|
tbody {
|
||||||
tr:hover td,
|
tr:hover td,
|
||||||
tr:hover th {
|
tr:hover th {
|
||||||
background-color: @tableBackgroundHover;
|
background-color: var(--tr-hover-bg-clr, #f5f5f5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
31
vendors/bootstrap/less/type.less
vendored
31
vendors/bootstrap/less/type.less
vendored
|
|
@ -7,7 +7,7 @@
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: (@baseLineHeight / 2) 0;
|
margin: 0.715em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -33,7 +33,7 @@ cite {
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
margin: (@baseLineHeight / 2) 0;
|
margin: 0.715em 0;
|
||||||
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
||||||
}
|
}
|
||||||
h1 { font-size: 36px; }
|
h1 { font-size: 36px; }
|
||||||
|
|
@ -51,7 +51,7 @@ h4, h5, h6 { line-height: 20px; }
|
||||||
// Unordered and Ordered lists
|
// Unordered and Ordered lists
|
||||||
ul, ol {
|
ul, ol {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0 0 (@baseLineHeight / 2) 25px;
|
margin: 0 0 0.715em 25px;
|
||||||
}
|
}
|
||||||
ul ul,
|
ul ul,
|
||||||
ul ol,
|
ul ol,
|
||||||
|
|
@ -60,7 +60,7 @@ ol ul {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
li {
|
li {
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MISC
|
// MISC
|
||||||
|
|
@ -68,29 +68,18 @@ li {
|
||||||
|
|
||||||
// Horizontal rules
|
// Horizontal rules
|
||||||
hr {
|
hr {
|
||||||
margin: @baseLineHeight 0;
|
margin: 1.43em 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 1px solid @hrBorder;
|
border-bottom: 1px solid var(--hr-color, #eee);
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Abbreviations and acronyms
|
|
||||||
abbr[title] {
|
|
||||||
cursor: help;
|
|
||||||
border-bottom: 1px dotted @grayLight;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Blockquotes
|
// Blockquotes
|
||||||
blockquote {
|
blockquote {
|
||||||
padding: 0 0 0 15px;
|
padding: 0 0 0 15px;
|
||||||
margin: 0 0 @baseLineHeight;
|
margin: 0 0 1.43em;
|
||||||
border-left: 5px solid @grayLighter;
|
border-left: 5px solid var(--border-color, #ddd);
|
||||||
p {
|
|
||||||
margin-bottom: 0;
|
|
||||||
line-height: (@baseLineHeight * 1.25);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quotes
|
// Quotes
|
||||||
|
|
@ -104,7 +93,7 @@ blockquote::after {
|
||||||
// Addresses
|
// Addresses
|
||||||
address {
|
address {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: @baseLineHeight;
|
margin-bottom: 1.43em;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
line-height: @baseLineHeight;
|
line-height: 1.43em;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
124
vendors/bootstrap/less/variables.less
vendored
124
vendors/bootstrap/less/variables.less
vendored
|
|
@ -2,133 +2,9 @@
|
||||||
// Variables
|
// Variables
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Global values
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
// Grays
|
|
||||||
// -------------------------
|
|
||||||
@black: #000;
|
|
||||||
@grayDark: #333;
|
|
||||||
@gray: #555;
|
|
||||||
@grayLight: #999;
|
|
||||||
@grayLighter: #eee;
|
|
||||||
@white: #fff;
|
|
||||||
|
|
||||||
|
|
||||||
// Scaffolding
|
|
||||||
// -------------------------
|
|
||||||
@textColor: @grayDark;
|
|
||||||
|
|
||||||
|
|
||||||
// Links
|
|
||||||
// -------------------------
|
|
||||||
@linkColor: #08c;
|
|
||||||
@linkColorHover: darken(@linkColor, 15%);
|
|
||||||
|
|
||||||
|
|
||||||
// Typography
|
|
||||||
// -------------------------
|
|
||||||
@baseFontSize: 14px;
|
|
||||||
@baseLineHeight: 1.43em;
|
|
||||||
|
|
||||||
// Tables
|
|
||||||
// -------------------------
|
|
||||||
@tableBackground: transparent; // overall background-color
|
|
||||||
@tableBackgroundAccent: #f9f9f9; // for striping
|
|
||||||
@tableBackgroundHover: #f5f5f5; // for hover
|
|
||||||
@tableBorder: var(--border-color, #ddd); // table and cell border
|
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
|
||||||
// -------------------------
|
|
||||||
@btnBackground: @white;
|
|
||||||
@btnBackgroundHighlight: darken(@white, 10%);
|
|
||||||
@btnBorder: #bbb;
|
|
||||||
|
|
||||||
@btnPrimaryBackground: @linkColor;
|
|
||||||
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
|
|
||||||
|
|
||||||
@btnInfoBackground: #5bc0de;
|
|
||||||
@btnInfoBackgroundHighlight: #2f96b4;
|
|
||||||
|
|
||||||
@btnSuccessBackground: #84AB04;
|
|
||||||
@btnSuccessBackgroundHighlight: #51a351;
|
|
||||||
|
|
||||||
@btnWarningBackground: lighten(#f89406, 15%);
|
|
||||||
@btnWarningBackgroundHighlight: #f89406;
|
|
||||||
|
|
||||||
@btnDangerBackground: #ee5f5b;
|
|
||||||
@btnDangerBackgroundHighlight: #bd362f;
|
|
||||||
|
|
||||||
|
|
||||||
// Forms
|
|
||||||
// -------------------------
|
|
||||||
@inputBackground: @white;
|
|
||||||
@inputBorder: #ccc;
|
|
||||||
@inputBorderRadius: 3px;
|
|
||||||
@formActionsBackground: #f5f5f5;
|
|
||||||
|
|
||||||
// Dropdowns
|
|
||||||
// -------------------------
|
|
||||||
@dropdownBackground: @white;
|
|
||||||
@dropdownBorder: rgba(0,0,0,.2);
|
|
||||||
@dropdownDividerTop: #e5e5e5;
|
|
||||||
@dropdownDividerBottom: @white;
|
|
||||||
|
|
||||||
@dropdownLinkColor: @grayDark;
|
|
||||||
|
|
||||||
@dropdownLinkColorHover: @white;
|
|
||||||
@dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
|
|
||||||
|
|
||||||
@dropdownLinkColorActive: @dropdownLinkColor;
|
|
||||||
@dropdownLinkBackgroundActive: @linkColor;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// COMPONENT VARIABLES
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
// Z-index master list
|
|
||||||
// -------------------------
|
|
||||||
// Used for a bird's eye view of components dependent on the z-axis
|
|
||||||
// Try to avoid customizing these :)
|
|
||||||
@zindexDropdown: 1000;
|
|
||||||
@zindexPopover: 1010;
|
|
||||||
@zindexTooltip: 1030;
|
|
||||||
@zindexFixedNavbar: 1030;
|
|
||||||
@zindexModal: 1101;
|
|
||||||
|
|
||||||
|
|
||||||
// Hr border color
|
|
||||||
// -------------------------
|
|
||||||
@hrBorder: @grayLighter;
|
|
||||||
|
|
||||||
|
|
||||||
// Form states and alerts
|
|
||||||
// -------------------------
|
|
||||||
@warningText: #c09853;
|
|
||||||
@warningBackground: #fcf8e3;
|
|
||||||
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
|
||||||
|
|
||||||
@errorText: #b94a48;
|
|
||||||
@errorBackground: #f2dede;
|
|
||||||
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
|
||||||
|
|
||||||
@successText: #468847;
|
|
||||||
@successBackground: #dff0d8;
|
|
||||||
@successBorder: darken(spin(@successBackground, -10), 5%);
|
|
||||||
|
|
||||||
@infoText: #3a87ad;
|
|
||||||
@infoBackground: #d9edf7;
|
|
||||||
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
|
||||||
|
|
||||||
|
|
||||||
// GRID
|
// GRID
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// Default 940px grid
|
// Default 940px grid
|
||||||
// -------------------------
|
// -------------------------
|
||||||
@gridColumns: 12;
|
@gridColumns: 12;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue