projects.css.scss 5.5 KB
Newer Older
D
Dmitriy Zaporozhets 已提交
1
/** MIXINS **/
N
Nihad Abbasov 已提交
2
@mixin round-borders-bottom($radius) {
G
gitlabhq 已提交
3 4 5 6 7 8 9 10 11
  border-top: 1px solid #eaeaea;
  -moz-border-radius-bottomright: $radius;
  -moz-border-radius-bottomleft: $radius;
  border-bottom-right-radius: $radius;
  border-bottom-left-radius: $radius;
  -webkit-border-bottom-left-radius: $radius;
  -webkit-border-bottom-right-radius: $radius;
}

N
Nihad Abbasov 已提交
12
@mixin round-borders-top($radius) {
G
gitlabhq 已提交
13 14 15 16 17 18 19 20 21
  border-top: 1px solid #eaeaea;
  -moz-border-radius-topright: $radius;
  -moz-border-radius-topleft: $radius;
  border-top-right-radius: $radius;
  border-top-left-radius: $radius;
  -webkit-border-top-left-radius: $radius;
  -webkit-border-top-right-radius: $radius;
}

N
Nihad Abbasov 已提交
22
@mixin round-borders-all($radius) {
G
gitlabhq 已提交
23 24 25 26 27 28
  border: 1px solid #eaeaea;
  -moz-border-radius: $radius;
  -webkit-border-radius: $radius;
  border-radius: $radius;
}

D
Dmitriy Zaporozhets 已提交
29
/** File stat **/
N
Nihad Abbasov 已提交
30
.file_stats {
G
gitlabhq 已提交
31 32 33
  margin-bottom:10px;
  @include round-borders-all(4px);

N
Nihad Abbasov 已提交
34
  span {
G
gitlabhq 已提交
35 36 37
    border-top: 1px solid #eaeaea;
    padding:5px 5px;
    display:block;
N
Nihad Abbasov 已提交
38
    &:first-child {
G
gitlabhq 已提交
39 40 41
      border-top:none;
    }

N
Nihad Abbasov 已提交
42
    img {
G
gitlabhq 已提交
43 44 45 46 47 48 49
      width:18px;
      float:left;
      margin-right: 6px;
    }
  }
}

N
Nihad Abbasov 已提交
50
.round-borders {
G
gitlabhq 已提交
51 52 53
  @include round-borders-all(4px);
  padding: 4px 0px;
}
D
Dmitriy Zaporozhets 已提交
54

N
Nihad Abbasov 已提交
55
table.round-borders {
G
gitlabhq 已提交
56 57 58 59 60 61 62
  float:left;
}

a {
  color: #111;
}

D
Dmitriy Zaporozhets 已提交
63
/** FILE CONTENT VIEW **/
G
gitlabhq 已提交
64
.view_file_content{
N
Nihad Abbasov 已提交
65
  .old_line, .new_line {
G
gitlabhq 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
    background:#ECECEC;
    color:#777;
    width:15px;
    float:left;
    padding: 0px 10px;
    border-right: 1px solid #ccc;
  }
  .old_line{
    display:none;
  }
}

.view_file {
  border:1px solid #CCC;
  margin-bottom:1em;

N
Nihad Abbasov 已提交
82
  .view_file_header {
G
gitlabhq 已提交
83 84 85 86
    padding:5px 5px;
    border-bottom:1px solid #CCC;
    background: #eee;
  }
N
Nihad Abbasov 已提交
87
  .view_file_content {
G
gitlabhq 已提交
88 89 90 91
    background:#fff;
    color:#514721;
    font-size: 11px;
  }
N
Nihad Abbasov 已提交
92
  .view_file_content_image {
G
gitlabhq 已提交
93 94
    background:#eee;
    text-align:center;
N
Nihad Abbasov 已提交
95
    img {
G
gitlabhq 已提交
96 97 98 99 100 101
      padding:100px;
      max-width:300px;
    }
  }
}

D
Dmitriy Zaporozhets 已提交
102 103 104 105 106 107 108 109 110 111 112 113
td.code { 
  width: 100%;
  .highlight { 
    margin-left: 55px;
    overflow:auto;
    overflow-y:hidden;
  }
}
.highlight pre { 
  white-space: pre;
  word-wrap:normal;
}
G
gitlabhq 已提交
114

D
Dmitriy Zaporozhets 已提交
115 116 117 118 119 120
.highlighttable tr:hover {
  background:white;
}
table.highlighttable pre{ 
  line-height:16px !important;
  font-size:12px !important;
G
gitlabhq 已提交
121 122
}

D
Dmitriy Zaporozhets 已提交
123 124 125 126 127 128 129

table.highlighttable .linenodiv pre {
  text-align: right;
  padding-right: 4px;
}

/** PROJECTS **/
N
Nihad Abbasov 已提交
130
input.ssh_project_url {
G
gitlabhq 已提交
131 132 133 134 135 136 137
  padding:5px;
  margin:0px;
  float:right;
  width:400px;
  text-align:center;
}

N
Nihad Abbasov 已提交
138
#projects-list .project {
G
gitlabhq 已提交
139 140 141
  height:50px;
}

D
Dmitriy Zaporozhets 已提交
142
#tree-slider .tree-item,
G
gitlabhq 已提交
143
#projects-list .project,
G
gitlabhq 已提交
144
#snippets-table .snippet,
N
Nihad Abbasov 已提交
145
#issues-table .issue{
G
gitlabhq 已提交
146 147 148
  cursor:pointer;
}

N
Nihad Abbasov 已提交
149
.clear {
G
gitlabhq 已提交
150 151 152 153 154
  clear: both;
}

/** FORM INPUTS **/
.user_new,
D
Dmitriy Zaporozhets 已提交
155 156 157
.new_key,
.new_issue,
.new_note,
G
gitlabhq 已提交
158 159
.edit_user,
.new_project,
G
gitlabhq 已提交
160 161
.new_snippet,
.edit_snippet,
N
Nihad Abbasov 已提交
162
.edit_project {
G
gitlabhq 已提交
163 164 165
  input[type='text'],
  input[type='email'],
  input[type='password'],
N
Nihad Abbasov 已提交
166
  textarea {
G
gitlabhq 已提交
167 168 169 170 171 172 173
    width:400px;
    padding:8px;
    font-size:14px;
    @include round-borders-all(4px);
  }
}

N
Nihad Abbasov 已提交
174
.input_button {
G
gitlabhq 已提交
175 176 177 178 179 180 181 182 183 184
  padding:8px;
  font-size:14px;
  cursor:pointer;
  background-color: #F5F5F5;
  border-color: #EEEEEE #DEDEDE #DEDEDE #EEEEEE;
  border-right: 1px solid #DEDEDE;
  border-style: solid;
  border-width: 1px;
}

N
Nihad Abbasov 已提交
185
/** FLASH **/
N
Nihad Abbasov 已提交
186
#flash_container {
G
gitlabhq 已提交
187 188
  height:40px;
  position:fixed;
D
Dmitriy Zaporozhets 已提交
189
  z-index:1209;
G
gitlabhq 已提交
190 191 192 193 194 195 196 197
  top:0px;
  width:100%;
  margin-bottom:10px;
  overflow:hidden;
  background:white;
  cursor:pointer;
  border-bottom:1px solid #777;

N
Nihad Abbasov 已提交
198
  h4 {
G
gitlabhq 已提交
199 200 201
    color:#444;
    font-size:22px;
    padding-top:5px;
G
gitlabhq 已提交
202
    margin:2px;
G
gitlabhq 已提交
203 204 205 206 207 208 209 210 211 212 213 214 215 216
  }
}

/** Buttons **/
.lbutton,
.lite_button {
  display:block;
  float:left;
  margin: 0px 5px;
  padding:5px 10px;

  font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;
  border:1px solid #D3D3D3;
  background:white;
G
css fix  
gitlabhq 已提交
217
  font-size:12px !important;
G
gitlabhq 已提交
218 219 220 221 222 223 224 225 226 227 228
  line-height:130%;
  text-decoration:none;
  font-weight:bold;
  color:#565656;
  cursor:pointer;

  &:hover {
    border:1px solid #C2E1EF;
    color: #0099FF;
  }

N
Nihad Abbasov 已提交
229
  &.hm {
G
gitlabhq 已提交
230 231 232
    margin: 0px 0px;
  }

N
Nihad Abbasov 已提交
233
  &.vm {
G
gitlabhq 已提交
234 235 236 237
    margin: 5px 0px;
  }
}

V
Valera Sizov 已提交
238 239

#user_projects_limit{
N
Nihad Abbasov 已提交
240
  width: 60px;
V
Valera Sizov 已提交
241
}
G
gitlabhq 已提交
242

V
VSizov 已提交
243 244 245
.handle:hover{
  cursor: move;
}
V
VSizov 已提交
246

G
gitlabhq 已提交
247 248 249 250 251 252 253 254 255 256 257 258
.project-refs-form { 
  span {
    background: none !important;
    position:static !important;
    width:auto !important;
    height: auto !important;
  }
}

.project-refs-select {
  width:200px;
}
G
gitlabhq 已提交
259

D
Dmitriy Zaporozhets 已提交
260 261
.filter .left { margin-right:15px; }
 
262 263 264 265 266 267 268 269 270
body.project-page table .commit { 
  a.tree-commit-link { 
    color:gray;
    &:hover { 
      text-decoration:underline;
    }
  }
}

G
gitlabhq 已提交
271 272
/** NEW PROJECT **/
.new-project-hodler { 
D
Dmitriy Zaporozhets 已提交
273 274
  .icon span { background-position: -31px -70px; }
  td { border-bottom: 1px solid #DEE2E3; }
G
gitlabhq 已提交
275
}
D
Dmitriy Zaporozhets 已提交
276

D
Dmitriy Zaporozhets 已提交
277
/** Feed entry **/
G
gitlabhq 已提交
278
.commit,
D
Dmitriy Zaporozhets 已提交
279
.snippet,
G
gitlabhq 已提交
280 281 282
.message { 
  .title { 
    color:#666;
D
Dmitriy Zaporozhets 已提交
283 284
    a { color:#666 !important; }
    p { margin-top:0px; }
G
gitlabhq 已提交
285
  }
D
Dmitriy Zaporozhets 已提交
286
  .author { color: #999 }
G
gitlabhq 已提交
287
}
D
Dmitriy Zaporozhets 已提交
288

D
Dmitriy Zaporozhets 已提交
289
/** JQuery UI **/
D
Dmitriy Zaporozhets 已提交
290 291
.ui-autocomplete { @include round-borders-all(5px); }
.ui-menu-item { cursor: pointer }
D
Dmitriy Zaporozhets 已提交
292 293 294 295 296 297 298 299 300 301
.ui-selectmenu{
  @include round-borders-all(4px);
  margin-right:10px;
  font-size:1.5em;
  height:auto;
  font-weight:bold;
  .ui-selectmenu-status { 
    padding:3px 10px;
  }
}
D
Dmitriy Zaporozhets 已提交
302
 
D
Dmitriy Zaporozhets 已提交
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
/** Snippets **/
.new_snippet textarea, 
.edit_snippet textarea { 
  height:300px;
  padding: 8px;
  width: 95%;
}
.snippet .action-links {
  display:none; 
  a { 
    margin-left:10px;
  }
}
.snippet:hover .action-links { display:block; }

/** ISSUES TAGS **/
.tag {
  @include round-borders-all(4px);
  padding:2px 4px;
  border:none;
  text-shadow:none;

  &.high {
    background: #D12F19;
    color:white;
  }

  &.today {
    background: #44aa22;
    color:white;
  }

  &.yours {
    background: #4466cc;
    color:white;
  }
  &.normal {
    background: #2c5ca6;
    color:white;
  }
  &.notes {
    background: #2c5c66;
    color:white;
  }
}