summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/blank.scss
blob: 7dd7ab339dd21c22de52573a567fbff678e0d8af (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
.blank-state-parent-container {
  .section-container {
    padding: 10px;
  }

  .section-body {
    width: 100%;
    height: 100%;
    padding-bottom: 25px;
    border-radius: $border-radius-default;
  }
}

.blank-state-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blank-state-welcome {
  text-align: center;
  padding: $gl-padding 0 ($gl-padding * 2);

  .blank-state-welcome-title {
    font-size: 24px;
  }

  .blank-state-text {
    margin-bottom: 0;
  }
}

.blank-state-link {
  color: $gl-text-color;
  margin-bottom: 15px;

  &:hover {
    background-color: $gray-light;
    text-decoration: none;
    color: $gl-text-color;
  }
}

.blank-state-center {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}

.blank-state {
  display: flex;
  align-items: center;
  padding: 20px 50px;
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
  min-height: 240px;
  margin-bottom: $gl-padding;
  width: calc(50% - #{$gl-padding-8});

  @include media-breakpoint-down(sm) {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 50px 20px;

    .column-small & {
      width: 100%;
    }

  }
}

.blank-state,
.blank-state-center {
  .blank-state-icon {
    svg {
      display: block;
      margin: auto;
    }
  }

  .blank-state-title {
    margin-top: 0;
    font-size: 18px;
  }

  .blank-state-body {
    @include media-breakpoint-down(sm) {
      text-align: center;
      margin-top: 20px;
    }

    @include media-breakpoint-up(sm) {
      padding-left: 20px;
    }
  }
}

@include media-breakpoint-up(lg) {
  .column-large {
    flex: 2;
  }

  .column-small {
    flex: 1;
    margin-bottom: 15px;

    .blank-state {
      max-width: 400px;
      flex-wrap: wrap;
      margin-left: 15px;
    }

    .blank-state-icon {
      margin-bottom: 30px;
    }
  }
}