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

126 lines
2.9 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
****************/
.view {
color: $text_color;
background-color: $base_color;
&:selected { @extend %selected_items; }
}
2014-11-13 19:59:02 +00:00
.cell {
border-width: 0;
border-radius: 0;
&:selected, &:selected:focus {
background-color: $selected_bg_color;
color: $selected_fg_color;
}
}
row {
&:selected {
&, &:hover, &:focus {
-GtkWidget-focus-padding: 1;
-GtkWidget-focus-line-width: 0;
2014-11-14 16:38:08 +00:00
border: none;
2014-11-13 19:59:02 +00:00
background-color: $selected_bg_color;
background-image: none;
color: $selected_fg_color;
}
}
}
.content-view {
&.view {
background-color: $base_color;
&:prelight { background-color: alpha($selected_bg_color, 0.6); }
&:selected, &:active { background-color: $selected_bg_color; }
&:insensitive { background-color: shade($base_color, 0.9); }
&.check {
&, &:active, &:prelight, &:insensitive, &:selected { background-color: transparent; }
}
}
.subtitle {
font: smaller;
padding: 0 12px;
}
}
GtkIconView {
2014-11-23 17:06:45 +00:00
&.content-view.check { @extend .content-view.check; }
2014-11-13 19:59:02 +00:00
&.view.cell {
&:selected, &:selected:focus {
2014-11-14 16:38:08 +00:00
border: none;
2014-11-13 19:59:02 +00:00
border-radius: 2px;
background-image: none;
2014-11-23 17:06:45 +00:00
background-color: $selected_bg_color;
2014-11-13 19:59:02 +00:00
color: $selected_fg_color;
}
}
}
.rubberband {
&, &.view, &.content-view.view {
2014-11-23 17:06:45 +00:00
border: 1px solid $selected_bg_color;
2014-11-13 19:59:02 +00:00
border-radius: 0;
background-color: alpha($selected_bg_color, 0.3);
}
}
2014-11-23 17:06:45 +00:00
/* used by GtkScrolledWindow, shown when content is touch-dragged past boundaries. */
.overshoot { background-color: alpha($selected_bg_color, 0.3); }
2014-11-13 19:59:02 +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); }
GtkDrawingArea, GtkHTML {
@extend .view;
&:insensitive { background-color: shade($base_color, 0.9); }
}
/*********************
! Column view headers
**********************/
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; }
}
}