blocks.scss 2.32 KB
Newer Older
1
.light-well {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2
  background-color: #f8fafc;
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

.gray-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 $border-color;
  border-bottom: 1px solid $border-color;
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;
    }
  }
84
}
85 86 87

.cover-block {
  text-align: center;
88
  background: $background-color;
89
  padding-top: 44px;
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
  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;
    font-size: 23px;
    font-weight: normal;
    margin: 16px 0 5px 0;
    color: #4c4e54;
    font-size: 23px;
    line-height: 1.1;
  }

  .cover-desc {
117
    padding: 0 $gl-padding 3px;
118
    color: $gl-text-color;
119 120 121 122

    &.username:last-child {
      padding-bottom: $gl-padding;
    }
123 124 125 126 127 128
  }

  .cover-controls {
    position: absolute;
    top: 10px;
    right: 10px;
129 130 131 132 133

    &.left {
      left: 10px;
      right: auto;
    }
134 135
  }
}
136 137 138 139

.block-connector {
  margin-top: -1px;
}
140 141 142 143

.nav-block {
  .controls {
    float: right;
144
    margin-top: 11px;
145 146
  }
}
147 148 149 150 151 152

.content-block {
  padding: $gl-padding 0;
  border-bottom: 1px solid $border-color;

  &.oneline-block {
153 154 155 156 157
    line-height: 36px;
  }

  > .controls {
    float: right;
158 159
  }
}
Phil Hughes's avatar
Phil Hughes committed
160 161 162 163

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