numix-gtk-theme/gtk-3.0/scss/_view.scss

271 lines
6.3 KiB
SCSS
Raw Normal View History

2014-11-13 19:59:02 +00:00
@import "functions";
2014-11-23 17:06:45 +00:00
@import "global";
/***************
! Generic views
****************/
@include exports("view") {
.view {
color: $text_color;
background-color: $base_color;
2014-11-13 19:59:02 +00:00
&:insensitive, &:insensitive:insensitive {
background-color: shade($base_color, 0.9);
color: mix($text_color, $base_color, 0.5);
}
2014-11-13 19:59:02 +00:00
&:selected, &:selected:focus { @extend %selected_items; }
2014-11-13 19:59:02 +00:00
}
.cell {
border-width: 0;
border-radius: 0;
2014-11-13 19:59:02 +00:00
&:selected, &:selected:focus {
2014-11-13 19:59:02 +00:00
background-color: $selected_bg_color;
color: $selected_fg_color;
}
}
row {
&:selected {
&, &:hover, &:focus {
-GtkWidget-focus-padding: 1;
-GtkWidget-focus-line-width: 0;
border: none;
background-color: $selected_bg_color;
background-image: none;
color: $selected_fg_color;
}
}
}
2014-11-13 19:59:02 +00:00
.content-view {
&.view {
background-color: $base_color;
2014-11-13 19:59:02 +00:00
&:prelight { background-color: alpha($selected_bg_color, 0.6); }
2014-11-13 19:59:02 +00:00
&:selected, &:active { background-color: $selected_bg_color; }
&:insensitive { background-color: shade($base_color, 0.9); }
2014-11-13 19:59:02 +00:00
&.check {
&, &:active, &:prelight, &:insensitive, &:selected { background-color: transparent; }
}
2014-11-13 19:59:02 +00:00
}
.subtitle {
font: smaller;
padding: 0 12px;
}
2014-11-13 19:59:02 +00:00
}
GtkIconView {
&.content-view.check { @extend .content-view.check; }
&.view.cell {
&:selected, &:selected:focus {
border: none;
border-radius: 2px;
background-image: none;
background-color: $selected_bg_color;
color: $selected_fg_color;
}
2014-11-13 19:59:02 +00:00
}
}
.dim-label {
&, &.view { color: alpha(currentColor, 0.5); }
}
2014-11-29 13:13:30 +00:00
.dnd { border: 1px solid $selected_bg_color; }
2014-11-29 13:13:30 +00:00
.grip { background-color: transparent; }
2014-11-29 13:13:30 +00:00
.arrow { color: alpha(currentColor, 0.7); }
2014-11-29 13:13:30 +00:00
.rubberband {
&, &.view, &.content-view.view {
border: 1px solid $selected_bg_color;
border-radius: 0;
background-color: alpha($selected_bg_color, 0.3);
}
2014-11-13 19:59:02 +00:00
}
/* used by GtkScrolledWindow, shown when content is touch-dragged past boundaries. */
.overshoot { background-color: alpha($selected_bg_color, 0.3); }
2014-11-23 17:06:45 +00:00
GdMainIconView.content-view { -GdMainIconView-icon-size: 40; }
2014-11-23 17:06:45 +00:00
/* this will get overridden by .view, needed by gedit line numbers */
GtkTextView { background-color: mix($bg_color, $base_color, 0.50); }
2014-11-23 17:06:45 +00:00
GtkDrawingArea, GtkHTML {
@extend .view;
2014-11-23 17:06:45 +00:00
&:insensitive { background-color: shade($base_color, 0.9); }
}
2014-11-23 17:06:45 +00:00
}
2014-11-29 13:13:30 +00:00
/************
! Treeview *
*************/
@include exports("treeview") {
GtkTreeView {
-GtkTreeView-vertical-separator: 0;
2014-11-29 13:13:30 +00:00
outline-offset: -1px;
2014-11-29 13:13:30 +00:00
&.dnd { border: 1px solid $selected_bg_color; }
2014-11-29 13:13:30 +00:00
.entry {
border-radius: 0;
background-color: $base_color;
background-image: none;
}
2014-11-29 13:13:30 +00:00
}
}
2014-11-23 17:06:45 +00:00
/*********************
! Column view headers
**********************/
@include exports("columnheader") {
column-header {
.button {
&, &:active {
border-width: 0 1px 1px 0;
border-radius: 0;
}
&, &:active, &:focus, &:active:focus {
border-color: shade($base_color, 0.9);
border-bottom-color: shade($base_color, 0.8);
background-color: shade($base_color, 0.97);
background-image: none;
}
&:hover, &:active:hover, &:hover:focus, &:active:hover:focus {
border-color: shade($base_color, 0.9);
border-bottom-color: shade($base_color, 0.8);
background-color: shade($base_color, 0.99);
background-image: none;
}
&:last-child .button { border-width: 0 0 1px 0; }
2014-11-23 17:06:45 +00:00
}
}
}
2014-11-29 13:02:31 +00:00
/**********
! Frames *
***********/
@include exports("frame") {
.frame { border: none; }
2014-11-29 13:02:31 +00:00
GtkScrolledWindow {
&.frame { border: 1px solid border_normal($bg_color); }
2014-11-29 13:02:31 +00:00
/* avoid double borders when a viewport is packed into a GtkScrolledWindow */
GtkViewport.frame { border: none; }
}
2014-11-29 13:02:31 +00:00
}
/*************
! Expanders *
**************/
@include exports("expander") {
GtkExpander {
padding: $spacing;
outline-offset: 1px;
}
2014-11-29 13:02:31 +00:00
.expander {
color: alpha(currentColor, 0.7);
border: alpha(currentColor, 0.7);
2014-11-29 13:02:31 +00:00
&:hover {
color: alpha(currentColor, 0.8);
border-color: alpha(currentColor, 0.8);
}
2014-11-29 13:02:31 +00:00
&:active {
color: alpha(currentColor, 0.9);
border-color: alpha(currentColor, 0.9);
}
2014-11-29 13:02:31 +00:00
}
}
/*******************
! Symbolic images *
********************/
@include exports("symbolicimage") {
.image {
color: alpha(currentColor, 0.5);
2014-11-29 13:02:31 +00:00
&:hover { color: alpha(currentColor, 0.9); }
2014-11-29 13:02:31 +00:00
&:selected, &:selected:hover { color: $selected_fg_color; }
}
2014-11-29 13:13:30 +00:00
}
/****************
! Floating bar *
*****************/
@include exports("floatingbar") {
.floating-bar {
border: 1px solid border_normal($bg_color);
border-radius: $roundness;
background-color: $bg_color;
background-image: none;
color: $fg_color;
&.top {
border-top-width: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
&.right {
border-right-width: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
&.bottom {
border-bottom-width: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
&.left {
border-left-width: 0;
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.button {
-GtkButton-image-spacing: 0;
-GtkButton-inner-border: 0;
border: none;
background-color: transparent;
background-image: none;
}
}
}