_extends.scss
ASCII text
1@use "../../theme"; 2@use "../../theme-color"; 3@use "../../st-theme"; 4@use "../../gnome-shell/sass/drawing"; 5 6%button-shared { 7@include drawing.button(normal); 8@include drawing.type(button); 9 10min-height: theme.$medium-size; 11padding: 0 16px; 12border-radius: theme.$corner-radius; 13&:focus { @include drawing.button(focus); } 14&:hover, &:checked { @include drawing.button(hover); } 15&:active { @include drawing.button(active);} 16&:insensitive { @include drawing.button(insensitive);} 17} 18%icon-button-shared { 19@include drawing.button(normal); 20 21min-height: theme.$medium-size; 22min-width: theme.$medium-size; 23padding: 6px; 24border-radius: theme.$corner-radius; 25&:focus { @include drawing.button(focus); } 26&:hover, &:checked { @include drawing.button(hover); } 27&:active { @include drawing.button(active);} 28&:insensitive { @include drawing.button(insensitive);} 29} 30%slider-shared { 31height: 20px; 32color: theme-color.$primary; 33-slider-height: 2px; 34-slider-background-color: theme-color.stroke(theme-color.$on-surface); //background of the trough 35-slider-border-color: transparent; //trough border color 36-slider-active-background-color: theme-color.$primary; //active trough fill 37-slider-active-border-color: transparent; //active trough border 38-slider-border-width: 0; 39-slider-handle-radius: 6px; 40} 41%separator-shared { 42-gradient-height: 1px; 43-gradient-start: theme-color.divider(theme-color.$on-surface); 44-gradient-end: theme-color.divider(theme-color.$on-surface); 45-margin-horizontal: 4px; 46height: 1.5em; 47} 48%dialog-entry-shared { 49@include drawing.entry(normal); 50 51width: 250px; 52min-height: theme.$medium-size; 53padding: 0 8px; 54border-radius: theme.$corner-radius theme.$corner-radius 0 0; 55color: theme-color.$on-surface; 56caret-color: theme-color.$on-surface; 57selection-background-color: theme-color.$selected-overlay; 58selected-color: theme-color.$on-surface; 59&:focus { 60@include drawing.entry(focus); 61 62padding: 0 8px; 63border-width: 0; 64color: theme-color.$on-surface; 65} 66} 67%desklet-shared { 68color: theme-color.$on-surface; 69border: none; 70padding: 12px; 71box-shadow: theme.$shadow-z8; 72} 73%calendar-shared { 74width: 16px; 75height: 16px; 76border-radius: 999px; 77transition-duration: st-theme.$duration; 78&:active { background-color: theme-color.stroke(theme-color.$on-surface);} 79} 80%menu-shared { 81background-color: theme-color.$surface-z8; 82border-radius: theme.$corner-radius; 83color: theme-color.$on-surface; 84box-shadow: theme.$shadow-z4; 85} 86%menu-button-label-shared { 87&:ltr { 88padding-left: 4px; 89} 90&:rtl { 91padding-right: 4px; 92} 93} 94%dialogs-subject-shared { 95font-weight: bold; 96color: theme-color.$on-surface; 97padding-top: 10px; 98padding-left: 17px; 99padding-bottom: 6px; 100} 101%dialogs-subject-rtl-shared { 102padding-left: 0; 103padding-right: 17px; 104} 105%dialogs-description-shared { 106color: theme-color.$on-surface; 107padding-left: 17px; 108width: 28em; 109} 110%check-box-shared { 111width: 24px; 112height: 24px; 113padding: (theme.$medium-size - 24px) / 2; 114border-radius: 100px; 115background-image: url(assets/checkbox-off.svg); 116} 117%radiobutton-shared { 118width: 20px; 119height: 20px; 120padding: (theme.$medium-size - 20px) / 2; 121border-radius: 100px; 122background-image: url(assets/radiobutton-off.svg); 123} 124%tile-shared { 125background-color: theme-color.$scrim-alt; 126border: 2px solid theme-color.divider(theme-color.$on-surface); 127} 128%tile-shared-snap { 129background-color: theme-color.$scrim-alt; 130border: 2px solid theme-color.$primary; 131} 132%osd-panel-shared { 133color: theme-color.$on-surface; 134background-color: theme-color.$surface-z8; 135border: none; 136border-radius: theme.$corner-radius; 137padding: 12px; 138box-shadow: theme.$shadow-z8; 139} 140%osd-info-workspace-shared { 141@include drawing.type(headline6); 142@extend %osd-panel-shared; 143 144text-align: center; 145padding: 8px 10px; 146} 147