summaryrefslogtreecommitdiffstats
path: root/app/common/styles/elements/modals.scss
blob: 1a8b71ff9c50c40ac033fdda2f62e18ff8ae5392 (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
.modal-overlay {
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.modal-overlay.active{
  z-index: 100;
  opacity: .5;
  display: block;
  @include fastTransition-all;
}

.modal {
  width: auto;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  max-width: 850px;
  min-width: 450px;
  padding: .8em 1.5em;
  border: thin #000 solid;
  background-color :#fff;
  z-index: 101;
  position: fixed;
  overflow: hidden;
  @include fastTransition-all;
  @include mediaQuery(medium) {
    padding: 2.5em;
  }
}

.modal.active{
  @include fastTransition-all;
  display: block;
}

.modal .page-header {
  padding-bottom: .7em;
}

.screen-reader-offscreen {
  position: absolute;
  left: -999px;
  width: 1px;
  height: 1px;
  top: auto;
}
.modal__content {
  border-bottom: 1px solid $lightbg__grey;
  padding-bottom: 1em;
  margin-bottom: 2em;
}
.modal__link {
  display: block;
  margin: .8em 0 1em;
  @include mediaQuery(medium) {
    display: inline-block;
    margin: .6em 0;
  }
}
.modal__button-wrapper {
  float: right;
  button {
    margin-bottom: .8em;
    margin-right: .8em;
    display: inline-block;
    @include mediaQuery(medium) {
      margin-left: .8em;
      margin-right: 0;
    }
  }
}
OpenPOWER on IntegriCloud