aboutsummaryrefslogtreecommitdiffstats
path: root/scss/pysite/pages/staff/_common.scss
blob: 725f41972e045ba144d1bcefdc21a24898ff68e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
76
77
78
79
@import "variables";

$quote_colour: #99AAB5;
$sidebar_button_border_colour: rgba(0, 0, 0, .11);

$page_classes: (
  blueprint-staff,  // All wiki pages
);

@each $class in $page_classes {
  .#{$class} {
    .approval-card {
      border: 1px solid $global_border;
      padding: 0;

      h2 {
        margin-bottom: 0;
        vertical-align: central;
      }

      .expand-icon {
        display: none;
      }

      .contract-icon {
        display: inline-block;
      }

      .uk-button {
        padding-left: 10px;
        padding-right: 10px;
      }

      .uk-card-body {
        border-top: 1px solid $global_border;
        padding-top: 20px;
      }

      .status-icon.fa-check {
        color: $success_colour;
      }

      .status-icon.fa-times {
        color: $danger_colour;
      }

      .approved {
        .status-icon.fa-times {
          display: none;
        }
      }

      .unapproved {
        .status-icon.fa-check {
          display: none;
        }
      }

      &.collapsed {
        .expand-icon {
          display: inline-block;
        }

        .contract-icon {
          display: none;
        }

        .uk-card-header {
          border-bottom: 0;
        }

        .uk-card-body {
          display: none;
          visibility: hidden;
        }
      }
    }
  }
}