blocks.scss 3.64 KB
Newer Older
1
.light-well {
2
  background-color: $background-color;
3 4
  padding: 15px;
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5 6 7

.centered-light-block {
  text-align: center;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
8
  color: $gl-gray;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9 10 11 12 13 14
  margin: 20px;
}

.nothing-here-block {
  text-align: center;
  padding: 20px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
15
  color: $gl-gray;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
16 17 18 19
  font-weight: normal;
  font-size: 16px;
  line-height: 36px;
}
20

21
.row-content-block {
22
  margin-top: 0;
23
  margin-bottom: -$gl-padding;
24
  background-color: $background-color;
25
  padding: $gl-padding;
26
  margin-bottom: 0;
27 28
  border-top: 1px solid $white-dark;
  border-bottom: 1px solid $white-dark;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
29 30
  color: $gl-gray;

31 32 33 34
  &.oneline-block {
    line-height: 42px;
  }

35 36 37 38
  &.white {
    background-color: white;
  }

39 40 41 42
  &.top-block {
    border-top: none;
  }

43 44 45 46 47
  &.middle-block {
    margin-top: 0;
    margin-bottom: 0;
  }

48 49 50 51 52
  &.clear-block {
    margin-bottom: $gl-padding - 1px;
    padding-bottom: $gl-padding;
  }

53 54 55 56 57
  &.second-block {
    margin-top: -1px;
    margin-bottom: 0;
  }

58 59
  &.footer-block {
    margin-top: 0;
60
    border-bottom: none;
61 62 63
    margin-bottom: -$gl-padding;
  }

64 65 66 67 68
  &.content-component-block {
    padding: 11px 0;
    background-color: $white-light;
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
69 70 71
  .title {
    color: $gl-text-color;
  }
72 73

  .oneline {
74
    line-height: 35px;
75
  }
76 77 78 79

  > p:last-child {
    margin-bottom: 0;
  }
80 81 82 83 84 85 86 87 88

  .block-controls {
    float: right;

    .control {
      float: left;
      margin-left: 10px;
    }
  }
89 90 91 92 93

  &.build-content {
    background-color: $white-light;
    border-top: none;
  }
94 95 96 97

  &.top-block .container-fluid {
    background-color: inherit;
  }
98
}
99

100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
.sub-header-block {
  background-color: $white-light;
  border-bottom: 1px solid $white-dark;
  padding: 11px 0;
  margin-bottom: 11px;

  .oneline {
    line-height: 35px;
  }

  &.no-bottom-space {
    border-bottom: 0;
    margin-bottom: 0;
  }
}

116 117
.cover-block {
  text-align: center;
118
  background: $background-color;
119
  padding-top: 44px;
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
  position: relative;

  .avatar-holder {
    margin-bottom: 16px;

    .avatar, .identicon {
      margin: 0 auto;
      float: none;
    }

    .identicon {
      @include border-radius(50%);
    }
  }

  .cover-title {
    color: $gl-header-color;
    margin: 0;
138
    font-size: 24px;
139
    font-weight: normal;
Felipe's avatar
Felipe committed
140
    margin-bottom: 10px;
141 142 143
    color: #4c4e54;
    font-size: 23px;
    line-height: 1.1;
Felipe's avatar
Felipe committed
144 145

    h1 {
146
      color: $gl-gray-dark;
Felipe's avatar
Felipe committed
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
      margin-bottom: 6px;
      font-size: 23px;
    }

    .visibility-icon {
      display: inline-block;
      margin-left: 5px;
      font-size: 18px;
      color: $gray;
    }

    p {
      padding: 0 $gl-padding;
      color: #5c5d5e;
    }
162 163 164 165
  }

  .cover-desc {
    color: $gl-text-color;
166 167 168 169

    &.username:last-child {
      padding-bottom: $gl-padding;
    }
170 171 172 173 174 175
  }

  .cover-controls {
    position: absolute;
    top: 10px;
    right: 10px;
176 177 178 179 180

    &.left {
      left: 10px;
      right: auto;
    }
181
  }
182 183 184 185 186 187

  &.groups-cover-block {
    background: $white-light;
    border-bottom: 1px solid $border-color;
    text-align: left;
    padding: 24px 0;
188 189

    .group-info {
190 191 192 193
      .cover-title {
        margin-top: 9px;
      }

194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
      p {
        margin-bottom: 0;
      }
    }

    @media (max-width: $screen-xs-max) {
      text-align: center;

      .avatar {
        float: none;
      }
    }
  }

  .group-info {
209

210 211
    h1 {
      display: inline;
212 213 214
      font-weight: normal;
      font-size: 24px;
      color: $gl-title-color;
215
    }
216
  }
217
}
218 219 220 221

.block-connector {
  margin-top: -1px;
}
222 223 224 225

.nav-block {
  .controls {
    float: right;
226 227 228
    margin-top: 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid $white-dark;
229 230
  }
}
231 232 233

.content-block {
  padding: $gl-padding 0;
234
  border-bottom: 1px solid $white-dark;
235 236

  &.oneline-block {
237 238 239 240 241
    line-height: 36px;
  }

  > .controls {
    float: right;
242 243
  }
}
Phil Hughes's avatar
Phil Hughes committed
244 245 246 247

.content-block-small {
  padding: 10px 0;
}