summaryrefslogtreecommitdiffstats
path: root/assets/sass/@primer/css/blankslate/blankslate.scss
blob: e352daac15e76ac5d6d97c127586ea0bd8c32077 (plain) (blame)
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
// stylelint-disable selector-max-type
.blankslate {
  position: relative;
  padding: $spacer-5;
  text-align: center;

  code {
    // stylelint-disable-next-line primer/spacing
    padding: 2px 5px 3px;
    font-size: $h5-size;
    background: $bg-white;
    border: $border-width $border-style $border-gray-light;
    border-radius: $border-radius;
  }

  img {
    width: 56px;
    height: 56px;
  }
}

.blankslate-icon {
  margin-right: $spacer-1;
  margin-bottom: $spacer-2;
  margin-left: $spacer-1;
  // stylelint-disable-next-line primer/colors
  color: lighten($gray-400, 5%);
}

.blankslate-capped {
  border-radius: 0 0 $border-radius $border-radius;
}

.blankslate-spacious {
  // stylelint-disable-next-line primer/spacing
  padding: ($spacer-6 * 2) $spacer-6;
}

.blankslate-narrow {
  max-width: 485px;
  margin: 0 auto;
}

// was .large-format
// QUESTION: should we deprecate this?
.blankslate-large {
  img {
    width: 80px;
    height: 80px;
  }

  h3 {
    margin: $spacer-3 0;
    //font-size: $h3-size; // This doesn't actually make the text larger. Should this be $h2-size?
    font-size: $h2-size;
  }

  p {
    font-size: $h4-size;
  }
}

// was .clean-background
// TO DO: deprecate this and use utility instead
.blankslate-clean-background {
  border: 0;
}