numix-gtk-theme/gtk-3.0/scss/widgets/_notebook.scss

127 lines
3.6 KiB
SCSS
Raw Normal View History

2014-12-19 19:44:22 +00:00
@import "button";
/**********
! Notebook
***********/
@include exports("notebook") {
2015-08-06 19:39:22 +00:00
.notebook {
padding: 0;
2015-08-06 23:10:35 +00:00
border-width: 1px 0 0;
2015-08-06 19:39:22 +00:00
border-style: solid;
border-color: border_normal($base_color);
border-radius: 0;
background-color: $base_color;
background-image: none;
background-clip: border-box;
color: $text_color;
-GtkNotebook-initial-gap: 0;
-GtkNotebook-arrow-spacing: 5;
-GtkNotebook-tab-curvature: 0;
-GtkNotebook-tab-overlap: 1;
-GtkNotebook-has-tab-gap: false;
&.frame { border-width: 1px; }
&.header {
border-width: 0;
background-color: shade($base_color, .9);
&.frame {
border-color: border_normal($base_color);
2015-08-06 23:10:35 +00:00
&.top { border-width: 1px 1px 0; }
2015-08-06 19:39:22 +00:00
&.right { border-width: 1px 1px 1px 0; }
2015-08-06 23:10:35 +00:00
&.bottom { border-width: 0 1px 1px; }
2015-08-06 19:39:22 +00:00
&.left { border-width: 1px 0 1px 1px; }
}
}
GtkViewport {
border-width: 0;
background-color: $base_color;
color: $text_color;
}
tab {
padding: ($spacing + 1px) ($spacing * 2);
border: 1px solid transparent;
background-color: transparent;
background-image: none;
&:hover {
background-color: shade($base_color, .95);
border-color: shade($base_color, .8);
}
&:active {
background-color: $base_color;
background-image: none;
border-color: shade($base_color, .85);
}
&.top {
border-bottom-width: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
&.right {
border-left-width: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
&.bottom {
border-top-width: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
&.left {
border-right-width: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
2015-08-16 13:39:04 +00:00
GtkLabel { color: mix($text_color, $base_color, .7); }
2015-08-06 19:39:22 +00:00
/* close button styling */
.button { @extend %close_button; }
}
.prelight-page {
2015-08-16 13:39:04 +00:00
&, GtkLabel { color: mix($text_color, $base_color, .95); }
2015-08-06 19:39:22 +00:00
}
.active-page {
&, GtkLabel { color: $text_color; }
}
.reorderable-page {
&:hover {
2015-08-06 23:10:35 +00:00
background-color: shade($base_color, .85);
2015-08-06 19:39:22 +00:00
border-left: 0;
border-right: 0;
/* using box shadows instead of borders due to slanted edges */
2015-08-16 13:28:10 +00:00
box-shadow: inset 0 3px fade-out($black, .17), inset 0 2px fade-out($black, .17), inset 0 1px fade-out($black, .17),
2015-08-06 23:10:35 +00:00
inset 1px 0 shade($base_color, .7), inset -1px 0 shade($base_color, .7);
2015-08-06 19:39:22 +00:00
}
&:active {
2015-08-06 23:10:35 +00:00
background-color: shade($base_color, .9);
2015-08-06 19:39:22 +00:00
border-left: 0;
border-right: 0;
2015-08-16 13:28:10 +00:00
box-shadow: inset 0 3px fade-out($black, .17), inset 0 2px fade-out($black, .17), inset 0 1px fade-out($black, .17),
2015-08-06 23:10:35 +00:00
inset 1px 0 shade($base_color, .75), inset -1px 0 shade($base_color, .75);
2015-08-06 19:39:22 +00:00
}
}
}
}