issuable.scss 3.6 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 33 34
.project-issuable-filter {
  .controls {
    float: right;
35
    margin-top: 11px;
36 37
  }

38
  .nav-links {
39 40 41
    text-align: left;
  }
}
42 43

.issuable-details {
44
  section {
45
    .issuable-discussion {
46 47 48
      margin-right: 1px;
    }
  }
49
}
50 51 52 53 54 55 56 57

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

D
Douwe Maan 已提交
59 60 61 62 63 64 65 66 67 68 69
.issuable-show-labels {
  a {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    .color-label {
      padding: 6px 10px;
    }
  }
}

70 71 72 73
.issuable-sidebar {
  .block {
    @include clearfix;
    padding:  $gl-padding 0;
74
    border-bottom: 1px solid $border-gray-light;
75 76
    // This prevents the mess when resizing the sidebar 
    // of elements repositioning themselves..
J
Jacob Schatz 已提交
77
    width: $gutter_inner_width;
78 79
    overflow-x: hidden;
    // --
80

81 82 83 84
    &:first-child {
      padding-top: 5px;
    }

85 86 87
    &:last-child {
      border: none;
    }
88 89 90 91 92 93 94 95 96 97

    span {
      margin-top: 7px;
      display: inline-block;
    }

    .issuable-count {

    }

98
    .gutter-toggle {
J
Jacob Schatz 已提交
99
      margin-left: 20px;
100
      border-left: 1px solid $border-gray-light;
101 102
      padding-left: 10px;
    }
103
  }
D
Dmitriy Zaporozhets 已提交
104

105 106 107
  .title {
    color: $gl-text-color;
    margin-bottom: 8px;
V
Valery Sizov 已提交
108

109 110
    .avatar {
      margin-left: 0;
V
Valery Sizov 已提交
111 112
    }

113 114 115
    label {
      font-weight: normal;
      margin-right: 4px;
V
Valery Sizov 已提交
116
    }
D
Dmitriy Zaporozhets 已提交
117

118 119
    .edit-link {
      color: $gl-gray;
D
Dmitriy Zaporozhets 已提交
120
    }
V
Valery Sizov 已提交
121 122
  }

123 124
  .cross-project-reference {
    color: $gl-link-color;
125

126 127
    span {
      white-space: nowrap;
J
Jacob Schatz 已提交
128
      width: 85%;
129 130 131 132 133
      overflow: hidden;
      position: relative;
      display: inline-block;
      text-overflow: ellipsis;
    }
V
Valery Sizov 已提交
134

135 136 137 138
    cite {
      font-style: normal;
    }

139 140
    button {
      float: right;
J
Jacob Schatz 已提交
141
      padding: 3px 5px;
V
Valery Sizov 已提交
142
    }
143
  }
D
Dmitriy Zaporozhets 已提交
144

145 146 147
  .selectbox {
    display: none
  }
D
Dmitriy Zaporozhets 已提交
148

149 150
  .btn-clipboard {
    color: $gl-gray;
V
Valery Sizov 已提交
151
  }
152 153 154 155 156

  .participants .avatar {
    margin-top: 6px;
    margin-right: 2px;
  }
157
}
J
Jacob Schatz 已提交
158 159 160 161 162 163 164 165 166 167 168


.right-sidebar {
  position: fixed;
  top: 58px;
  right: 0;
  height: 100%;
  transition-duration: .3s;
  background: $gray-light;
  overflow: scroll;
  padding: 10px 20px;
169

170 171
  &.right-sidebar-expanded {
    width: $gutter_width;
J
Jacob Schatz 已提交
172 173 174 175

    hr {
      display: none;
    }
176 177
  }

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

184 185
  &.right-sidebar-collapsed {
    width: $sidebar_collapsed_width;
J
Jacob Schatz 已提交
186
    padding-top: 0;
187
    overflow-x: hidden;
J
Jacob Schatz 已提交
188 189 190 191 192 193 194 195 196 197 198 199 200

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

    .block {
      border-bottom: none;
      padding: 15px 0 0 0;
    }
201 202
  }

203 204
  .btn {
    background: $gray-normal;
205
    border: 1px solid $border-gray-normal;
206
  }
J
Jacob Schatz 已提交
207 208 209 210

  &.right-sidebar-collapsed {
    .issuable-count, 
    .issuable-nav,
211
    .assignee > *,
212 213 214 215 216
    .milestone > *,
    .labels > *,
    .participants > *,
    .light > *,
    .project-reference > * {
J
Jacob Schatz 已提交
217 218 219
      display: none;
    }

220
    .gutter-toggle {
J
Jacob Schatz 已提交
221
      margin-left: -$gutter_inner_width + 4;
222 223 224 225
    }

    .sidebar-collapsed-icon {
      display: block;
226 227 228 229
      float: left;
      width: 62px;
      text-align: center;
      margin-left: -19px;
J
Jacob Schatz 已提交
230
      padding-bottom: 10px;
231
      color: #999999;
J
Jacob Schatz 已提交
232 233 234 235 236

      span {
        display: block;
        margin-top: 0;
      }
237 238
    }

J
Jacob Schatz 已提交
239 240 241 242 243 244 245
  }

  &.right-sidebar-expanded {
    .sidebar-collapsed-icon {
      display: none;
    }
  }
J
Jacob Schatz 已提交
246
}