//This is the RIGHT PLACE to edit the stylesheet //let's start by telling people not to edit the generated CSS: $cakeisalie: "This stylesheet is generated, DO NOT EDIT"; /* #{$cakeisalie} */ /* Copyright 2009, Red Hat, Inc. * * Portions adapted from Mx's data/style/default.css * Copyright 2009 Intel Corporation * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for * more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. */ /* GLOBALS */ $font-size: 11; $font-family: Cantarell, Sans-Serif; stage { font-family: $font-family; @include fontsize($font-size); color: $fg_color; } /* WIDGETS */ /* Buttons */ // one would think we may want a generic button class: // bug #737785 .candidate-page-button, .notification-button, .notification-icon-button, .hotplug-notification-item, .hotplug-resident-eject-button, .modal-dialog-button, .app-view-control { border-radius: 3px; border-width: 1px; padding: 4px 32px; @include button(normal); &:hover { @include button(hover); } &:focus { @include button(focus); } &:insensitive { @include button(insensitive); } &:active { @include button(active); } } /* Entries */ StEntry { border-radius: 3px; padding: 4px; border-width: 1px; color: $fg_color; @include entry(normal); //&:hover { @include entry(hover);} &:focus { @include entry(focus,$fc:transparentize($fg_color,0.5));} &:insensitive { @include entry(insensitive);} .search-entry { padding: 7px 9px; border-radius: 24px; &:focus { padding: 6px 8px; border-width: 2px; } } } /* Scrollbars */ StScrollBar { padding: 0; &.vfade { -st-vfade-offset: 68px; } &.hfade { -st-hfade-offset: 68px; } StScrollView & { min-width: 14px; min-height: 14px; } StBin#trough { border-radius: 0; background-color: darken($osd_bg_color,10%); } StButton#vhandle, StButton#hhandle { border-radius: 8px; background-color: $bg_color; border: 3px solid darken($osd_bg_color,10%); //would be nice to margin or at least to transparent &:hover { background-color: lighten($bg_color,10%); } &:active { background-color: $selected_bg_color; } } } /* Slider */ .slider { height: 1em; -slider-height: 0.3em; -slider-background-color: $insensitive_bg_color; //background of the trough -slider-border-color: $borders_color; //trough border color -slider-active-background-color: $selected_bg_color; //active trough fill -slider-active-border-color: darken($selected_bg_color,10%); //active trough border -slider-border-width: 1px; -slider-handle-radius: 6px; } /* Check Boxes */ .check-box { StBoxLayout { spacing: .8em; } StBin { width: 24px; height: 22px; background-image: url("checkbox-off.svg"); } &:focus Stbin { background-image: url("checkbox-off-focused.svg"); } &:checked Stbin { background-image: url("checkbox.svg"); } &:focus:checked Stbin { background-image: url("checkbox-focused.svg"); } } /* Switches */ .toggle-switch { width: 65px; height: 22px; background-size: contain; } @each $v in us, intl { .toggle-switch-#{$v} { background-image: url("toggle-off-#{$v}.svg"); &:checked { background-image: url("toggle-on-#{$v}.svg"); } } } /* links */ .shell-link { color: $link_color; &:hover { color: lighten($link_color,10%); } } /* Modal Dialogs */ .lightbox { background-color: black; } //FIXME where is this? .flashspot { background-color: white; } //FIXME where is this? .modal-dialog { border-radius: 5px; background-color: transparentize(darken($bg_color,10%),0.05); border: 1px solid $borders_color; padding: 24px; .run-dialog-entry { width: 20em; } .run-dialog-error-box { padding-top: 16px; spacing: 6px; } .run-dialog-button-box { padding-top: 1em; } .run-dialog-label { font-size: fontsize($font-size + 1.1); font-weight: bold; color: darken($fg_color,10%); padding-bottom: .4em; } } .button-dialog-button-box { spacing: 18px; padding-top: 48px; } .show-processes-dialog-subject, .mount-question-dialog-subject, .end-session-dialog-subject { //this should be a generic header class font-size: fontsize($font-size * 1.3); } /* Popvers/Menus */ .popup-menu { min-width: 200px; .popup-menu-arrow { } //defined globally in the TOP BAR .popup-sub-menu { background-color: darken($bg_color,2%); border-top: 1px solid lighten($borders_color,5%); border-bottom: 1px solid lighten($borders_color,5%); } .popup-menu-content { padding: 1em 0em; } .popup-menu-item { spacing: 12px; &:ltr { padding: .4em 1.75em .4em 0em; } &:rtl { padding: .4em 0em .4em 1.75em; } &:active { background-color: lighten($bg_color,10%); } &:insensitive { background-color: transparentize($bg_color,.5); } } .popup-inactive-menu-item { //all icons and other graphical elements color: $fg_color; &:insensitive { color: transparentize($fg_color,0.5); } } //.popup-status-menu-item { font-weight: normal; color: pink; } //dunno what that is } .popup-menu-ornament { text-align: right; width: 1em; } .popup-menu-boxpointer, .candidate-popup-boxpointer { -arrow-border-radius: 3px; -arrow-background-color: $bg_color; -arrow-border-width: 1px; -arrow-border-color: $borders_color; -arrow-base: 24px; -arrow-rise: 11px; -arrow-box-shadow: 0 1px 3px red; //dreaming. bug #689995 } /* fallback menu - odd thing for styling App menu when apparently not running under shell. Light Adwaita styled app menu inside the main app window itself rather than the top bar */ /* TOP BAR */ #panel { background-color: black; font-weight: bold; height: 1.86em; &.unlock-screen, &.login-screen, &.lock-screen { background-color: transparent; } #panelLeft, #panelCenter { // spacing between activities<>app menu and such spacing: 4px; } .panel-corner { -panel-corner-radius: 6px; -panel-corner-background-color: black; -panel-corner-border-width: 2px; -panel-corner-border-color: transparent; &:active, &:overview, &:focus { -panel-corner-border-color: #729fcf; } //fixed due to SVG image-border &.lock-screen, &.login-screen, &unlock-screen { -panel-corner-radius: 0; -panel-corner-background-color: transparent; -panel-corner-border-color: transparent; } } .panel-button { -natural-hpadding: 12px; -minimum-hpadding: 6px; font-weight: bold; color: #ccc; transition-duration: 100ms; #appMenuIcon { app-icon-bottom-clip: 1px; .panel-button:active &, .panel-button:overview &, .panel-button:focus &, .panel-button:checked & { app-icon-bottom-clip: 2px; } } &:hover { color: lighten($fg_color, 10%); text-shadow: black 0 2px 2px; } &:active, &:overview, &:focus, &:checked { border-image: url("panel-button-border.svg") 6 10 0 2; color: lighten($fg_color,10%); text-shadow: black 0px 2px 2px; & > .system-status-icon { icon-shadow: black 0 2px 2px; } } .system-status-icon { icon-size: 1.09em; padding: 0 5px; } .unlock-screen &, .login-screen &, .lock-screen & { color: lighten($fg_color, 10%); &:focus, &:hover, &:active { color: lighten($fg_color, 10%); } } } .panel-status-button { &:active, &:overview, &:focus, &:checked { border-image: url("panel-button-border.svg") 6 10 0 2; } } .panel-menu { -boxpointer-gap: 4px; } //FIXME .panel-status-indicators-box, //FIXME .panel-status-menu-box { spacing: 2px; } .screencast-indicator { color: $warning_color; } } // a little unstructured mess: .system-switch-user-submenu-icon { icon-size: 24px; border: 1px solid transparentize($fg_color,0.6); } #appMenu { spinner-image: url("process-working.svg"); spacing: 4px; .label-shadow { color: transparentize(#000,0.5); } } .aggregate-menu { width: 360px; .popup-menu-icon { padding: 0 4px; } } .system-menu-action { color: $fg_color; border-radius: 32px; /* wish we could do 50% */ padding: 13px; border: 1px solid lighten($borders_color,5%); &:hover, &:focus { color: lighten($fg_color, 10%); background-color: lighten($bg_color,10%); border: none; padding: 14px; } &:active { background-color: lighten($borders_color,5%); } & > StIcon { icon-size: 16px; } } // not really top bar only .popup-menu-arrow { width: 16px; height: 16px; } .popup-menu-icon { icon-size: 1.09em; } /* NOTIFICATIONS & MESSAGE TRAY */