1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870 |
- $asset_path: if($variant == 'dark', dark-assets, light-assets);
- //
- // Globals
- //
- $font-size: 9;
- $font-family: Futura Bk bt, sans, Sans-Serif;
- $_bubble_bg_color: opacify($osd_bg_color,0.25);
- $_bubble_fg_color: $osd_fg_color;
- $_bubble_borders_color: transparentize($osd_fg_color,0.8);
- $_shell_fg_color: $fg_color;
- stage {
- color: $fg_color;
- }
- .label-shadow {
- color: rgba(0, 0, 0, 0);
- }
- %reset_style {
- background-color: transparent !important;
- background-gradient-direction: none !important;
- border: none !important;
- border-radius: 0 !important;
- }
- //
- // Buttons
- //
- %button {
- min-height: 20px;
- padding: 5px 32px;
- transition-duration: 0;
- &, &:focus, &:hover, &:hover:focus, &:active, &:active:focus, &:insensitive {
- border-radius: 2px;
- }
- @include button(normal);
- &:focus { @include button(focus); }
- &:hover { @include button(hover); }
- &:hover:focus { @include button(focus-hover); }
- &:active, &:active:focus { @include button(active); }
- &:insensitive { @include button(insensitive); }
- }
- %osd_button {
- min-height: 20px;
- padding: 5px 32px;
- transition-duration: 0;
- border-radius: 2px;
- @include button(osd);
- &:hover { @include button(osd-hover); }
- &:focus { color: $selected_bg_color; }
- &:active { @include button(osd-active); }
- &:insensitive { @include button(osd-insensitive); }
- }
- //
- // Entries
- //
- %entry {
- padding: 5px;
- caret-size: 1px;
- selection-background-color: $selected_bg_color;
- selected-color: $selected_fg_color;
- transition-duration: 300ms;
- border-radius: 3px;
- @include entry(normal);
- &:focus, &:hover { @include entry(focus); }
- &:insensitive { @include entry(insensitive); }
- StIcon.capslock-warning {
- icon-size: 16px;
- warning-color: $warning_color;
- padding: 0 4px;
- }
- }
- %osd_entry {
- padding: 7px;
- caret-size: 1px;
- caret-color: $osd_fg_color;
- selection-background-color: $selected_bg_color;
- selected-color: $selected_fg_color;
- transition-duration: 300ms;
- border-radius: 3px;
- @include entry(osd);
- &:focus { @include entry(osd-focus); }
- &:insensitive { @include entry(osd-insensitive); }
- }
- //
- // Scrollbars
- //
- StScrollView {
- &.vfade { -st-vfade-offset: 0px; }
- &.hfade { -st-hfade-offset: 0px; }
- }
- StScrollBar {
- padding: 8px;
- StScrollView & {
- min-width: 5px;
- min-height: 5px;
- }
- StBin#trough {
- background-color: transparentize($base_color, 0.9);
- border-radius: 8px;
- }
- StButton#vhandle, StButton#hhandle {
- border-radius: 2px;
- background-color: mix($fg_color, $bg_color, 40%);
- border: 0px solid;
- margin: 0px;
- &:hover { background-color: mix($fg_color, $bg_color, 30%); }
- &:active { background-color: $selected_bg_color; }
- }
- }
- .separator {
- -gradient-height: 1px;
- -gradient-start: rgba(0,0,0,0);
- -gradient-end: rgba(0,0,0,0);
- -margin-horizontal: 1.5em;
- height: 1em;
- }
- //
- // Slider
- //
- .popup-slider-menu-item,
- .slider {
- -slider-height: 0.3em;
- -slider-background-color: lighten($base_color, 5%); //background of the trough
- -slider-border-color: transparentize($bg_color, 0.7); //trough border color
- -slider-active-background-color: $selected_bg_color; //active trough fill
- -slider-active-border-color: transparentize($bg_color, 0.7); //active trough border
- -slider-border-width: 1px;
- -slider-handle-radius: 0.5em;
- height: 1em;
- min-width: 15em;
- border: 0 solid transparent;
- border-right-width: 1px;
- border-left-width: 5px;
- .popup-menu-item:active & {
- -slider-background-color: transparentize(black, 0.8);
- -slider-active-background-color: $selected_fg_color;
- }
- }
- //
- // Check Boxes
- //
- .check-box {
- CinnamonGenericContainer {
- spacing: .2em;
- min-height: 30px;
- padding-top: 2px;
- }
- StLabel { font-weight: normal; }
- StBin {
- width: 16px;
- height: 16px;
- background-image: url("#{$asset_path}/checkbox/checkbox-unchecked.svg");
- }
- &:focus StBin { background-image: url("#{$asset_path}/checkbox/checkbox-unchecked-focused.svg"); }
- &:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked.svg"); }
- &:focus:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked-focused.svg"); }
- }
- //
- // Radio Buttons
- //
- .radiobutton {
- CinnamonGenericContainer {
- spacing: .2em;
- height: 26px;
- padding-top: 2px;
- }
- StLabel {
- padding-top: 4px;
- font-size: 0.9em;
- box-shadow: none;
- }
- StBin {
- width: 16px;
- height: 16px;
- background-image: url("#{$asset_path}/checkbox/checkbox-unchecked.svg");
- }
- &:focus StBin { background-image: url("#{$asset_path}/checkbox/checkbox-unchecked-focused.svg"); }
- &:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked.svg"); }
- &:focus:checked StBin { background-image: url("#{$asset_path}/checkbox/checkbox-checked-focused.svg"); }
- }
- //
- // Switches
- //
- .toggle-switch {
- width: 50px;
- height: 20px;
- background-size: contain;
- background-image: url("#{$asset_path}/switch/switch-off.svg");
- &:checked { background-image: url("#{$asset_path}/switch/switch-on.svg"); }
- .popup-menu-item:active & {
- background-image: url("common-assets/switch/switch-off-selected.svg");
- &:checked { background-image: url("common-assets/switch/switch-on-selected.svg"); }
- }
- }
- //
- // Links
- //
- .cinnamon-link {
- color: $link_color;
- text-decoration: underline;
- &:hover { color: lighten($link_color,10%); }
- }
- //
- // Tooltip
- //
- #Tooltip {
- border-radius: 3px;
- padding: 5px 12px;
- background-color: $osd_bg_color;
- color: $osd_fg_color;
- font-size: 1em;
- font-weight: normal;
- text-align: center;
- }
- //
- // Popvers/Menus
- //
- .menu,
- .popup-menu,
- %menu {
- color: $fg_color;
- border: 1px solid $borders_color;
- border-radius: 6px;
- background-color: transparentize($bg_color, 0.01);
- &.top {
- border-radius: 0 0 6px 6px;
- }
- &.bottom {
- border-radius: 6px 6px 0 0;
- }
- &.left {
- border-radius: 0 6px 6px 0;
- }
- &.right {
- border-radius: 6px 0 0 6px;
- }
- &-arrow { icon-size: 16px; }
- .popup-sub-menu {
- box-shadow: none;
- background-color: $base_color;
- .popup-menu-item:ltr { padding-right: 0em; }
- .popup-menu-item:rtl { padding-left: 0em; }
- StScrollBar {
- padding: 4px;
- StBin#trough, StBin#vhandle { border-width: 0; }
- }
- }
- .popup-menu-content { padding: 1em 0em 1em 0em; }
- .popup-menu-item {
- padding: .4em 1.75em;
- spacing: 1em;
- // border: 1px solid transparent;
- border-left-width: 0;
- border-right-width: 0;
-
- &:active {
- color: $selected_fg_color;
- // border-color: transparentize($fg_color, 0.89);
- background-color: $selected_bg_color;
- }
- &:insensitive {
- color: transparentize($fg_color, 0.5);
- background: none;
- }
- }
- .popup-inactive-menu-item { //all icons and other graphical elements
- color: $fg_color;
- &:insensitive { color: $insensitive_fg_color; }
- }
- .popup-menu-item:active .popup-inactive-menu-item { color: $selected_fg_color; }
- &-icon { icon-size: 16px; }
- }
- .popup-menu-boxpointer {
- -arrow-border-radius: 3px;
- -arrow-background-color: rgba(0,0,0,0.0);
- -arrow-border-width: 1px;
- -arrow-border-color: rgba(0,0,0,0.0);
- -arrow-base: 0;
- -arrow-rise: 0;
- }
- .popup-combo-menu {
- @extend %menu;
- padding: 10px 1px;
- }
- .popup-image-menu-item {}
- .popup-combobox-item { spacing: 1em; }
- .popup-separator-menu-item {
- -gradient-height: 2px;
- -gradient-start: transparent;
- -gradient-end: transparent;
- -margin-horizontal: 1.5em;
- height: 1em;
- }
- .popup-alternating-menu-item:alternate {
- font-weight: normal;
- }
- .popup-device-menu-item { spacing: .5em; }
- .popup-subtitle-menu-item { font-weight: normal; }
- .nm-menu-item-icons { spacing: .5em; }
- //
- // Panel
- //
- #panel {
- height: 28px;
- width: 32px;
- font-weight: 700;
- background-color: $panel_bg;
- color: $fg_color;
- &:highlight {
- border-image: none;
- background-color: transparentize($error_color, 0.5);
- }
- &Left {
- spacing: 4px;
- &:dnd {
- background-gradient-direction: vertical;
- background-gradient-start: rgba(255,0,0,0.05);
- background-gradient-end: rgba(255,0,0,0.2);
- }
- &:ltr { padding-right: 4px; }
- &:rtl { padding-left: 4px; }
- &.vertical {
- padding: 0;
- &:ltr { padding-right: 0px; }
- &:rtl { padding-left: 0px; }
- }
- }
- &Right {
- &:dnd {
- background-gradient-direction: vertical;
- background-gradient-start: rgba(0,0,255,0.05);
- background-gradient-end: rgba(0,0,255,0.2);
- }
- &:ltr { padding-left: 4px; spacing: 0px; }
- &:rtl { padding-right: 4px; spacing: 0px; }
- &.vertical {
- padding: 0;
- &:ltr { padding-right: 0px; }
- &:rtl { padding-left: 0px; }
- }
- }
- &Center {
- spacing: 4px;
- &:dnd {
- background-gradient-direction: vertical;
- background-gradient-start: rgba(0,255,0,0.05);
- background-gradient-end: rgba(0,255,0,0.2);
- }
- }
- }
- .panel {
- $_panel_fg_color: $_shell_fg_color;
- &-top, &-bottom, &-left, &-right {
- color: $_panel_fg_color;
- font-size: 1em;
- padding: 0px;
- }
- &-dummy {
- background-color: transparentize($error_color, 0.5);
- &:entered { background-color: transparentize($error_color, 0.4); }
- }
- &-status-button {
- border-width: 0;
- -natural-hpadding: 3px;
- -minimum-hpadding: 3px;
- font-weight: bold;
- color: white;
- height: 22px;
- &:hover {}
- }
- &-button {
- -natural-hpadding: 6px;
- -minimum-hpadding: 2px;
- font-weight: bold;
- color: green;
- transition-duration: 100;
- &:hover {}
- }
- }
- .system-status-icon {
- icon-size: 16px;
- padding: 0 1px;
- }
- //
- // Overview
- //
- #overview { spacing: 12px; }
- .window-caption {
- background-color: $osd_bg_color;
- border: 1px solid $osd_bg_color;
- color: $osd_fg_color;
- spacing: 25px;
- border-radius: 2px;
- font-size: 9pt;
- padding: 5px 8px;
- -cinnamon-caption-spacing: 4px;
- &#selected {
- background-color: $selected_bg_color;
- color: $selected_fg_color;
- border: 1px solid $selected_bg_color;
- spacing: 25px;
- }
- }
- .expo-workspaces-name-entry,
- .expo-workspaces-name-entry#selected {
- height: 15px;
- border-radius: 2px;
- font-size: 9pt;
- padding: 5px 8px;
- -cinnamon-caption-spacing: 4px;
- @include entry(osd);
- &:focus {
- border: 1px solid $selected_bg_color;
- background-color: $selected_bg_color;
- color: $selected_fg_color;
- font-style: italic;
- transition-duration: 300;
- selection-background-color: $selected_fg_color;
- selected-color: $selected_bg_color;
- }
- }
- .expo-workspace-thumbnail-frame {
- border: 4px solid rgba(255,255,255,0.0);
- background-color: rgba(255,255,255,0.0);
- border-radius: 2px;
- &#active {
- border: 4px solid $selected_bg_color;
- background-color: black;
- border-radius: 2px;
- }
- }
- .expo-background {
- background-color: opacify($osd_bg_color, 1);
- }
- .workspace {
- //&-controls { visible-height: 32px; }
- &-thumbnails {
- spacing: 26px;
- &-background, &-background:rtl { padding: 8px; }
- }
- &-add-button {
- background-image: url("common-assets/misc/add-workspace.svg");
- height: 200px;
- width: 35px;
- transition-duration: 100;
- &:hover {
- background-image: url("common-assets/misc/add-workspace-hover.svg");
- transition-duration: 100;
- }
- &:active {
- background-image: url("common-assets/misc/add-workspace-active.svg");
- transition-duration: 100;
- }
- }
- &-overview-background-shade { background-color: rgba(0,0,0,0.5); }
- }
- .workspace-close-button,
- .window-close {
- background-image: url("common-assets/misc/close.svg");
- background-size: 26px;
- height: 26px;
- width: 26px;
- -cinnamon-close-overlap: 10px;
- &:hover {
- background-image: url("common-assets/misc/close-hover.svg");
- background-size: 26px;
- height: 26px;
- width: 26px;
- }
- &:active {
- background-image: url("common-assets/misc/close-active.svg");
- background-size: 26px;
- height: 26px;
- width: 26px;
- }
- }
- //.workspace-thumbnail-indicator {
- // outline: 2px solid red;
- // border: 1px solid green;
- //}
- //
- //.window-close:rtl {
- // -st-background-image-shadow: 2px 2px 6px rgba(0,0,0,0.5);
- //}
- .window-close-area {
- background-image: url("common-assets/misc/trash-icon.svg");
- height: 120px;
- width: 400px;
- }
- //
- // About Dialog (applet.js and desklet.js)
- //
- .about {
- &-content {
- width: 550px;
- height: 250px;
- spacing: 8px;
- padding-bottom: 10px;
- }
- &-title {
- font-size: 2em;
- font-weight: bold;
- }
- &-uuid {
- font-size: 10px;
- color: #888;
- }
- &-icon {
- padding-right: 20px;
- padding-bottom: 14px;
- }
- &-scrollBox {
- border: 1px solid $borders_color;
- border-radius: 2px;
- background-color: $base_color;
- padding: 4px;
- padding-right: 0;
- border-radius: 0;
- &-innerBox {
- padding: 1.2em;
- spacing: 1.2em;
- }
- }
- &-description {
- padding-top: 4px;
- padding-bottom: 16px;
- }
- &-version {
- padding-left: 7px;
- font-size: 10px;
- color: #888;
- }
- }
- //
- // Calendar
- //
- .calendar {
- padding: .4em 1.75em;
- spacing-rows: 0px;
- spacing-columns: 0px;
- }
- .calendar-month-label {
- color: $fg_color;
- font-weight: bold;
- padding: 8px 0;
- }
- .calendar-change-month-back,
- .calendar-change-month-forward {
- width: 16px;
- height: 16px;
- }
- //arrow back
- .calendar-change-month-back {
- background-image: url("common-assets/misc/calendar-arrow-left.svg");
- &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-left-hover.svg"); }
- &:active { background-image: url("common-assets/misc/calendar-arrow-left.svg"); }
- &:rtl {
- background-image: url("common-assets/misc/calendar-arrow-right.svg");
- &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-right-hover.svg"); }
- &:active { background-image: url("common-assets/misc/calendar-arrow-right.svg"); }
- }
- }
- //arrow forward
- .calendar-change-month-forward {
- background-image: url("common-assets/misc/calendar-arrow-right.svg");
- &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-right-hover.svg"); }
- &:active { background-image: url("common-assets/misc/calendar-arrow-right.svg"); }
- &:rtl {
- background-image: url("common-assets/misc/calendar-arrow-left.svg");
- &:focus, &:hover { background-image: url("common-assets/misc/calendar-arrow-left-hover.svg"); }
- &:active { background-image: url("common-assets/misc/calendar-arrow-left.svg"); }
- }
- }
- .datemenu-date-label {
- padding: .4em 1.75em;
- font-weight: bold;
- text-align: center;
- color: $fg_color;
- border-radius: 2px;
- }
- .calendar-day-base {
- font-size: 80%;
- text-align: center;
- width: 25px;
- height: 25px;
- padding: 0.1em;
- margin: 2px;
- border-radius: 12.5px;
- }
- .calendar-day-heading {
- color: transparentize($fg_color, 0.15);
- margin-top: 1em;
- font-size: 70%;
- }
- .calendar-day {
- border-width: 0;
- color: transparentize($fg_color, 0.2);
- }
- .calendar-day-top {
- border-top-width: 0;
- }
- .calendar-day-left {
- border-left-width: 0;
- }
- .calendar-nonwork-day {
- color: $fg_color;
- background-color: transparent;
- font-weight: bold;
- }
- .calendar-today,
- .calendar-today:active,
- .calendar-today:focus,
- .calendar-today:hover {
- font-weight: bold;
- color: $selected_fg_color;
- background-color: $selected_bg_color;
- border-width: 0;
- }
- .calendar-other-month-day {
- color: transparentize($fg_color, 0.7);
- opacity: 1;
- }
- .calendar-week-number {
- color: transparentize($fg_color, 0.3);
- font-size: 80%;
- }
- //
- // Notifications
- //
- #notification {
- border-radius: 3px;
- border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
- padding: 13px;
- spacing-rows: 10px;
- spacing-columns: 10px;
- margin-from-right-edge-of-screen: 20px;
- width: 34em;
- color: $osd_fg_color;
- .menu &,
- .popup-menu & {
- &, &.multi-line-notification { color: $fg_color; }
- border-image: url("#{$asset_path}/misc/message.svg") 9 9 9 9;
- .notification-button, .notification-icon-button {
- @extend %button;
- padding: 5px;
- }
- StEntry { @extend %entry; }
- }
- &.multi-line-notification {
- padding-bottom: 13px;
- color: $osd_fg_color;
- }
- &-scrollview {
- max-height: 10em;
- > .top-shadow, > .bottom-shadow { height: 1em; }
- &:ltr > StScrollBar { padding-left: 6px; }
- &:rtl > StScrollBar { padding-right: 6px; }
- }
- &-body { spacing: 5px; }
- &-actions { spacing: 10px; }
- }
- .notification {
- &-with-image {
- min-height: 159px;
- color: $osd_fg_color;
- }
- &-button, &-icon-button {
- @extend %osd_button;
- padding: 5px;
- }
- &-icon-button > StIcon { icon-size: 36px; }
- StEntry { @extend %osd_entry; }
- }
- //
- // Alt Tab
- ///
- #altTabPopup {
- padding: 8px;
- spacing: 16px;
- }
- .switcher-list {
- color: $osd_fg_color;
- background: none;
- border: none;
- border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
- border-radius: 3px;
- padding: 20px;
- > StBoxLayout {
- padding: 4px;
- }
- &-item-container { spacing: 8px; }
- .item-box {
- padding: 8px;
- border-radius: 2px;
- &:outlined {
- padding: 8px;
- border: 1px solid $selected_bg_color;
- }
- &:selected {
- color: $selected_fg_color;
- background-color: $selected_bg_color;
- border: 0px solid $selected_bg_color;
- }
- }
- .thumbnail { width: 256px; }
- .thumbnail-box {
- padding: 2px;
- spacing: 4px;
- }
- .separator {
- width: 1px;
- background: rgba(255,255,255,0.2);
- }
- }
- .switcher-arrow {
- border-color: rgba(0,0,0,0);
- color: $osd_fg_color;
- &:highlighted {
- border-color: rgba(0,0,0,0);
- color: $_shell_fg_color;
- }
- }
- //.switcher-preview-backdrop { background-color: rgba(25,25,25,0.95); }
- .thumbnail-scroll-gradient-left {
- background-color: rgba(0, 0, 0, 0);
- border-radius: 24px;
- border-radius-topright: 0px;
- border-radius-bottomright: 0px;
- width: 60px;
- }
- .thumbnail-scroll-gradient-right {
- background-color: rgba(0, 0, 0, 0);
- border-radius: 24px;
- border-radius-topleft: 0px;
- border-radius-bottomleft: 0px;
- width: 60px;
- }
- //
- //Activities Ripples
- //
- .ripple-box {
- width: 104px;
- height: 104px;
- background-image: url("common-assets/misc/corner-ripple.svg");
- background-size: contain;
- }
- //
- // Modal dialogs
- //
- .lightbox { background-color: rgba(0, 0, 0, 0.4); }
- .flashspot { background-color: white; }
- .modal-dialog {
- color: $fg_color;
- background-color: transparentize($bg_color, 1);
- border: none;
- border-image: url("#{$asset_path}/misc/modal.svg") 9 9 9 67;
- padding: 0 5px 6px 5px;
- > StBoxLayout:first-child {
- padding: 20px 10px 10px 10px;
- }
- &-button-box {
- spacing: 0;
- margin: 0px;
- padding: 14px 10px;
- background: none;
- border: none;
- border-image: url("#{$asset_path}/misc/button-box.svg") 9 9 9 9;
- .modal-dialog-button {
- padding-top: 0;
- padding-bottom: 0;
- height: 30px;
- @extend %osd_button;
- }
- }
- }
- //
- // Run dialog
- //
- .run-dialog {
- padding: 0px 15px 10px 15px;
- border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
- > * { padding: 0; }
- &-label {
- font-size: 0;
- font-weight: bold;
- color: $osd_fg_color;
- padding-bottom: 0;
- }
- &-error-label { color: $error_color; }
- &-error-box {
- padding-top: 15px;
- spacing: 5px;
- }
- &-completion-box {
- padding-left: 15px;
- font-size: 10px;
- }
- &-entry {
- width: 21em;
- padding: 7px;
- border-radius: 3px;
- caret-color: $osd_fg_color;
- selected-color: $selected_fg_color;
- selection-background-color: $selected_bg_color;
- @include entry(osd);
- &:focus { @include entry(osd-focus); }
- }
- .modal-dialog-button-box {
- border: none;
- box-shadow: none;
- background: none;
- background-gradient-direction: none;
- }
- }
- /* CinnamonMountOperation Dialogs */
- .cinnamon-mount-operation-icon {
- icon-size: 48px;
- }
- .mount-password-reask {
- color: $warning_color;
- }
- .show-processes-dialog,
- .mount-question-dialog {
- spacing: 24px;
- &-subject {
- padding-top: 10px;
- padding-left: 17px;
- padding-bottom: 6px;
- &:rtl {
- padding-left: 0px;
- padding-right: 17px;
- }
- }
- &-description {
- padding-left: 17px;
- width: 28em;
- &:rtl { padding-right: 17px; }
- }
- }
- .show-processes-dialog-app-list {
- max-height: 200px;
- padding-top: 24px;
- padding-left: 49px;
- padding-right: 32px;
- &:rtl {
- padding-right: 49px;
- padding-left: 32px;
- }
- &-item {
- color: #ccc;
- &:hover { color: white }
- &:ltr { padding-right: 1em; }
- &:rtl { padding-left: 1em; }
- &-icon:ltr { padding-right: 17px; }
- &-icon:rtl { padding-left: 17px; }
- &-name { font-size: 1.1em; }
- }
- }
- //
- // Magnifier
- //
- .magnifier-zoom-region {
- border: 2px solid rgba(128, 0, 0, 1);
- .full-screen { border-width: 0px; }
- }
- //
- // On-Screen Keyboard
- //
- #keyboard {
- background-color: $osd_bg_color;
- border-width: 0;
- border-top-width: 1px;
- border-color: transparentize(black, 0.6);
- }
- .keyboard-layout {
- spacing: 10px;
- padding: 10px;
- }
- .keyboard-row {
- spacing: 15px;
- }
- .keyboard-key {
- min-height: 2em;
- min-width: 2em;
- font-size: 14pt;
- font-weight: bold;
- border-radius: 3px;
- box-shadow: none;
- @include button(osd);
- &:hover { @include button(osd-hover); }
- &:active, &:checked { @include button(osd-active); }
- &:grayed { @include button(osd-insensitive); }
- }
- .keyboard-subkeys { //long press on a key popup
- color: $osd_fg_color;
- padding: 5px;
- -arrow-border-radius: 2px;
- -arrow-background-color: $osd_bg_color;
- -arrow-border-width: 1px;
- -arrow-border-color: transparentize(black, 0.6);;
- -arrow-base: 20px;
- -arrow-rise: 10px;
- -boxpointer-gap: 5px;
- }
- //
- // Cinnamon Specific Section
- //
- //
- // Menu (menu.js)
- //
- .menu {
- &-favorites-box {
- margin: auto;
- padding: 10px;
- transition-duration: 300;
- background-color: $bg_color;
- border: 1px solid $borders_color;
- }
- &-favorites-button {
- padding: 10px;
- border: 1px solid rgba(0,0,0,0);
- &:hover { @extend %button:hover; }
- }
- &-places {
- &-box {
- margin: auto;
- padding: 10px;
- border: 0px solid red;
- }
- &-button { padding: 10px; }
- }
- &-categories-box { padding: 10px 30px 10px 30px; }
- &-applications-inner-box,
- &-applications-outer-box { padding: 10px 10px 0 10px; }
- &-application-button {
- padding: 7px;
- border: 1px solid rgba(0,0,0,0);
- // This style is used in menu application buttons for applications which were newly installed
- &:highlighted { font-weight: bold; }
- &-selected {
- padding: 7px;
- @extend %button:hover;
- &:highlighted { font-weight: bold; }
- }
- &-label:ltr { padding-left: 5px; }
- &-label:rtl { padding-right: 5px; }
- }
- &-category-button {
- padding: 7px;
- border: 1px solid rgba(0,0,0,0);
- &-selected {
- padding: 7px;
- @extend %button:hover;
- }
- &-hover {
- background-color: red;
- border-radius: 2px;
- }
- &-greyed {
- padding: 7px;
- color: $insensitive_fg_color;
- border: 1px solid rgba(0,0,0,0);
- }
- &-label:ltr { padding-left: 5px; }
- &-label:rtl { padding-right: 5px; }
- }
- // Name and description of the currently hovered item in the menu
- // This appears on the bottom right hand corner of the menu
- &-selected-app-box {
- padding-right: 30px;
- padding-left: 28px;
- text-align: right;
- height: 30px;
- &:rtl {
- padding-top: 10px;
- height: 30px;
- }
- }
- &-selected-app-title { font-weight: bold; }
- &-selected-app-description { max-width: 150px; }
- &-search-box:ltr { padding-left: 30px; }
- &-search-box-rtl { padding-right: 30px; }
- }
- #menu-search-entry {
- width: 250px;
- min-height: 15px;
- font-weight: normal;
- caret-color: $fg_color;
- @extend %entry;
- }
- .menu-search-entry-icon {
- icon-size: 1em;
- color: $fg_color;
- }
- /* Context menu (at the moment only for favorites) */
- .menu-context-menu {
- }
- //
- // OSD
- //
- .info-osd {
- text-align: center;
- font-weight: bold;
- spacing: 1em;
- padding: 16px;
- color: $_shell_fg_color;
- border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
- }
- .osd-window {
- text-align: center;
- font-weight: bold;
- spacing: 1em;
- padding: 20px;
- margin: 32px;
- min-width: 64px;
- min-height: 64px;
- color: $_shell_fg_color;
- background: none;
- border: none;
- border-radius: 5px;
- border-image: url("common-assets/misc/osd.svg") 9 9 9 9;
- .osd-monitor-label { font-size: 3em; }
- .level {
- padding: 0;
- height: 4px;
- background-color: transparentize(black, 0.5);
- border-radius: 2px;
- color: $selected_bg_color;
- }
- .level-bar {
- background-color: $selected_bg_color;
- }
- }
- //
- // Window list (windowList.js)
- //
- .window-list {
- &-box {
- spacing: 6px;
- padding-left: 10px;
- padding-top: 1px;
- &.vertical {
- spacing: 2px;
- padding-left: 0px;
- padding-right: 0px;
- padding-top: 10px;
- padding-bottom: 10px;
- }
- &:highlight {
- background-color: transparentize($error_color, 0.5);
- }
- }
- &-item-label {
- font-weight: bold;
- width: 15em;
- min-width: 5px;
- }
- &-item-box {
- font-weight: bold;
- background-image: none;
- padding-top: 0;
- padding-left: 8px;
- padding-right: 8px;
- transition-duration: 100;
- color: transparentize($selected_fg_color, 0.4);
- &.top,
- &.bottom {
- border-bottom-width: 2px;
- & StLabel { padding-left: 2px; }
- }
- &.right {
- padding-left: 0px;
- padding-right: 0px;
- border-right-width: 2px;
- & StBin { padding-right: 0; }
- }
- &.left {
- padding-left: 0px;
- padding-right: 0px;
- border-left-width: 2px;
- & StBin { padding-left: 1px; }
- }
- &:hover,
- &:groupFocus {
- color: $selected_fg_color;
- background-color: transparentize($selected_fg_color, 0.9);
- }
- &:active,
- &:checked,
- &:focus,
- &:running {
- color: $selected_fg_color;
- border-color: $purple;
- }
- & .progress {
- background-color: transparentize($selected_bg_color, 0.2);
- }
- }
- &-item-demands-attention {
- background-gradient-direction: vertical;
- background-gradient-start: $destructive_color;
- background-gradient-end: $destructive_color;
- }
- &-preview {
- spacing: 6px;
- color: $fg_color;
- border: 1px solid $borders_color;
- background-color: $bg_color;
- border-radius: 3px;
- padding: 6px 12px 12px 12px;
- font-size: 1em;
- }
- }
- //
- // Grouped window list
- //
- .grouped-window-list {
- &-item-label {
- font-weight: bold;
- width: 15em;
- min-width: 5px;
- }
- &-item-box {
- text-align: left;
- font-weight: bold;
- background-image: none;
- padding-top: 0;
- padding-left: 8px;
- padding-right: 8px;
- transition-duration: 100;
- color: transparentize($selected_fg_color, 0.4);
- &.top,
- &.bottom {
- border-bottom-width: 2px;
- & StLabel { padding-left: 2px; }
- }
- &.right {
- padding-left: 0px;
- padding-right: 0px;
- border-right-width: 2px;
- & StBin { padding-right: 0; }
- }
- &.left {
- padding-left: 0px;
- padding-right: 0px;
- border-left-width: 2px;
- & StBin { padding-left: 1px; }
- }
- &:active,
- &:checked {
- color: $selected_fg_color;
- border-color: lighten($panel_bg, 30%);
- }
- &:hover,
- &:active:hover,
- &:focus,
- &:active:focus,
- &:focus:hover,
- &:active:focus:hover {
- color: $selected_fg_color;
- border-color: $purple;
- }
- & .progress {
- background-color: transparentize($selected_bg_color, 0.2);
- }
- }
- &-item-demands-attention {
- background-gradient-direction: vertical;
- background-gradient-start: $destructive_color;
- background-gradient-end: $destructive_color;
- }
- &-thumbnail-label {
- padding-left: 4px;
- }
- &-number-label {
- z-index: 99;
- color: $fg_color;
- }
- &-badge {
- border-radius: 256px;
- background-color: $panel_bg;
- }
- &-button-label {
- padding-left: 4px;
- }
- &-thumbnail-alert {
- background: rgba(255,52,52,0.3);
- }
- &-thumbnail-menu {
- color: $fg_color;
- border: 1px solid $borders_color;
- background-color: $bg_color;
- border-radius: 3px;
- padding: 0px;
- > StBoxLayout {
- padding: 4px;
- }
- .item-box {
- padding: 10px;
- border-radius: 2px;
- spacing: 4px;
- &:outlined {
- padding: 8px;
- border: 1px solid $selected_bg_color;
- }
- &:selected {
- border: 1px solid $selected_bg_color;
- }
- }
- .thumbnail { width: 256px; }
- .separator {
- width: 1px;
- background: rgba(255,255,255,0.2);
- }
- }
- }
- ///
- // Sound Applet (status/volume.js)
- //
- .sound-button {
- width: 22px;
- height: 13px;
- padding: 8px;
- @extend %button;
- &-container {
- padding-right: 3px;
- padding-left: 3px;
- }
- StIcon { icon-size: 1.4em; }
- }
- .sound-track {
- &-infos { padding: 5px; }
- &-info {
- padding-top: 2px;
- padding-bottom: 2px;
- StIcon { icon-size: 16px; }
- StLabel {
- padding-left: 5px;
- padding-right: 5px;
- }
- }
- &-box {
- padding-left: 15px;
- padding-right: 15px;
- max-width: 220px;
- }
- }
- .sound-seek-box {
- padding-left: 15px;
- StLabel { padding-top: 2px; }
- StIcon { icon-size: 16px; }
- }
- .sound-seek-slider { width: 140px; }
- .sound-volume-menu-item {
- padding: .4em 1.75em;
- StIcon {
- icon-size: 1.14em;
- padding-left: 8px;
- padding-right: 8px;
- }
- }
- .sound-playback-control { padding: 5px 10px 10px 10px; }
- // 2.8
- .sound-player {
- padding: 0 4px;
- > StBoxLayout:first-child {
- padding: 5px 10px 12px 10px;
- spacing: 0.5em;
- StButton:small {
- width: 16px;
- height: 8px;
- padding: 1px;
- StIcon { icon-size: 12px; }
- }
- }
- &-generic-coverart {
- background: rgba(0,0,0,0.2);
- }
- &-overlay {
- width: 290px;
- height: 70px;
- padding: 15px;
- spacing: 0.5em;
- background: transparentize(darken($osd_bg_color, 5%), 0.1);
- border: 0px solid darken($osd_bg_color, 10%);
- border-bottom: 1px ;
- color: $osd_fg_color;
- StButton {
- width: 22px;
- height: 13px;
- padding: 5px;
- color: $osd_fg_color;
- border-radius: 2px;
- border: 1px solid transparentize($osd_bg_color,1);
- StIcon { icon-size: 16px; }
- &:hover{ @include button(osd-hover); }
- &:active { @include button(active); }
- }
- StBoxLayout {
- padding-top: 2px;
- }
- }
- .slider {
- height: 0.5em;
- padding: 0;
- border: none;
- -slider-height: 0.5em;
- -slider-background-color: if($variant == 'light', $button_border, darken($bg_color, 5%));
- -slider-border-color: rgba(0,0,0,0);
- -slider-active-background-color: $selected_bg_color;
- -slider-active-border-color: rgba(0,0,0,0);
- -slider-border-width: 0px;
- -slider-handle-radius: 0px;
- }
- }
- //
- // Workspace Switcher applet (workspaceSwitcher.js)
- //
- #workspaceSwitcher {
- spacing: 0px;
- padding: 3px;
- }
- /* Controls the styling when using the "Simple buttons" option */
- .workspace-switcher {
- padding-left: 3px;
- padding-right: 3px;
- }
- .workspace-button {
- width: 20px;
- height: 10px;
- color: $fg_color;
- padding: 3px;
- padding-top: 4px;
- transition-duration: 300;
- &:outlined, &:outlined:hover { color: $purple; }
- &:hover { color: transparentize($purple, 0.5) }
- }
- /* Controls the style when using the "Visual representation" option */
- .workspace-graph {
- padding: 3px;
- spacing: 3px;
- }
- .workspace-graph .workspace {
- border: 1px solid transparentize(black, 0.6);
- background-gradient-direction: none;
- background-color: transparentize(black, 0.8);
- }
- .workspace-graph .workspace:active {
- border: 1px solid $selected_bg_color;
- background-gradient-direction: none;
- }
- .workspace-graph .workspace .windows {
- -active-window-background: lighten($panel_bg, 15%);
- -active-window-border: rgba(0, 0, 0, 0.8);
- -inactive-window-background: lighten($panel_bg, 15%);
- -inactive-window-border: rgba(0, 0, 0, 0.8);
- }
- .workspace-graph .workspace:active .windows {
- -active-window-background: lighten($panel_bg, 20%);
- -active-window-border: rgba(0, 0, 0, 0.8);
- -inactive-window-background: lighten($panel_bg, 5%);
- -inactive-window-border: rgba(0, 0, 0, 0.8);
- }
- //
- // Panel Launchers Applet (panelLaunchers.js)
- //
- #panel-launchers-box {
- padding-left: 7px;
- &.vertical {
- padding: 2px 0;
- }
- }
- .panel-launcher,
- .launcher {
- margin: 1px;
- padding: 1px;
- transition-duration: 200;
- &:hover {
- background-gradient-direction: none;
- border: 0px solid $selected_bg_color;
- .panel-bottom & { border-bottom-width: 1px; }
- .panel-top & { border-top-width: 1px; }
- .panel-left & { border-left-width: 1px; padding-left: 0; }
- .panel-right & { border-right-width: 1px; padding-right: 0; }
- }
- }
- //
- // Overview corner
- //
- #overview-corner {
- background-image: url("common-assets/misc/overview.png");
- &:hover { background-image: url("common-assets/misc/overview-hover.png"); }
- }
- //
- // Applets (applet.js)
- //
- .applet {
- &-separator { padding: 1px 4px; }
- &-separator-line {
- width: 1px;
- background: rgba(255,255,255, 0.12);
- }
- &-box {
- padding-left: 3px;
- padding-right: 3px;
- color: $_shell_fg_color;
- text-shadow: none;
- transition-duration: 100;
- &.vertical {
- padding: 3px 0;
- }
- &:hover {
- color: $selected_fg_color;
- background-color: $selected_bg_color;
- }
- &:highlight {
- background-image: none;
- border-image: none;
- background-color: transparentize($error_color, 0.5);
- }
- }
- &-label {
- font-weight: bold;
- color: $_shell_fg_color;
- &:hover, .applet-box:hover > & {
- color: $selected_fg_color;
- text-shadow: none;
- }
- }
- &-icon {
- color: $_shell_fg_color;
- icon-size: 22px;
- &:hover, .applet-box:hover > & {
- color: $selected_fg_color;
- text-shadow: none;
- }
- }
- }
- //
- // User Applet
- //
- .user-icon {
- width: 32px;
- height: 32px;
- background-color: transparent;
- border: none;
- border-radius: 0;
- }
- .user-label {
- color: $fg_color;
- font-size: 1em;
- font-weight: bold;
- margin: 0px;
- }
- //
- // Desklets (desklet.js)
- //
- .desklet {
- color: $osd_fg_color;
- &:highlight {
- background-color: transparentize($error_color, 0.5);
- }
- &-with-borders {
- border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
- color: $osd_fg_color;
- padding: 12px;
- padding-bottom: 16px;
- &:highlight {
- background-color: transparentize($error_color, 0.5);
- }
- }
- &-with-borders-and-header {
- border-image: url("common-assets/misc/desklet.svg") 9 9 9 9;
- color: $osd_fg_color;
- border-radius: 0;
- border-radius-topleft: 0;
- border-radius-topright: 0;
- padding: 12px;
- padding-bottom: 17px;
- &:highlight {
- background-color: transparentize($error_color, 0.5);
- }
- }
- &-header {
- border-image: url("common-assets/misc/desklet-header.svg") 9 9 9 9;
- color: $osd_fg_color;
- font-size: 1em;
- padding: 12px;
- padding-bottom: 6px;
- }
- &-drag-placeholder {
- border: 2px solid $selected_bg_color;
- background-color: transparentize($selected_bg_color, 0.7);
- }
- }
- .photoframe-box {
- border-image: url("common-assets/misc/bg.svg") 9 9 9 9;
- color: $osd_fg_color;
- padding: 12px;
- padding-bottom: 16px;
- }
- //
- // Workspace OSD
- //
- /*FIXME*/
- .workspace-osd {
- /*color: red;*/
- text-shadow: black 5px 5px 5px;
- font-weight: bold;
- font-size: 48pt;
- }
- //
- // Notification Applet
- //
- .notification-applet-padding { padding: .5em 1em; }
- .notification-applet-container { max-height: 100px; }
- //
- // Tile Preview
- //
- .tile-preview, .tile-preview.snap,
- .tile-hud, .tile-hud.snap {
- background-color: transparentize($selected_bg_color, 0.7);
- border: 1px solid $selected_bg_color;
- }
- //
- // Xkcd Desklet
- //
- .xkcd-box {
- padding: 6px;
- border: 0px;
- background-color: rgba(0,0,0,0);
- border-radius: 0px;
- }
|