blocks.scss 3.17 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

Annabel Dunstone's avatar
Annabel Dunstone committed
21
.row-content-block {
22
  margin-top: 0;
23
  margin-bottom: -$gl-padding;
24
  background-color: $background-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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;
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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;
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
64 65 66
  .title {
    color: $gl-text-color;
  }
67 68

  .oneline {
69
    line-height: 35px;
70
  }
71 72 73 74

  > p:last-child {
    margin-bottom: 0;
  }
75 76 77 78 79 80 81 82 83

  .block-controls {
    float: right;

    .control {
      float: left;
      margin-left: 10px;
    }
  }
Annabel Dunstone's avatar
Annabel Dunstone committed
84 85 86 87 88

  &.build-content {
    background-color: $white-light;
    border-top: none;
  }
89
}
90 91 92

.cover-block {
  text-align: center;
93
  background: $background-color;
94
  padding-top: 44px;
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
  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;
113
    font-size: 24px;
114
    font-weight: normal;
115
    margin-bottom: 5px;
116 117 118
    color: #4c4e54;
    font-size: 23px;
    line-height: 1.1;
Felipe Artur's avatar
Felipe Artur committed
119 120

    h1 {
Annabel Dunstone's avatar
Annabel Dunstone committed
121
      color: $gl-gray-dark;
Felipe Artur's avatar
Felipe Artur committed
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
      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;
    }
137 138 139 140
  }

  .cover-desc {
    color: $gl-text-color;
141 142 143 144

    &.username:last-child {
      padding-bottom: $gl-padding;
    }
145 146 147 148 149 150
  }

  .cover-controls {
    position: absolute;
    top: 10px;
    right: 10px;
151 152 153 154 155

    &.left {
      left: 10px;
      right: auto;
    }
156
  }
157 158 159 160 161 162

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

    .group-info {
165 166 167 168
      .cover-title {
        margin-top: 9px;
      }

169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
      p {
        margin-bottom: 0;
      }
    }

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

      .avatar {
        float: none;
      }
    }
  }

  .group-info {
184

185 186
    h1 {
      display: inline;
187 188 189
      font-weight: normal;
      font-size: 24px;
      color: $gl-title-color;
190
    }
191
  }
192
}
193 194 195 196

.block-connector {
  margin-top: -1px;
}
197 198 199 200

.nav-block {
  .controls {
    float: right;
201
    margin-top: 11px;
202 203
  }
}
204 205 206

.content-block {
  padding: $gl-padding 0;
207
  border-bottom: 1px solid $white-dark;
208 209

  &.oneline-block {
210 211 212 213 214
    line-height: 36px;
  }

  > .controls {
    float: right;
215 216
  }
}
Phil Hughes's avatar
Phil Hughes committed
217 218 219 220

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