_unity.scss
ASCII text
1/** 2* Unity 3*/ 4 5// Based on: 6// https://bazaar.launchpad.net/~ubuntu-art-pkg/ubuntu-themes/trunk/view/head:/Ambiance/gtk-3.20/apps/unity.css 7 8@use "../../../theme"; 9@use "../../../theme-color"; 10@use "../../../shadow"; 11 12// Decorations 13UnityDecoration { 14-UnityDecoration-extents: 28px 0 0 0; 15-UnityDecoration-input-extents: 8px; 16 17-UnityDecoration-shadow-offset-x: 0; 18-UnityDecoration-shadow-offset-y: 3px; 19-UnityDecoration-active-shadow-color: rgba(black, .48); 20-UnityDecoration-active-shadow-radius: 18px; 21-UnityDecoration-inactive-shadow-color: rgba(black, .32); 22-UnityDecoration-inactive-shadow-radius: 6px; 23 24-UnityDecoration-glow-size: 8px; 25-UnityDecoration-glow-color: theme-color.$primary; 26 27-UnityDecoration-title-indent: 4px; 28-UnityDecoration-title-fade: 32px; 29-UnityDecoration-title-alignment: 0.0; 30 31.top { 32padding: 0 2px; 33border-style: none; 34border-radius: theme.$corner-radius theme.$corner-radius 0 0; 35box-shadow: inset 0 1px theme-color.highlight(theme-color.$titlebar); 36background-color: theme-color.$titlebar; 37color: theme-color.$on-titlebar; 38 39&:backdrop { 40background-color: theme-color.$titlebar-backdrop; 41color: theme-color.hint(theme-color.$on-titlebar); 42} 43} 44 45.left, 46.right { 47} 48 49.bottom { 50} 51 52.menuitem { 53border-radius: theme.$corner-radius theme.$corner-radius 0 0; 54box-shadow: none; // Don't inherit from .top 55color: theme-color.hint(theme-color.$on-titlebar); 56 57&:hover { 58background-color: theme-color.activated-overlay(theme-color.$on-titlebar); 59color: theme-color.$on-titlebar; 60} 61} 62} 63 64.background:not(.csd) headerbar:not(.titlebar) { 65border-radius: 0; 66box-shadow: shadow.$z1; 67 68&.inline-toolbar { 69border-style: none; 70} 71} 72 73sheet-style-dialog.unity-force-quit { 74// background-color: theme-color.$surface-z0; 75} 76 77// Panel Style 78UnityPanelWidget, 79.unity-panel { 80background-color: theme-color.$panel-solid; 81color: theme-color.$on-panel-solid; 82 83&:backdrop { 84color: theme-color.hint(theme-color.$on-panel-solid); 85} 86} 87 88.unity-panel.menubar, 89.unity-panel .menubar { 90} 91 92.unity-panel.menuitem, 93.unity-panel .menuitem { 94color: theme-color.hint(theme-color.$on-panel-solid); 95} 96 97.unity-panel.menubar.menuitem:hover, 98.unity-panel.menubar .menuitem *:hover { 99background-color: theme-color.activated-overlay(theme-color.$on-panel-solid); 100color: theme-color.$on-panel-solid; 101} 102 103.menu IdoPlaybackMenuItem.menuitem:active { 104-gtk-icon-source: -gtk-icontheme('process-working-symbolic'); 105animation: spin 1s linear infinite; 106color: theme-color.$primary; 107} 108