Adwaita.scss 5.21 KB
Newer Older
1 2 3 4 5 6 7
@import 'definitions';

// Include base styling.
@import url("resource:///org/gnome/Epiphany/themes/shared.css");


.incognito-mode {
8
  headerbar {
9
    @include headerbar_fill($incognito_color, $incognito_edge_color, -gtk-icontheme($incognito_icon) 160px 0 / 64px 64px no-repeat);
10 11 12 13 14 15 16 17 18 19 20 21 22

    border-color: _border_color($incognito_color);

    color: transparentize($fg_color, 0.8); // this is the color of the overlayed icon

    > * {
      color: $fg_color;

      &:backdrop { color: $backdrop_fg_color }
    }

    &:backdrop {
      background-image: -gtk-icontheme($incognito_icon), image($incognito_color);
23
      box-shadow: inset 0 1px $incognito_edge_color;
24 25 26 27 28 29 30 31 32 33 34 35
      color: transparentize($backdrop_fg_color, 0.9); // color of the overlayed icon in backdrop
    }

    button { // changing the headerbar background color requires changing widget borders accordingly
      @include button(normal, $incognito_color);

      &.flat, &.titlebutton { @include button(undecorated); }

      &.titlebutton { @include _button_text_shadow($fg_color, $incognito_color); }

      &:hover { @include button(hover, $incognito_color); }

36
      &:active, &:checked { @include button(active, $incognito_color); }
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

      &:disabled { @include button(insensitive, $incognito_color); }

      &:backdrop {
        @include button(backdrop, $incognito_color);
        border-color: _border_color($incognito_color);

        &:active {
          @include button(backdrop-active, $incognito_color);
          border-color: _border_color($incognito_color);
        }

        &:disabled {
          @include button(backdrop-insensitive, $incognito_color);
          border-color: _border_color($incognito_color);
        }
      }

      &.flat:backdrop, &.titlebutton:backdrop { @include button(undecorated); }
    }

    entry {
      border-color: _border_color($incognito_color);

      &:focus {
        border-color: entry_focus_border($selected_bg_color);
        box-shadow: entry_focus_shadow($selected_bg_color);
      }

      &:backdrop { box-shadow: none; }
    }
  }
}
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
.automation-mode {
  headerbar {
    @include headerbar_fill($automation_color, $automation_edge_color);

    border-color: _border_color($automation_color);

    color: transparentize($fg_color, 0.8); // this is the color of the overlayed icon

    > * {
      color: $fg_color;

      &:backdrop { color: $backdrop_fg_color }
    }

    &:backdrop {
      box-shadow: inset 0 1px $automation_edge_color;
      color: transparentize($backdrop_fg_color, 0.9); // color of the overlayed icon in backdrop
    }

    button { // changing the headerbar background color requires changing widget borders accordingly
      @include button(normal, $automation_color);

      &.flat, &.titlebutton { @include button(undecorated); }

      &.titlebutton { @include _button_text_shadow($fg_color, $automation_color); }

      &:hover { @include button(hover, $automation_color); }

      &:active, &:checked { @include button(active, $automation_color); }

      &:disabled { @include button(insensitive, $automation_color); }

      &:backdrop {
        @include button(backdrop, $automation_color);
        border-color: _border_color($automation_color);

        &:active {
          @include button(backdrop-active, $automation_color);
          border-color: _border_color($automation_color);
        }

        &:disabled {
          @include button(backdrop-insensitive, $automation_color);
          border-color: _border_color($automation_color);
        }
      }

      &.flat:backdrop, &.titlebutton:backdrop { @include button(undecorated); }
    }

    entry {
      border-color: _border_color($automation_color);

      &:focus {
        border-color: entry_focus_border($selected_bg_color);
        box-shadow: entry_focus_shadow($selected_bg_color);
      }

      &:backdrop { box-shadow: none; }
    }
  }
}
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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201

$close_button_fg_color: lighten($fg_color, 10%);
.bookmark-tag-widget {
  background-color: darken($bg_color, 10%);

  image,
  label {
    color: $fg_color;
  }

  button {
    background: none;
    border: none;
    box-shadow: none;

    &:last-child {
      image {
        color: $close_button_fg_color;
      }

      &:hover {
        image {
          border: 1px solid;
          border-radius: 3px;
          @include button(normal, $bg_color, $close_button_fg_color);
          @include button(hover, $bg_color, $close_button_fg_color);
        }
      }

      &:active {
        image {
          @include button(normal, $bg_color, $close_button_fg_color);
          @include button(active, $bg_color, $close_button_fg_color);
        }
      }
    }
  }
}

.bookmark-tag-widget-selected {
  background-color: themecolor(theme_selected_bg_color);

  image,
  label {
    color: themecolor(theme_selected_fg_color);
  }

  button {
    &:last-child {
      image {
        color: themecolor(theme_selected_fg_color);
      }

      &:hover {
        image {
          @include button(normal, $selected_bg_color, $selected_fg_color);
          @include button(hover, $selected_bg_color, $selected_fg_color);
        }
      }

      &:active {
        image {
          @include button(normal, $selected_bg_color, $selected_fg_color);
          @include button(active, $selected_bg_color, $selected_fg_color);
        }
      }
    }
  }
}