Update selected tab style

This commit is contained in:
EliverLara
2020-03-14 13:48:29 -06:00
parent 28d4ccf46e
commit 0e91784867
5 changed files with 53 additions and 46 deletions

View File

@@ -29,6 +29,10 @@ $selected_bg_color: #0072ff;
$selected_borders_color: darken($selected_bg_color, 10%);
$borders_color: if($variant == 'light', transparentize(black,0.87), transparentize(#0C0E15,0.2));
$borders_edge: if($variant == 'light', transparentize(white, 0.8), transparentize(white, 0.9));
$selected-tab-gradient-start: #fed349;
$selected-tab-gradient-end: #ff7800;
$link_color: $blue;
$link_visited_color:transparentize($link_color,0.5);
$top_highlight: if($variant == 'light', transparentize(white, 0.8), transparentize(white, 0.9));

View File

@@ -606,3 +606,15 @@ box-shadow: none;
@mixin scale-highlight($dir) {
background: linear-gradient(to $dir, #00c6ff, $selected_bg_color);
}
@mixin selected-tab($dir) {
background:
linear-gradient(to $dir, $selected-tab-gradient-start, $selected-tab-gradient-end)
left
bottom
lighten(mix($base_color, darken($bg_color, 8%), 30%), 4%)
no-repeat;
@if $dir==right { background-size: 100% 2px; }
@else if $dir==bottom { background-size: 2px 100%; }
border: 0;
}

View File

@@ -3055,9 +3055,9 @@ assistant {
*************/
notebook > header {
padding: 1px;
border-color: rgba(12, 14, 21, 0.8);
border-color: transparent;
border-width: 1px;
background-color: #181b28; }
background-color: #0c0e14; }
notebook > header:backdrop {
border-color: rgba(13, 16, 23, 0.82);
background-color: #161925; }
@@ -3070,9 +3070,9 @@ notebook > header {
notebook > header.top > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.top > tabs > tab:checked {
background-color: #181b28; }
notebook > header.top > tabs > tab:checked:hover {
background-color: #181b28; }
background: linear-gradient(to right, #fed349, #ff7800) left bottom #141721 no-repeat;
background-size: 100% 2px;
border: 0; }
notebook > header.bottom {
border-top-style: solid; }
notebook > header.bottom > tabs {
@@ -3080,8 +3080,9 @@ notebook > header {
notebook > header.bottom > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.bottom > tabs > tab:checked {
background-color: #181b28;
box-shadow: -1px 0 0 rgba(12, 14, 21, 0.8), 0px 1px 0 rgba(12, 14, 21, 0.8), 1px 0 0 rgba(12, 14, 21, 0.8); }
background: linear-gradient(to right, #fed349, #ff7800) left bottom #141721 no-repeat;
background-size: 100% 2px;
border: 0; }
notebook > header.left {
border-right-style: solid; }
notebook > header.left > tabs {
@@ -3089,8 +3090,9 @@ notebook > header {
notebook > header.left > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.left > tabs > tab:checked {
background-color: #181b28;
box-shadow: 0px 1px 0 rgba(12, 14, 21, 0.8), 0px -1px 0 rgba(12, 14, 21, 0.8), 0px 1px 0 rgba(12, 14, 21, 0.8); }
background: linear-gradient(to bottom, #fed349, #ff7800) left bottom #141721 no-repeat;
background-size: 2px 100%;
border: 0; }
notebook > header.right {
border-left-style: solid; }
notebook > header.right > tabs {
@@ -3098,8 +3100,9 @@ notebook > header {
notebook > header.right > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.right > tabs > tab:checked {
background-color: #181b28;
box-shadow: 0px 1px 0 rgba(12, 14, 21, 0.8), 0px -1px 0 rgba(12, 14, 21, 0.8), 1px 0 0 rgba(12, 14, 21, 0.8); }
background: linear-gradient(to bottom, #fed349, #ff7800) left bottom #141721 no-repeat;
background-size: 2px 100%;
border: 0; }
notebook > header.top > tabs > arrow {
border-top-style: none; }
notebook > header.bottom > tabs > arrow {
@@ -3163,8 +3166,7 @@ notebook > header {
border-color: transparent;
background-color: transparent; }
notebook > header tab:checked {
color: #C3C7D1;
box-shadow: -1px 0 0 rgba(12, 14, 21, 0.8), 0px -1px 0 rgba(12, 14, 21, 0.8), 1px 0 0 rgba(12, 14, 21, 0.8); }
color: #C3C7D1; }
notebook > header tab:checked.reorderable-page {
border-color: rgba(12, 14, 21, 0.3);
background-color: rgba(22, 25, 37, 0.5); }

View File

@@ -3062,9 +3062,9 @@ assistant {
*************/
notebook > header {
padding: 1px;
border-color: rgba(0, 0, 0, 0.13);
border-color: transparent;
border-width: 1px;
background-color: #ebf0f5; }
background-color: #d9dbdc; }
notebook > header:backdrop {
border-color: rgba(142, 142, 142, 0.217);
background-color: #e6e6e6; }
@@ -3077,9 +3077,9 @@ notebook > header {
notebook > header.top > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.top > tabs > tab:checked {
background-color: #ebf0f5; }
notebook > header.top > tabs > tab:checked:hover {
background-color: #ebf0f5; }
background: linear-gradient(to right, #fed349, #ff7800) left bottom #e4e5e6 no-repeat;
background-size: 100% 2px;
border: 0; }
notebook > header.bottom {
border-top-style: solid; }
notebook > header.bottom > tabs {
@@ -3087,8 +3087,9 @@ notebook > header {
notebook > header.bottom > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.bottom > tabs > tab:checked {
background-color: #ebf0f5;
box-shadow: -1px 0 0 rgba(0, 0, 0, 0.13), 0px 1px 0 rgba(0, 0, 0, 0.13), 1px 0 0 rgba(0, 0, 0, 0.13); }
background: linear-gradient(to right, #fed349, #ff7800) left bottom #e4e5e6 no-repeat;
background-size: 100% 2px;
border: 0; }
notebook > header.left {
border-right-style: solid; }
notebook > header.left > tabs {
@@ -3096,8 +3097,9 @@ notebook > header {
notebook > header.left > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.left > tabs > tab:checked {
background-color: #ebf0f5;
box-shadow: 0px 1px 0 rgba(0, 0, 0, 0.13), 0px -1px 0 rgba(0, 0, 0, 0.13), 0px 1px 0 rgba(0, 0, 0, 0.13); }
background: linear-gradient(to bottom, #fed349, #ff7800) left bottom #e4e5e6 no-repeat;
background-size: 2px 100%;
border: 0; }
notebook > header.right {
border-left-style: solid; }
notebook > header.right > tabs {
@@ -3105,8 +3107,9 @@ notebook > header {
notebook > header.right > tabs > tab:backdrop {
box-shadow: none; }
notebook > header.right > tabs > tab:checked {
background-color: #ebf0f5;
box-shadow: 0px 1px 0 rgba(0, 0, 0, 0.13), 0px -1px 0 rgba(0, 0, 0, 0.13), 1px 0 0 rgba(0, 0, 0, 0.13); }
background: linear-gradient(to bottom, #fed349, #ff7800) left bottom #e4e5e6 no-repeat;
background-size: 2px 100%;
border: 0; }
notebook > header.top > tabs > arrow {
border-top-style: none; }
notebook > header.bottom > tabs > arrow {
@@ -3170,8 +3173,7 @@ notebook > header {
border-color: transparent;
background-color: transparent; }
notebook > header tab:checked {
color: #31363d;
box-shadow: -1px 0 0 rgba(0, 0, 0, 0.13), 0px -1px 0 rgba(0, 0, 0, 0.13), 1px 0 0 rgba(0, 0, 0, 0.13); }
color: #31363d; }
notebook > header tab:checked.reorderable-page {
border-color: rgba(0, 0, 0, 0);
background-color: rgba(230, 230, 230, 0.5); }

View File

@@ -4,9 +4,9 @@
notebook {
> header {
padding: 1px;
border-color: $borders_color;
border-color: transparent;
border-width: 1px;
background-color: $base_color;
background-color: mix($base_color, darken($bg_color, 8%), 30%);
&:backdrop {
border-color: $backdrop_borders_color;
@@ -25,8 +25,7 @@ notebook {
&:backdrop { box-shadow: none; }
&:checked {
background-color: $base_color;
&:hover{background-color: $base_color;}
@include selected-tab(right);
}
}
}
@@ -42,10 +41,7 @@ notebook {
&:backdrop { box-shadow: none; }
&:checked {
background-color: $base_color;
box-shadow: -1px 0 0 $borders_color,
0px 1px 0 $borders_color,
1px 0 0 $borders_color;
@include selected-tab(right);
}
}
}
@@ -61,11 +57,8 @@ notebook {
&:backdrop { box-shadow: none; }
&:checked {
background-color: $base_color;
box-shadow: 0px 1px 0 $borders_color,
0px -1px 0 $borders_color,
0px 1px 0 $borders_color;
}
@include selected-tab(bottom);
}
}
}
}
@@ -80,10 +73,7 @@ notebook {
&:backdrop { box-shadow: none; }
&:checked {
background-color: $base_color;
box-shadow: 0px 1px 0 $borders_color,
0px -1px 0 $borders_color,
1px 0 0 $borders_color;
@include selected-tab(bottom);
}
}
}
@@ -188,9 +178,6 @@ notebook {
&:checked {
color: $fg_color;
box-shadow: -1px 0 0 $borders_color,
0px -1px 0 $borders_color,
1px 0 0 $borders_color;
&.reorderable-page {
border-color: transparentize($borders_color, 0.5);
background-color: transparentize($bg_color, 0.5);