Skip to content

Commit

Permalink
Remove styles covered by Granite (#1277)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jan 15, 2024
1 parent fbe2b24 commit ece44ba
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 180 deletions.
30 changes: 0 additions & 30 deletions src/gtk-4.0/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
.h1,
.title-1 {
font-size: 24pt;
font-weight: 700;
letter-spacing: -0.04em;
}

.h2,
.title-2 {
font-weight: 300;
font-size: 18pt;
letter-spacing: -0.05em;
}

.h3,
.title-3 {
font-size: 11pt;
}

label.h4,
.h4 label,
.heading,
.title-4,
.title-4 label {
font-weight: 700;
opacity: 0.8;
padding-bottom: 0.5em;
padding-top: 0.5em;
}

// For dialog primary text, but not titles in the headerbar
.dialog .dialog-vbox .title,
.primary {
Expand Down
37 changes: 0 additions & 37 deletions src/gtk-4.0/widgets/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,43 +126,6 @@ button {
}
}

// Stopgap since we can't do angled buttons in GtkCSS, and generating all
// the necessary SVGs for light/dark and accent color combinations is
// untenable. Ideally we'd deprecate this in favor of something like a
// Granite.BackButton with custom drawing; until then, stick an icon in it.
&.back-button {
background-repeat: no-repeat no-repeat;
background-size: 16px, cover;

&:dir(ltr) {
background-image:
-gtk-icontheme('go-previous-symbolic'),
linear-gradient(
to bottom,
#{'alpha(@highlight_color, 0.2)'},
rgba(white, 0)
);
padding-left: calc(#{rem(9px)} + 16px);
background-position:
#{rem(6px)} 50%,
center, center;
}

&:dir(rtl) {
background-image:
-gtk-icontheme('go-next-symbolic'),
linear-gradient(
to bottom,
#{'alpha(@highlight_color, 0.2)'},
rgba(white, 0)
);
padding-right: calc(#{rem(9px)} + 16px);
background-position:
calc(100% - #{rem(6px)}) 50%,
center, center;
}
}

&:disabled {
color: $insensitive-fg-color;
}
Expand Down
17 changes: 0 additions & 17 deletions src/gtk-4.0/widgets/_headerlabels.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/gtk-4.0/widgets/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ selection {
@import '_emojipicker.scss';
@import '_entries.scss';
@import '_expanders.scss';
@import '_headerlabels.scss';
@import '_headerbars.scss';
@import '_images.scss';
@import '_infobars.scss';
Expand All @@ -73,7 +72,6 @@ selection {
@import '_notifications.scss';
@import '_osds.scss';
@import '_panes.scss';
@import '_placeholders.scss';
@import '_popovers.scss';
@import '_progressbars.scss';
@import '_scales.scss';
Expand Down
18 changes: 0 additions & 18 deletions src/gtk-4.0/widgets/_osds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,3 @@
}
}
}

overlaybar .osd {
border-radius: rem(3px);
padding: rem(6px) rem(12px);

spinner {
text-shadow: 0 rem(1px) rem(2px) rgba(black, 0.6);
-gtk-icon-shadow: 0 rem(1px) rem(2px) rgba(black, 0.6);
}

revealer:dir(ltr) > spinner {
margin-left: rem(6px);
}

revealer:dir(rtl) > spinner {
margin-right: rem(6px);
}
}
71 changes: 0 additions & 71 deletions src/gtk-4.0/widgets/_placeholders.scss

This file was deleted.

5 changes: 0 additions & 5 deletions src/gtk-4.0/widgets/_toasts.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
toast .osd > label {
margin: 0 rem(12px);
text-shadow: 0 1px 2px rgba($fg-color, 0.6);
}

// GTK4 Widget Factory
.app-notification {
@extend .osd;
Expand Down

0 comments on commit ece44ba

Please sign in to comment.