mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Resolve #159 and more design issues
This commit is contained in:
parent
6b8020b8f5
commit
8a351e5763
15 changed files with 31 additions and 110 deletions
4
vendors/bootstrap/less/buttons.less
vendored
4
vendors/bootstrap/less/buttons.less
vendored
|
|
@ -69,8 +69,8 @@
|
|||
// Small
|
||||
.btn-small {
|
||||
padding: 3px 9px;
|
||||
font-size: @baseFontSize - 2px;
|
||||
line-height: @baseLineHeight - 2px;
|
||||
font-size: (@baseFontSize * 0.85);
|
||||
line-height: (@baseLineHeight * 0.85);
|
||||
}
|
||||
|
||||
// Block button
|
||||
|
|
|
|||
4
vendors/bootstrap/less/code.less
vendored
4
vendors/bootstrap/less/code.less
vendored
|
|
@ -26,8 +26,8 @@ code {
|
|||
// Blocks of code
|
||||
pre {
|
||||
display: block;
|
||||
padding: (@baseLineHeight - 1) / 2;
|
||||
margin: 0 0 @baseLineHeight / 2;
|
||||
padding: (@baseLineHeight / 2);
|
||||
margin: 0 0 (@baseLineHeight / 2);
|
||||
font-size: @baseFontSize - 1; // 14px to 13px
|
||||
line-height: @baseLineHeight;
|
||||
white-space: pre-wrap;
|
||||
|
|
|
|||
35
vendors/bootstrap/less/dropdowns.less
vendored
35
vendors/bootstrap/less/dropdowns.less
vendored
|
|
@ -28,6 +28,9 @@
|
|||
// The dropdown menu (ul)
|
||||
// ----------------------
|
||||
.dropdown-menu {
|
||||
max-height: 60vh;
|
||||
max-width: 90vw;
|
||||
overflow: auto;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
|
|
@ -51,32 +54,22 @@
|
|||
|
||||
// Links within the dropdown menu
|
||||
a {
|
||||
background-color: var(--dropdown-menu-bg-color, #fff);
|
||||
color: var(--main-color, @dropdownLinkColor);
|
||||
display: block;
|
||||
padding: 3px 10px;
|
||||
clear: both;
|
||||
font-weight: normal;
|
||||
line-height: @baseLineHeight;
|
||||
color: @dropdownLinkColor;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
// Hover state
|
||||
// -----------
|
||||
.dropdown-menu li > a:hover,
|
||||
.dropdown-menu li > a:focus {
|
||||
.dropdown-menu li:not(.disabled) > a:hover,
|
||||
.dropdown-menu li:not(.disabled) > a:focus {
|
||||
background-color: var(--dropdown-menu-hover-bg-color, #444);
|
||||
color: var(--dropdown-menu-hover-color, #eee);
|
||||
text-decoration: none;
|
||||
color: @dropdownLinkColorHover;
|
||||
background-color: @dropdownLinkBackgroundHover;
|
||||
}
|
||||
|
||||
// Active state
|
||||
// ------------
|
||||
.dropdown-menu .active > a,
|
||||
.dropdown-menu .active > a:hover {
|
||||
color: @dropdownLinkColorHover;
|
||||
text-decoration: none;
|
||||
background-color: @dropdownLinkBackgroundActive;
|
||||
}
|
||||
|
||||
// Disabled state
|
||||
|
|
@ -85,10 +78,6 @@
|
|||
.dropdown-menu .disabled > a,
|
||||
.dropdown-menu .disabled > a:hover {
|
||||
color: @grayLight;
|
||||
}
|
||||
// Nuke hover effects
|
||||
.dropdown-menu .disabled > a:hover {
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
cursor: default;
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
|
|
|||
29
vendors/bootstrap/less/forms.less
vendored
29
vendors/bootstrap/less/forms.less
vendored
|
|
@ -11,26 +11,6 @@ form {
|
|||
margin: 0 0 @baseLineHeight;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
// Groups of fields with labels on top (legends)
|
||||
legend {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin-bottom: @baseLineHeight;
|
||||
font-size: @baseFontSize * 1.5;
|
||||
line-height: @baseLineHeight * 2;
|
||||
color: @grayDark;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
// Identify controls by their labels
|
||||
label {
|
||||
display: block;
|
||||
|
|
@ -64,7 +44,6 @@ textarea,
|
|||
input {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
height: @baseLineHeight + 10;
|
||||
padding: 4px 6px;
|
||||
color: @gray;
|
||||
border-radius: @inputBorderRadius;
|
||||
|
|
@ -242,13 +221,7 @@ input[type="checkbox"][readonly] {
|
|||
|
||||
// Margin to space out fieldsets
|
||||
.control-group {
|
||||
margin-bottom: @baseLineHeight / 2;
|
||||
}
|
||||
|
||||
// Legend collapses margin, so next element is responsible for spacing
|
||||
legend + .control-group {
|
||||
margin-top: @baseLineHeight;
|
||||
-webkit-margin-top-collapse: separate;
|
||||
margin-bottom: (@baseLineHeight / 2);
|
||||
}
|
||||
|
||||
// Horizontal-specific styles
|
||||
|
|
|
|||
6
vendors/bootstrap/less/type.less
vendored
6
vendors/bootstrap/less/type.less
vendored
|
|
@ -7,7 +7,7 @@
|
|||
// -------------------------
|
||||
|
||||
p {
|
||||
margin: 0 0 @baseLineHeight / 2;
|
||||
margin: 0 0 (@baseLineHeight / 2);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ h6 { font-size: 12px; line-height: 20px; }
|
|||
// Unordered and Ordered lists
|
||||
ul, ol {
|
||||
padding: 0;
|
||||
margin: 0 0 @baseLineHeight / 2 25px;
|
||||
margin: 0 0 (@baseLineHeight / 2) 25px;
|
||||
}
|
||||
ul ul,
|
||||
ul ol,
|
||||
|
|
@ -91,7 +91,7 @@ blockquote {
|
|||
border-left: 5px solid @grayLighter;
|
||||
p {
|
||||
margin-bottom: 0;
|
||||
line-height: @baseLineHeight * 1.25;
|
||||
line-height: (@baseLineHeight * 1.25);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
2
vendors/bootstrap/less/variables.less
vendored
2
vendors/bootstrap/less/variables.less
vendored
|
|
@ -31,7 +31,7 @@
|
|||
// Typography
|
||||
// -------------------------
|
||||
@baseFontSize: 14px;
|
||||
@baseLineHeight: 20px;
|
||||
@baseLineHeight: 1.43em;
|
||||
|
||||
// Tables
|
||||
// -------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue