issuable.scss 3.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
@media (max-width: $screen-sm-max) {
  .issuable-affix {
    margin-top: 20px;
  }
}

@media (max-width: $screen-md-max) {
  .issuable-affix {
    position: static;
  }
}

@media (min-width: $screen-md-max) {
  .issuable-affix {
    &.affix-top {
      position: static;
    }

    &.affix {
      position: fixed;
21
      top: 70px;
K
Kyle 已提交
22
      margin-right: 35px;
23 24 25 26 27

      &.no-affix {
        position: relative;
        top: 0;
      }
28 29 30
    }
  }
}
D
Dmitriy Zaporozhets 已提交
31

32
.issuable-details {
33
  section {
34
    .issuable-discussion {
35 36 37
      margin-right: 1px;
    }
  }
38
}
39 40 41 42 43 44 45 46

.issuable-filter-count {
  span {
    display: block;
    margin-bottom: -16px;
    padding: 13px 0;
  }
}
47

D
Douwe Maan 已提交
48 49 50 51 52 53 54 55 56 57 58
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    .color-label {
      padding: 6px 10px;
    }
  }
}

59 60 61 62
.issuable-sidebar {
  .block {
    @include clearfix;
    padding:  $gl-padding 0;
63
    border-bottom: 1px solid $border-gray-light;
64
    // This prevents the mess when resizing the sidebar
65
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
66
    width: $gutter_inner_width;
67
    // --
68

69 70 71 72
    &:first-child {
      padding-top: 5px;
    }

73 74 75
    &:last-child {
      border: none;
    }
76

J
Jacob Schatz 已提交
77
    span {
78 79 80 81
      margin-top: 7px;
      display: inline-block;
    }

J
Jacob Schatz 已提交
82 83 84 85
    .select2-container span {
      margin-top: 0;
    }

86 87 88 89
    .issuable-count {

    }

90
    .gutter-toggle {
J
Jacob Schatz 已提交
91
      margin-left: 20px;
92
      padding-left: 10px;
93 94 95 96

      &:hover {
        color: $gray-darkest;
      }
97
    }
98
  }
D
Dmitriy Zaporozhets 已提交
99

100 101 102
  .title {
    color: $gl-text-color;
    margin-bottom: 8px;
V
Valery Sizov 已提交
103

104 105
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
106 107
    }

108 109 110
    label {
      font-weight: normal;
      margin-right: 4px;
V
Valery Sizov 已提交
111
    }
D
Dmitriy Zaporozhets 已提交
112

113 114
    .edit-link {
      color: $gl-gray;
D
Dmitriy Zaporozhets 已提交
115
    }
V
Valery Sizov 已提交
116 117
  }

118 119
  .cross-project-reference {
    color: $gl-link-color;
120

121 122
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
123
      width: 85%;
124 125 126 127 128
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
129

130 131 132 133
    cite {
      font-style: normal;
    }

134 135
    button {
      float: right;
J
Jacob Schatz 已提交
136
      padding: 3px 5px;
V
Valery Sizov 已提交
137
    }
138
  }
D
Dmitriy Zaporozhets 已提交
139

140 141 142
  .selectbox {
    display: none
  }
D
Dmitriy Zaporozhets 已提交
143

144 145
  .btn-clipboard {
    color: $gl-gray;
V
Valery Sizov 已提交
146
  }
147 148 149 150 151

  .participants .avatar {
    margin-top: 6px;
    margin-right: 2px;
  }
152
}
J
Jacob Schatz 已提交
153 154 155 156

.right-sidebar {
  position: fixed;
  top: 58px;
157
  bottom: 0;
J
Jacob Schatz 已提交
158
  right: 0;
159
  transition: width .3s;
J
Jacob Schatz 已提交
160 161
  background: $gray-light;
  padding: 10px 20px;
162

163 164
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
165 166 167 168

    hr {
      display: none;
    }
169 170 171 172 173 174 175 176

    .sidebar-collapsed-icon {
      display: none;
    }

    .gutter-toggle {
      border-left: 1px solid $border-gray-light;
    }
177 178
  }

J
Jacob Schatz 已提交
179 180 181 182 183 184
  .subscribe-button {
    span {
      margin-top: 0;
    }
  }

185
  &.right-sidebar-collapsed {
186 187 188 189 190 191 192 193

    @media (max-width: $screen-sm-max) {
      display: none;
    }
    @media (min-width: $screen-sm-min) {
      display: block
    }

194
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
195 196 197 198 199 200 201 202 203 204 205
    padding-top: 0;

    hr {
      margin: 0;
      color: $gray-normal;
      border-color: $gray-normal;
      width: 62px;
      margin-left: -20px
    }

    .block {
206 207
      width: $sidebar_collapsed_width - 1px;
      margin-left: -19px;
J
Jacob Schatz 已提交
208
      padding: 15px 0 0 0;
209 210
      border-bottom: none;
      overflow: hidden;
J
Jacob Schatz 已提交
211
    }
212

213
    .hide-collapsed {
J
Jacob Schatz 已提交
214 215 216
      display: none;
    }

217
    .gutter-toggle {
218
      margin-left: -36px;
219 220 221 222
    }

    .sidebar-collapsed-icon {
      display: block;
223
      width: 100%;
224
      text-align: center;
J
Jacob Schatz 已提交
225
      padding-bottom: 10px;
226
      color: #999999;
J
Jacob Schatz 已提交
227 228 229 230 231

      span {
        display: block;
        margin-top: 0;
      }
232 233 234 235 236 237 238 239 240 241 242 243

      .btn-clipboard {
        border: none;

        &:hover {
          background: transparent;
        }

        i {
          color: #999999;
        }
      }
244
    }
J
Jacob Schatz 已提交
245 246
  }

247 248 249 250 251 252
  .btn {
    background: $gray-normal;
    border: 1px solid $border-gray-normal;
    &:hover {
      background: $gray-dark;
      border: 1px solid $border-gray-dark;
J
Jacob Schatz 已提交
253 254
    }
  }
255
}
J
Jacob Schatz 已提交
256

257 258 259 260
.btn-default.gutter-toggle {
  margin-top: 4px;
}

J
Jacob Schatz 已提交
261 262 263 264
.detail-page-description {
  small {
    color: $gray-darkest;
  }
265
}