summaryrefslogtreecommitdiff
path: root/src/resources/themes/_Adwaita-base.scss
blob: aed7ae20400f24c8cc65ad5825390ffd1105202a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
// Include base styling.
@import 'shared-base';

.incognito-mode {
  $window_color: $incognito_color;
  @import 'Adwaita-colored-window';
}

.automation-mode {
  $window_color: $automation_color;
  @import 'Adwaita-colored-window';
}

@import 'drawing';

@mixin close_button($fg:$fg_color) {
  background: none;
  border: none;
  box-shadow: none;
  -gtk-icon-shadow: none;
  text-shadow: none;
  min-width: 24px;
  min-height: 24px;
  border-radius: 99px;
  color: inherit;
  padding: 0;
  margin: 2px;

  &:hover {
    background: gtkalpha($fg, .15);

    &:active {
      background: gtkalpha(black, .2);
    }
  }
}

@if not $high_contrast {
  .url_entry:not(:hover):not(:focus) {
    background-color: transparentize($base_color, 0.25);
  }
}

.bookmark-tag-widget {
  border-radius: 5px;

  button {
    @include close_button();
  }
}

.bookmark-tag-widget-selected button {
  @include close_button($selected_fg_color);
}

@keyframes needs_attention_keyframes {
    0% {background-image: linear-gradient(to bottom, #fafafa, #ededed 40%,  #e0e0e0); border-color: themecolor(borders); }
    /* can't do animation-direction, so holding the color on two keyframes */
    30% {background-image: linear-gradient(to bottom, themecolor(theme_base_color), themecolor(theme_base_color), themecolor(theme_base_color)); border-color: themecolor(theme_fg_color); }
    90% {background-image: linear-gradient(to bottom, themecolor(theme_base_color), themecolor(theme_base_color), themecolor(theme_base_color)); border-color: themecolor(theme_fg_color); }
    100% {background-image: linear-gradient(to bottom, #fafafa, #ededed 40%,  #e0e0e0); border-color: themecolor(borders); }
}

.epiphany-downloads-button-needs-attention {
  animation: needs_attention_keyframes 2s ease-in-out;
}

.epiphany-downloads-button-needs-attention-multiple {
  animation: needs_attention_keyframes 3s ease-in-out;
  animation-iteration-count: 3;
}

// Pinned tabs
.main-notebook {
  tab {
    min-width: 16px;
  }

  header {
    &.top,
    &.bottom {
      tab {
        border-style: none solid;
      }
    }

    &.left,
    &.right {
      tab {
        border-style: solid none;
      }
    }
  }
}

.tab-attention {
  $_dot_color: if($variant=='light', $selected_bg_color,
                                   lighten($selected_bg_color,15%));
  background-image: -gtk-gradient(radial,
                                  center center, 0,
                                  center center, 0.5,
                                  to($_dot_color),
                                  to(transparent));
}

#title-box-container {
  color: gtkalpha(themecolor(theme_fg_color), 0.2);

  > clamp {
    color: themecolor(theme_fg_color);

    &:backdrop {
      color: themecolor(theme_unfocused_fg_color);
    }
  }
}

$menu_selected_color: if($variant == 'light', darken($bg_color, 6%), darken($bg_color, 8%));

@if $high_contrast {
  $menu_selected_color: darken($bg_color,10%);
}

.pages-list {
  margin: 5px;

  row {
    min-height: 30px;
    padding: 3px;
    border-radius: 5px;
    -gtk-outline-radius: 5px;
    border: none;
    color: $fg_color;
    transition: none;
    box-shadow: none;

    &:not(:last-child) {
      margin-bottom: 2px;
    }

    &:selected {
      background: $menu_selected_color;
    }

    &:hover {
      background: darken($menu_selected_color,5%);
    }

    .close-button {
      @include close_button();

      #pages-view & {
        min-width: 36px;
        min-height: 36px;
      }
    }
  }
}