summaryrefslogtreecommitdiff
path: root/src/components/simulations/SimulationAuthList.sass
blob: 586834464904eb17f0ec98f08adcc7d1b9be7c8a (plain)
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
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
@import ../../style-globals/_mixins.sass
@import ../../style-globals/_variables.sass

.simulation-list
  display: block
  font-size: 12pt
  border: 0

  .list-head, .list-body .simulation-row
    display: block
    position: relative

  .list-head div, .list-body .simulation-row div
    padding: 0 10px
    display: inline-block

  .list-head
    font-weight: bold

    // Address default margin between inline-blocks
    div
      margin-right: -4px

.simulation-row
  background: #f8f8f8
  border: 1px solid #b6b6b6
  height: 40px
  line-height: 40px
  clear: both

.simulation-row:not(:first-of-type)
  margin-top: -1px

// Sizing of table columns
.simulation-row, .simulation-list .list-head
  div:first-of-type
    width: 40%

  div:nth-of-type(2)
    width: 20%

  div:nth-of-type(3)
    width: 20%

  div:last-of-type
    width: 20%

    span
      margin-right: 10px

.simulation-row > div:not(:first-of-type)
  padding-left: 0 !important

.simulation-list .list-head > div:not(:first-of-type)
  padding-left: 5px !important

.simulation-row .simulation-icons
  text-align: right

.simulation-row .simulation-icons div, .simulation-row .simulation-icons a
  display: inline-block
  position: relative
  top: 4px
  width: 30px
  height: 30px
  margin-right: 5px
  font-size: 12pt
  color: white
  +border-radius(100%)
  +clickable
  +transition(background, $transition-length)

  span
    position: relative
    top: -4px
    left: -1px

  &.open
    $icon-color: #0c60bf
    background: $icon-color

    span
      left: 1px

    &:hover
      background: lighten($icon-color, 10%)

    &:active
      background: darken($icon-color, 10%)

  &.users
    font-size: 10pt
    $icon-color: #17bf55
    background: $icon-color

    span
      left: -2px

    &:hover
      background: lighten($icon-color, 10%)

    &:active
      background: darken($icon-color, 10%)

  &.delete
    $icon-color: #e3474d
    background: $icon-color

    &:hover
      background: lighten($icon-color, 10%)

    &:active
      background: darken($icon-color, 10%)