2023-05-25 17:25:11 -04:00
|
|
|
//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, 2015 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Global Values */
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// Base values of elements of the shell in their smallest "unit".
|
|
|
|
// These are used in calculations elsewhere to have elements in proportion
|
|
|
|
$base_font_size: 11pt; // font size
|
|
|
|
$base_padding: 6px; // internal padding of elements
|
|
|
|
$base_margin: 4px; // margin between elements
|
|
|
|
$base_border_radius: 8px; // radii on all elements
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// Radius used to make sure elements that have rounded corners stay as such.
|
|
|
|
// This is a workaround for 50% not working.
|
|
|
|
$forced_circular_radius: 999px;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
// radii of things that display over other things, e.g. popovers
|
2024-03-25 13:34:36 -04:00
|
|
|
$modal_radius: $base_border_radius * 2;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-09-19 20:40:52 -04:00
|
|
|
// radii of dialogs
|
|
|
|
$alert_radius: 18px;
|
|
|
|
|
2023-05-25 17:25:11 -04:00
|
|
|
// Chroma key to flag when a background-color is always occluded, not visible.
|
|
|
|
// This allows any box-shadow behind it to be rendered more efficiently by
|
|
|
|
// omitting the middle rectangle.
|
|
|
|
$invisible_occluded_bg_color: rgba(3,2,1,0);
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// Fixed icon sizes
|
|
|
|
$base_icon_size: 16px;
|
|
|
|
$medium_icon_size: $base_icon_size * 1.5; // 24px
|
|
|
|
$large_icon_size: $base_icon_size * 2; // 32px
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// Scaled values
|
|
|
|
// Used in elements that follow text scaling factors
|
|
|
|
$scaled_padding: to_em(6px); // same as $base_padding
|
|
|
|
|
|
|
|
// Used for symbolic icons that scale
|
|
|
|
$scalable_icon_size: to_em(16px);
|
|
|
|
$medium_scalable_icon_size: $scalable_icon_size * 1.5;
|
|
|
|
$large_scalable_icon_size: $scalable_icon_size * 2;
|
|
|
|
|
|
|
|
// animation definition
|
|
|
|
$ease_out_quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
// Stage
|
|
|
|
stage {
|
|
|
|
@include fontsize($base_font_size);
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Common Stylings */
|
2024-03-25 13:34:36 -04:00
|
|
|
%reset {
|
|
|
|
background: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
// icon tiles
|
|
|
|
%tile {
|
2024-03-25 13:34:36 -04:00
|
|
|
border-radius: $base_border_radius * 2;
|
2023-05-25 17:25:11 -04:00
|
|
|
padding: $base_padding;
|
|
|
|
spacing: $base_padding;
|
|
|
|
text-align: center;
|
2024-03-25 13:34:36 -04:00
|
|
|
transition-duration: 100ms;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
// common button styling
|
2023-05-25 17:25:11 -04:00
|
|
|
%button_common {
|
|
|
|
border-radius: $base_border_radius;
|
2024-03-25 13:34:36 -04:00
|
|
|
padding: $base_padding * .5 $base_padding * 4;
|
2023-05-25 17:25:11 -04:00
|
|
|
font-weight: bold;
|
2024-03-25 13:34:36 -04:00
|
|
|
transition: border-width 300ms $ease_out_quad,
|
|
|
|
box-shadow 300ms $ease_out_quad;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%button {
|
|
|
|
@extend %button_common;
|
|
|
|
@include button(normal);
|
|
|
|
&:focus { @include button(focus);}
|
|
|
|
&:hover { @include button(hover);}
|
|
|
|
&:insensitive { @include button(insensitive);}
|
|
|
|
&:selected,
|
|
|
|
&:active { @include button(active);}
|
|
|
|
&:checked { @include button(checked);}
|
2024-03-25 13:34:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%flat_button {
|
|
|
|
@include button(normal, $style: flat);
|
|
|
|
&:focus { @include button(focus, $style: flat);}
|
|
|
|
&:hover { @include button(hover, $style: flat);}
|
|
|
|
&:insensitive { @include button(insensitive, $style: flat);}
|
|
|
|
&:selected,
|
|
|
|
&:active { @include button(active, $style: flat);}
|
|
|
|
&:checked { @include button(checked, $style: flat);}
|
|
|
|
}
|
|
|
|
|
|
|
|
%default_button {
|
2024-09-19 20:40:52 -04:00
|
|
|
@include button(normal, $c:-st-accent-color, $tc:-st-accent-fg-color, $style: default);
|
|
|
|
&:focus { @include button(focus, $c:-st-accent-color, $tc:-st-accent-fg-color, $style: default);}
|
|
|
|
&:hover { @include button(hover, $c:-st-accent-color, $tc:-st-accent-fg-color, $style: default);}
|
|
|
|
&:insensitive { @include button(insensitive, $c:-st-accent-color, $tc:-st-accent-fg-color, $style: default);}
|
|
|
|
&:active { @include button(active, $c:-st-accent-color, $tc:-st-accent-fg-color, $style: default);}
|
2024-03-25 13:34:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// items in popover menus
|
|
|
|
%menuitem {
|
|
|
|
font-weight: normal;
|
|
|
|
spacing: $base_padding;
|
|
|
|
transition-duration: 100ms;
|
|
|
|
padding: $base_padding * 1.5 $base_padding * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// common style for card elements
|
|
|
|
%card_common {
|
|
|
|
border-radius: $base_border_radius * 1.5;
|
|
|
|
padding: $scaled_padding * 2;
|
|
|
|
margin: $base_margin;
|
|
|
|
background-color: $card_bg_color;
|
|
|
|
box-shadow: 0 1px 2px 0 $card_shadow_color;
|
|
|
|
// bit of a hack here with border since we can't have double box-shadow
|
|
|
|
border: 1px solid $card_shadow_border_color;
|
|
|
|
|
|
|
|
@if $contrast == 'high' {
|
|
|
|
border-color: transparent;
|
|
|
|
box-shadow: none;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
%card {
|
|
|
|
@extend %card_common;
|
|
|
|
@include button(normal, $style: card);
|
|
|
|
&:hover { @include button(hover, $style: card);}
|
|
|
|
&:active { @include button(active, $style: card);}
|
|
|
|
&:focus { @include button(focus, $style: card);}
|
|
|
|
&:insensitive { @include button(insensitive, $style: card);}
|
|
|
|
}
|
|
|
|
|
|
|
|
%card_flat {
|
|
|
|
@extend %card_common;
|
|
|
|
border: 1px solid transparent !important; // override of the button style needed here
|
|
|
|
@include button(undecorated, $style: flat);
|
|
|
|
&:hover { @include button(hover, $style: flat);}
|
|
|
|
&:active { @include button(active, $style: flat);}
|
|
|
|
&:focus { @include button(focus, $style: card);}
|
|
|
|
&:insensitive { @include button(insensitive, $style: card);}
|
|
|
|
}
|
|
|
|
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
// normal entry style
|
|
|
|
%entry_common {
|
|
|
|
border-radius: $base_border_radius;
|
2024-03-25 13:34:36 -04:00
|
|
|
padding: $base_padding * 1.5 $base_padding * 1.5;
|
2024-09-19 20:40:52 -04:00
|
|
|
|
|
|
|
selection-background-color: st-transparentize(-st-accent-color, 0.7);
|
|
|
|
selected-color: $fg_color;
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%entry {
|
|
|
|
@extend %entry_common;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include entry(normal);
|
|
|
|
&:hover { @include entry(hover);}
|
|
|
|
&:focus { @include entry(focus);}
|
|
|
|
&:insensitive { @include entry(insensitive);}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
StLabel.hint-text {
|
|
|
|
color: transparentize($fg_color, 0.3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-09-19 20:40:52 -04:00
|
|
|
// buttons in notifications
|
|
|
|
// use a rounded style and have a lighter background
|
|
|
|
%notification_button {
|
|
|
|
font-weight: bold;
|
|
|
|
padding: $base_padding $base_padding * 2;
|
|
|
|
border-radius: $base_border_radius;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-09-19 20:40:52 -04:00
|
|
|
@include button(normal, $style: notification);
|
|
|
|
&:focus { @include button(focus, $style: notification);}
|
|
|
|
&:hover { @include button(hover, $style: notification);}
|
|
|
|
&:active { @include button(active, $style: notification);}
|
|
|
|
&:checked { @include button(checked, $style: notification);}
|
|
|
|
&:insensitive { @include button(insensitive, $style: notification);}
|
|
|
|
}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-09-19 20:40:52 -04:00
|
|
|
// buttons in dialogs
|
|
|
|
%dialog_button {
|
|
|
|
font-weight: bold;
|
|
|
|
padding: $base_padding * 2;
|
|
|
|
border-radius: $base_border_radius * 1.5;
|
2023-05-25 17:25:11 -04:00
|
|
|
|
2024-09-19 20:40:52 -04:00
|
|
|
@include button(normal, $style: dialog);
|
|
|
|
&:focus { @include button(focus, $style: dialog);}
|
|
|
|
&:hover { @include button(hover, $style: dialog);}
|
|
|
|
&:active { @include button(active, $style: dialog);}
|
|
|
|
&:checked { @include button(checked, $style: dialog);}
|
|
|
|
&:insensitive { @include button(insensitive, $style: dialog);}
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// tooltip
|
|
|
|
%tooltip {
|
|
|
|
background-color: transparentize(black, 0.1);
|
2023-10-09 22:24:14 -04:00
|
|
|
border: 1px solid transparentize($light_1, 0.9);
|
2023-05-25 17:25:11 -04:00
|
|
|
color: $light_1;
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
border-radius: $forced_circular_radius;
|
2023-05-25 17:25:11 -04:00
|
|
|
padding: $base_padding $base_padding * 2;
|
|
|
|
text-align: center;
|
|
|
|
|
2024-03-25 13:34:36 -04:00
|
|
|
@if $contrast == 'high' {
|
2023-10-09 22:24:14 -04:00
|
|
|
background-color: black;
|
2023-05-25 17:25:11 -04:00
|
|
|
border-color: $hc_inset_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* General Typography */
|
|
|
|
%large_title {
|
|
|
|
font-weight: 300;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(24pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%title_1 {
|
|
|
|
font-weight: 800;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(20pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%title_2 {
|
|
|
|
font-weight: 800;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(15pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%title_3 {
|
|
|
|
font-weight: 700;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(15pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%title_4 {
|
|
|
|
font-weight: 700;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(13pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%heading {
|
|
|
|
font-weight: 700;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(11pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%caption_heading {
|
|
|
|
font-weight: 700;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(9pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%caption {
|
|
|
|
font-weight: 400;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include fontsize(9pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%smaller {
|
|
|
|
font-weight: 400;
|
2024-09-19 20:40:52 -04:00
|
|
|
@include fontsize(9pt);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%monospace {font-family: monospace;}
|
|
|
|
%numeric { font-feature-settings: "tnum";}
|
|
|
|
|
|
|
|
|
|
|
|
/* OSD Elements */
|
|
|
|
%osd_panel {
|
|
|
|
color: $osd_fg_color;
|
|
|
|
background-color: $osd_bg_color;
|
|
|
|
border: 1px solid $osd_outer_borders_color;
|
2024-03-25 13:34:36 -04:00
|
|
|
border-radius: $forced_circular_radius;
|
|
|
|
padding: $base_padding * 2;
|
|
|
|
@if $contrast == 'high' {
|
|
|
|
@include draw_hc_inset($width: 2px,$border: true);
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// entries
|
|
|
|
%osd_entry {
|
|
|
|
@extend %entry_common;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include entry(normal, $c:$osd_fg_color, $bc:$osd_bg_color, $always_dark: true);
|
|
|
|
&:hover { @include entry(hover, $c:$osd_fg_color, $bc:$osd_bg_color, $always_dark: true);}
|
|
|
|
&:focus { @include entry(focus, $c:$osd_fg_color, $bc:$osd_bg_color, $always_dark: true);}
|
|
|
|
&:insensitive { @include entry(insensitive, $c:$osd_fg_color, $bc:$osd_bg_color, $always_dark: true);}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
StLabel.hint-text {color: transparentize($osd_fg_color, 0.3); }
|
|
|
|
}
|
|
|
|
|
|
|
|
// buttons on OSD elements
|
|
|
|
%osd_button {
|
|
|
|
@extend %button_common;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include button(normal, $tc:$osd_fg_color, $c:$osd_bg_color, $always_dark: true);
|
|
|
|
&:focus { @include button(focus, $tc:$osd_fg_color, $c:$osd_bg_color, $always_dark: true);}
|
|
|
|
&:hover { @include button(hover, $tc:$osd_fg_color, $c:$osd_bg_color, $always_dark: true);}
|
|
|
|
&:active { @include button(active, $tc:$osd_fg_color, $c:$osd_bg_color, $always_dark: true);}
|
|
|
|
&:checked { @include button(checked, $tc:$osd_fg_color, $c:$osd_bg_color, $always_dark: true);}
|
|
|
|
&:insensitive { @include button(insensitive, $tc:$osd_fg_color, $c:$osd_bg_color, $always_dark: true);}
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
%osd_button_flat {
|
2024-03-25 13:34:36 -04:00
|
|
|
@extend %button_common;
|
|
|
|
@include button(normal, $tc:$osd_fg_color, $c:$osd_bg_color, $style: flat, $always_dark: true);
|
|
|
|
&:focus { @include button(focus, $tc:$osd_fg_color, $c:$osd_bg_color, $style: flat, $always_dark: true);}
|
|
|
|
&:hover { @include button(hover, $tc:$osd_fg_color, $c:$osd_bg_color, $style: flat, $always_dark: true);}
|
|
|
|
&:active { @include button(active, $tc:$osd_fg_color, $c:$osd_bg_color, $style: flat, $always_dark: true);}
|
|
|
|
&:checked { @include button(checked, $tc:$osd_fg_color, $c:$osd_bg_color, $style: flat, $always_dark: true);}
|
|
|
|
&:insensitive { @include button(insensitive, $tc:$osd_fg_color, $c:$osd_bg_color, $style: flat, $always_dark: true);}
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* System Elements */
|
|
|
|
|
|
|
|
// entries
|
|
|
|
%system_entry {
|
|
|
|
@extend %entry_common;
|
2024-03-25 13:34:36 -04:00
|
|
|
@include entry(normal, $c:$system_fg_color, $bc:$system_bg_color, $always_dark: true);
|
|
|
|
&:hover { @include entry(hover, $c:$system_fg_color, $bc:$system_bg_color, $always_dark: true);}
|
|
|
|
&:focus { @include entry(focus, $c:$system_fg_color, $bc:$system_bg_color, $always_dark: true);}
|
|
|
|
&:insensitive { @include entry(insensitive, $c:$system_fg_color, $bc:$system_bg_color, $always_dark: true);}
|
2023-05-25 17:25:11 -04:00
|
|
|
|
|
|
|
StLabel.hint-text { color: transparentize($system_fg_color, 0.3);}
|
|
|
|
}
|
|
|
|
|
|
|
|
// buttons
|
|
|
|
%system_button {
|
|
|
|
@include button(normal, $tc:$system_fg_color, $c:$system_bg_color);
|
|
|
|
&:insensitive { @include button(insensitive, $tc:$system_fg_color, $c:$system_bg_color);}
|
|
|
|
&:focus { @include button(focus, $tc:$system_fg_color, $c:$system_bg_color);}
|
|
|
|
&:hover { @include button(hover, $tc:$system_fg_color, $c:$system_bg_color);}
|
|
|
|
&:active { @include button(active, $tc:$system_fg_color, $c:$system_bg_color);}
|
2024-03-25 13:34:36 -04:00
|
|
|
&:checked { @include button(checked, $tc:$system_fg_color, $c:$system_bg_color);}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Lockscreen Elements */
|
|
|
|
|
|
|
|
// buttons
|
|
|
|
%lockscreen_button {
|
|
|
|
@extend %button_common;
|
|
|
|
@include button(normal, $tc:$system_fg_color, $style: lockscreen);
|
|
|
|
&:focus { @include button(focus, $tc:$system_fg_color, $style: lockscreen);}
|
|
|
|
&:hover { @include button(hover, $tc:$system_fg_color, $style: lockscreen);}
|
|
|
|
&:active { @include button(active, $tc:$system_fg_color, $style: lockscreen);}
|
|
|
|
&:checked { @include button(checked, $tc:$system_fg_color, $style: lockscreen);}
|
|
|
|
&:insensitive { @include button(insensitive, $tc:$system_fg_color, $style: lockscreen);}
|
2023-05-25 17:25:11 -04:00
|
|
|
}
|
2024-03-25 13:34:36 -04:00
|
|
|
|
|
|
|
// entries
|
|
|
|
%lockscreen_entry {
|
|
|
|
@extend %entry_common;
|
|
|
|
@include entry(normal, $c:$system_fg_color, $style: lockscreen, $always_dark: true);
|
|
|
|
&:hover { @include entry(hover, $c:$system_fg_color, $style: lockscreen, $always_dark: true);}
|
|
|
|
&:focus { @include entry(focus, $c:$system_fg_color, $style: lockscreen, $always_dark: true);}
|
|
|
|
&:insensitive { @include entry(insensitive, $c:$system_fg_color, $style: lockscreen, $always_dark: true);}
|
|
|
|
|
|
|
|
StLabel.hint-text { color: transparentize($system_fg_color, 0.3);}
|
|
|
|
}
|
|
|
|
|