miscellaneous.less 7.9 KB
Newer Older
A
almasaeed2010 已提交
1 2 3 4
/*
 * General: Miscellaneous
 * ----------------------
 */
5
// 10px padding and margins
A
almasaeed2010 已提交
6 7 8 9 10 11
.pad {
  padding: 10px;
}
.margin {
  margin: 10px;
}
12 13 14
.margin-bottom {
  margin-bottom: 20px;
}
15
// Display inline
A
almasaeed2010 已提交
16 17 18 19
.inline {
  display: inline;
}

20
// Description Blocks
A
almasaeed2010 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
.description-block {
  display: block;
  margin: 10px 0;
  text-align: center;
  &.margin-bottom {
    margin-bottom: 25px;
  }
  > .description-header {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 16px;
  }
  > .description-text {
    text-transform: uppercase;
  }
}

39
// Background colors
A
almasaeed2010 已提交
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
.bg-red,
.bg-yellow,
.bg-aqua,
.bg-blue,
.bg-light-blue,
.bg-green,
.bg-navy,
.bg-teal,
.bg-olive,
.bg-lime,
.bg-orange ,
.bg-fuchsia,
.bg-purple,
.bg-maroon,
.bg-black,
.bg-red-active,
.bg-yellow-active,
.bg-aqua-active,
.bg-blue-active,
.bg-light-blue-active,
.bg-green-active,
.bg-navy-active,
.bg-teal-active,
.bg-olive-active,
.bg-lime-active,
.bg-orange-active,
.bg-fuchsia-active,
.bg-purple-active,
.bg-maroon-active,
.bg-black-active {
  color: #fff !important;
}
.bg-gray {
  color: #000;
  background-color: @gray!important;
}
A
Abdullah Almsaeed 已提交
76 77 78
.bg-gray-light {
  background-color: #f7f7f7;
}
A
almasaeed2010 已提交
79 80 81 82 83 84 85 86 87 88 89 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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
.bg-black {
  background-color: @black!important;
}
.bg-red {
  background-color: @red !important;
}
.bg-yellow {
  background-color: @yellow !important;
}
.bg-aqua {
  background-color: @aqua !important;
}
.bg-blue {
  background-color: @blue !important;
}
.bg-light-blue {
  background-color: @light-blue !important;
}
.bg-green {
  background-color: @green !important;
}
.bg-navy {
  background-color: @navy !important;
}
.bg-teal {
  background-color: @teal !important;
}
.bg-olive {
  background-color: @olive !important;
}
.bg-lime {
  background-color: @lime !important;
}
.bg-orange {
  background-color: @orange !important;
}
.bg-fuchsia {
  background-color: @fuchsia !important;
}
.bg-purple {
  background-color: @purple !important;
}
.bg-maroon {
  background-color: @maroon !important;
}

//Set of Active Background Colors
.bg-gray-active {
  color: #000;
  background-color: darken(@gray,10%)!important;
}
.bg-black-active {
  background-color: darken(@black, 10%)!important;
}
.bg-red-active {
134
  background-color: darken(@red , 6%)!important;
A
almasaeed2010 已提交
135 136 137 138 139
}
.bg-yellow-active {
  background-color: darken(@yellow , 6%)!important;
}
.bg-aqua-active {
A
almasaeed2010 已提交
140
  background-color: darken(@aqua , 6%)!important;
A
almasaeed2010 已提交
141 142 143 144 145
}
.bg-blue-active {
  background-color: darken(@blue , 10%)!important;
}
.bg-light-blue-active {
146
  background-color: darken(@light-blue , 6%)!important;
A
almasaeed2010 已提交
147 148 149 150 151
}
.bg-green-active {
  background-color: darken(@green , 5%)!important;
}
.bg-navy-active {
A
Abdullah Almsaeed 已提交
152
  background-color: darken(@navy , 2%)!important;
A
almasaeed2010 已提交
153 154
}
.bg-teal-active {
A
Abdullah Almsaeed 已提交
155
  background-color: darken(@teal , 5%)!important;
A
almasaeed2010 已提交
156 157
}
.bg-olive-active {
A
Abdullah Almsaeed 已提交
158
  background-color: darken(@olive , 5%)!important;
A
almasaeed2010 已提交
159 160
}
.bg-lime-active {
A
Abdullah Almsaeed 已提交
161
  background-color: darken(@lime , 5%)!important;
A
almasaeed2010 已提交
162 163
}
.bg-orange-active {
A
Abdullah Almsaeed 已提交
164
  background-color: darken(@orange , 5%)!important;
A
almasaeed2010 已提交
165 166
}
.bg-fuchsia-active {
A
Abdullah Almsaeed 已提交
167
  background-color: darken(@fuchsia , 5%)!important;
A
almasaeed2010 已提交
168 169
}
.bg-purple-active {
A
Abdullah Almsaeed 已提交
170
  background-color: darken(@purple , 5%)!important;
A
almasaeed2010 已提交
171 172
}
.bg-maroon-active {
A
Abdullah Almsaeed 已提交
173
  background-color: darken(@maroon , 3%)!important;
A
almasaeed2010 已提交
174 175 176 177 178 179 180
}

//Disabled!
[class^="bg-"].disabled {
  .opacity(.65);
}

181
// Text colors
A
almasaeed2010 已提交
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
.text-red {
  color: @red !important;
}
.text-yellow {
  color: @yellow !important;
}
.text-aqua {
  color: @aqua !important;
}
.text-blue {
  color: @blue !important;
}
.text-black {
  color: @black!important;
}
.text-light-blue {
  color: @light-blue !important;
}
.text-green {
  color: @green !important;
}
.text-gray {
  color: @gray !important;
}
.text-navy {
  color: @navy !important;
}
.text-teal {
  color: @teal !important;
}
.text-olive {
  color: @olive !important;
}
.text-lime {
  color: @lime !important;
}
.text-orange {
  color: @orange !important;
}
.text-fuchsia {
  color: @fuchsia !important;
}
.text-purple {
  color: @purple !important;
}
.text-maroon {
  color: @maroon !important;
}
230 231 232 233 234 235 236
.link-muted {
  color: darken(@gray, 30%);
  &:hover,
    &:focus {
    color: darken(@gray, 40%);
  }
}
A
almasaeed2010 已提交
237

238
// Hide elements by display none only
A
almasaeed2010 已提交
239 240 241 242
.hide {
  display: none !important;
}

243
// Remove borders
A
almasaeed2010 已提交
244
.no-border {
A
Abdullah Almsaeed 已提交
245
  border: 0 !important;
A
almasaeed2010 已提交
246
}
247
// Remove padding
A
almasaeed2010 已提交
248
.no-padding {
A
Abdullah Almsaeed 已提交
249
  padding: 0 !important;
A
almasaeed2010 已提交
250
}
251
// Remove margins
A
almasaeed2010 已提交
252
.no-margin {
A
Abdullah Almsaeed 已提交
253
  margin: 0 !important;
A
almasaeed2010 已提交
254 255
}

256
// Remove box shadow
A
almasaeed2010 已提交
257 258 259 260
.no-shadow {
  box-shadow: none!important;
}

261
// Unstyled List
A
almasaeed2010 已提交
262 263 264 265 266 267
.list-unstyled {
  list-style: none;
  margin: 0;
  padding: 0;
}

268
// Remove border radius
A
almasaeed2010 已提交
269 270 271 272 273 274 275 276 277 278 279 280
.flat {
  .border-radius(0)!important;
}

.text-bold {
  &, &.table td, &.table th {
    font-weight: 700;
  }


}

281
// _fix for sparkline tooltip
A
almasaeed2010 已提交
282 283 284 285 286 287
.jqstooltip{
  padding: 5px!important;
  width:auto!important;
  height:auto!important;
}

288 289

// Gradient Background colors
A
almasaeed2010 已提交
290 291 292 293 294 295 296 297 298 299 300 301 302 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
.bg-teal-gradient {
  .gradient(@teal; @teal; lighten(@teal, 16%))!important;
  color: #fff;
}
.bg-light-blue-gradient {
  .gradient(@light-blue; @light-blue; lighten(@light-blue, 12%))!important;
  color: #fff;
}
.bg-blue-gradient {
  .gradient(@blue; @blue; lighten(@blue, 7%))!important;
  color: #fff;
}
.bg-aqua-gradient {
  .gradient(@aqua; @aqua; lighten(@aqua, 7%))!important;
  color: #fff;
}
.bg-yellow-gradient {
  .gradient(@yellow; @yellow; lighten(@yellow, 16%))!important;
  color: #fff;
}
.bg-purple-gradient {
  .gradient(@purple; @purple; lighten(@purple, 16%))!important;
  color: #fff;
}
.bg-green-gradient {
  .gradient(@green; @green; lighten(@green, 7%))!important;
  color: #fff;
}
.bg-red-gradient {
  .gradient(@red; @red; lighten(@red, 10%))!important;
  color: #fff;
}
.bg-black-gradient {
  .gradient(@black; @black; lighten(@black, 10%))!important;
  color: #fff;
}
.bg-maroon-gradient {
  .gradient(@maroon; @maroon; lighten(@maroon, 10%))!important;
  color: #fff;
}
A
Abdullah Almsaeed 已提交
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462

//Description Block Extension
.description-block {
  .description-icon {
    font-size: 16px;
  }
}

//Remove top padding
.no-pad-top {
  padding-top: 0;
}

//Make position static
.position-static {
  position: static!important;
}

//List utility classes
.list-header {
  font-size: 15px;
  padding: 10px 4px;
  font-weight: bold;
  color: #666;
}
.list-seperator {
  height: 1px;
  background: @box-border-color;
  margin: 15px 0 9px 0;
}
.list-link {
  > a {
    padding: 4px;
    color: #777;
    &:hover {
      color: #222;
    }
  }
}

//Light font weight
.font-light {
  font-weight: 300;
}

//User block
.user-block {
  img {
    width: 40px;
    height: 40px;
    float: left;
  }
  .username,
  .description,
  .comment {
    display: block;
    margin-left: 50px;
  }
  .username {
    font-size: 16px;
    font-weight: 600;
  }
  .description {
    color: #999;
    font-size: 13px;
  }
  &.user-block-sm {
    img {
      &:extend(.img-sm);
    }
    .username,
    .description,
    .comment {
      margin-left: 40px;
    }
    .username {
      font-size: 14px;
    }
  }
}

//Image sizes
.img-sm,
.img-md,
.img-lg {
  float: left;
}
.img-sm {
  width: 30px!important;
  height: 30px!important;
  + .img-push {
    margin-left: 40px;
  }
}
.img-md {
  width: 60px;
  height: 60px;
  + .img-push {
    margin-left: 70px;
  }
}
.img-lg {
  width: 100px;
  height: 100px;
  + .img-push {
    margin-left: 110px;
  }
}

//General attachemnt block
.attachment-block {
  border: 1px solid @box-border-color;
  padding: 5px;
  margin-bottom: 10px;
  background: #f7f7f7;

  .attachemnt-img {
    max-width: 100px;
    max-height: 100px;
    height: auto;
    float: left;
  }
  .attachment-pushed {
    margin-left: 110px;
  }
  .attachment-heading {
    margin: 0;
  }
  .attachment-text {
    color: #555;
  }
}

A
almasaeed2010 已提交
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485
.connectedSortable {
  min-height: 100px;
}
.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.sort-highlight {
  background: #f4f4f4;
  border: 1px dashed #ddd;
  margin-bottom: 10px;
}
.full-opacity-hover {
  .opacity(.65);
  &:hover {
    .opacity(1);
  }
486 487 488 489 490 491 492 493 494 495
}
// Charts
.chart {
  position: relative;
  overflow: hidden;
  width: 100%;
  svg,
  canvas {
    width: 100%!important;
  }
D
Dennis Neufeld 已提交
496
}