summaryrefslogtreecommitdiff
path: root/res/styles/partials/_launcher.scss
blob: 7873f7da743c74d73a27745bacecbbe274e352e7 (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
//
// Styles for the launcher.
//
// The search icon and label should be aligned to the result item icons (at the center) and labels (at the start).
//

window.launcher {
  background: $foobar-color-background-primary;
  border: $foobar-dim-border-light solid $foobar-color-border;
  border-radius: $foobar-dim-radius-outer;

  $search-icon-size: 24px;
  $app-icon-size: 32px;
  // How far the app icon needs to extend into the spacing around it.
  $icon-overrun: ($app-icon-size - $search-icon-size) / 2;

  & .search {
    padding: $foobar-dim-margin-large-vertical $foobar-dim-margin-large-horizontal;

    & image {
      -gtk-icon-size: $search-icon-size;
      margin-right: $foobar-dim-spacing-relaxed;
      color: $foobar-color-foreground-secondary;
    }

    & placeholder {
      color: $foobar-color-foreground-secondary;
    }

    & text {
      font-size: $foobar-dim-font-large;
    }
  }

  & row {
    $inset: $foobar-dim-spacing-medium;

    padding-left: $foobar-dim-margin-large-horizontal - $icon-overrun - $inset;
    padding-right: $foobar-dim-margin-large-horizontal - $inset;
    padding-top: $foobar-dim-margin-medium-vertical;
    padding-bottom: $foobar-dim-margin-medium-vertical;
    margin-top: $inset;
    margin-left: $inset;
    margin-right: $inset;
    border-radius: $foobar-dim-radius-small;

    &:last-child {
      margin-bottom: $inset;
    }

    & .icon {
      -gtk-icon-size: $app-icon-size;
      margin-right: $foobar-dim-spacing-relaxed - $icon-overrun;
    }

    & .name {
      font-size: $foobar-dim-font-small;
      font-weight: bold;
    }

    & .description {
      font-size: $foobar-dim-font-small;
      margin-top: $foobar-dim-spacing-small;
      color: $foobar-color-foreground-secondary;
    }
  }
}