fix notebook tab padding issues for some applications. Fixes #588

pull/613/head
Dustin Falgout 2016-10-23 16:33:14 -05:00
parent aea6d16317
commit 7ac68f6712
2 changed files with 37 additions and 46 deletions

View File

@ -364,15 +364,15 @@
box-shadow: none; box-shadow: none;
&:focus, &:hover { &:focus, &:hover {
border: 1px solid alpha($black, .3); border: 1px solid alpha($bg_color, .1);
background-color: alpha($white, .2); background-color: alpha($white, .2);
background-image: none; background-image: none;
box-shadow: none; box-shadow: none;
} }
&:active, &:checked, &:active:hover, &:checked:hover { &:active, &:checked, &:active:hover, &:checked:hover {
border: 1px solid alpha($black, .3); border: 1px solid alpha($selected_bg_color, .2);
background-color: alpha($black, .1); background-color: alpha($white, .2);
background-image: none; background-image: none;
box-shadow: none; box-shadow: none;
} }

View File

@ -144,7 +144,7 @@
} }
tab { tab {
padding: ($spacing + 1) 0 0; // top | left/right | bottom padding: 0;
border-style: solid; border-style: solid;
border-width: 1px; // for reorderable tabs border-width: 1px; // for reorderable tabs
border-color: transparent; // border-color: transparent; //
@ -152,18 +152,35 @@
box-shadow: none; box-shadow: none;
outline: none; outline: none;
button, button:hover { > box,
margin-left: 15px; > label,
opacity: 0; > widget > box {
transition: opacity .3s ease-in; padding: ($spacing + 2) ($spacing * 3); // top/bottom | left/right
}
> box, > label {
padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom
border-width: 2px; border-width: 2px;
border-style: solid; border-style: solid;
border-color: transparent; border-color: transparent;
transition: border-color .3s ease-out; transition: border-color .2s linear;
}
&.reorderable-page {
> box,
> label,
> widget > box {
padding: ($spacing + 2) ($spacing * 2) ($spacing + 2) ($spacing * 3); // top | right | bottom | left
}
}
/* close button styling */
button,
button.flat {
@extend %close_button;
min-height: 16px;
min-width: 16px;
padding: 0;
margin-left: $spacing * 3;
border: 1px solid transparent;
transition: all .1s linear;
} }
&:hover { &:hover {
@ -171,8 +188,9 @@
border-color: transparent; border-color: transparent;
outline: none; outline: none;
button, button:hover { button,
opacity: 1; button.flat {
border: 1px solid alpha($bg_color, .1);
} }
} }
@ -193,15 +211,6 @@
label { label {
color: mix($text_color, $base_color, .3); color: mix($text_color, $base_color, .3);
} }
/* close button styling */
button.flat {
min-height: 16px;
min-width: 16px;
padding: 0;
@extend %close_button;
}
} }
&.top tab, &.top tab,
@ -267,16 +276,11 @@
} }
&.top tab { &.top tab {
padding: ($spacing + 1) 0 0; // top | left/right | bottom
border-style: solid; border-style: solid;
border-color: $borders_color; border-color: $borders_color;
border-width: 0; border-width: 0;
border-bottom-width: 1px; border-bottom-width: 1px;
transition: border-bottom-color .3s ease-out; transition: border-bottom-color .2s linear;
> box, > label {
padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom
}
&:hover { &:hover {
outline: none; outline: none;
@ -286,7 +290,9 @@
border-bottom-color: $selected_bg_color; border-bottom-color: $selected_bg_color;
outline: none; outline: none;
> box, > label { > box,
> label,
> widget > box {
border-bottom-color: $selected_bg_color; border-bottom-color: $selected_bg_color;
} }
@ -302,17 +308,12 @@
} }
&.right tab { &.right tab {
padding: 0 ($spacing + 1) 0 0; // top | right | bottom | left
border-style: solid; border-style: solid;
border-color: $borders_color; border-color: $borders_color;
border-width: 0; border-width: 0;
border-left-width: 1px; border-left-width: 1px;
transition: border-left-color .3s ease-out; transition: border-left-color .3s ease-out;
> box, > label {
padding: ($spacing + 1) ($spacing * 3); // top | right | bottom | left
}
&:hover { &:hover {
outline: none; outline: none;
} }
@ -337,17 +338,12 @@
} }
&.bottom tab { &.bottom tab {
padding: 0 0 ($spacing + 1); // top | left/right | bottom
border-style: solid; border-style: solid;
border-color: $borders_color; border-color: $borders_color;
border-width: 0; border-width: 0;
border-top-width: 1px; border-top-width: 1px;
transition: border-top-color .3s ease-out; transition: border-top-color .3s ease-out;
> box, > label {
padding: ($spacing + 1) ($spacing * 3) 0; // top/bottom | left/right
}
&:hover { &:hover {
outline: none; outline: none;
} }
@ -372,17 +368,12 @@
} }
&.left tab { &.left tab {
padding: 0 0 0 ($spacing + 1); // top | right | bottom | left
border-style: solid; border-style: solid;
border-color: $borders_color; border-color: $borders_color;
border-width: 0; border-width: 0;
border-right-width: 1px; border-right-width: 1px;
transition: border-right-color .3s ease-out; transition: border-right-color .3s ease-out;
> box, > label {
padding: ($spacing + 1) ($spacing * 3); // top/bottom | left/right
}
&:hover { &:hover {
outline: none; outline: none;
} }