summaryrefslogtreecommitdiffstats
path: root/public/css/icinga/modal.less
blob: 3d497d642343b8a74f7840cd5d9b259cad80b52f (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
#layout > #modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;

  background-color: rgba(0, 0, 0, .6);
  opacity: 0;
  font-size: @font-size;
  line-height: @line-height;
  pointer-events: none;
  transition: opacity .2s ease-in; // This is coupled with a `setTimout` in modal.js
  z-index: 1000;

  &.active {
    opacity: 1;
    pointer-events: auto;
  }

  > div {
    height: 100%;
    pointer-events: none;

    display: flex;
    align-items: center;
    justify-content: center;
  }
}

#modal-content {
  display: flex;
  flex: 10;
  flex-direction: column;
  justify-content: stretch;

  > .content {
    padding: 1em;

    > .icinga-form {
      width: 100%;
    }
  }
}

#modal-ghost {
  display: none;
}

.modal-area {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  justify-content: stretch;
}

.modal-header {
  padding: .25em 0;
  position: relative;
  text-align: center;

  > button {
    position: absolute;
    top: .75em;
    right: 1em;

    background-color: @gray;
    border: none;
    border-radius: 50%;
    color: @text-color-inverted;
    height: 1.5em;
    line-height: 1em;
    padding: 0;
    text-align: center;
    width: 1.5em;

    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
  }

  > button:hover {
    opacity: .8;
  }

  > button > .icon-cancel:before {
    margin-right: 0;
  }
}

.modal-header h1 {
  padding: .25em;
  margin: 0;
}

.modal-window {
  overflow: auto;
  pointer-events: auto;

  display: flex;
  align-items: stretch;
  flex-direction: column;

  background-color: @body-bg-color;
  border-radius: .5em;
  box-shadow: 0 0 2em 0 rgba(0, 0, 0, .6);
  flex: 1;
  margin: 0 auto;
  max-height: 80%;
  min-height: 40vh;
  max-width: 60em;
}