modal.css 2.8 KB
Newer Older
A
Asher 已提交
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
.modal-bar {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  pointer-events: none;
  top: 0;
  width: 100%;
  z-index: 30;
}

.animate > .modal-bar {
  transform: translateY(-100%);
  transition: transform 200ms;
}

.animate.-show > .modal-bar {
  transform: translateY(0);
}

.modal-bar > .bar {
  background-color: #fcfcfc;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  color: #101010;
  display: flex;
  font-size: 0.8em;
  max-width: 400px;
  padding: 20px;
  pointer-events: initial;
  position: relative;
}

.modal-bar > .bar > .content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding-right: 20px;
}

.modal-bar > .bar > .open {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-bar > .bar > .close {
  background-color: transparent;
  border: none;
  color: #b6b6b6;
  cursor: pointer;
  position: absolute;
  right: 1px;
  top: 1px;
}

.modal-bar > .bar > .open > .button {
  background-color: transparent;
  border-radius: 5px;
  border: 1px solid #101010;
  color: #101010;
  cursor: pointer;
  padding: 1em;
}

.modal-bar > .bar > .open > .button:hover {
  background-color: #bcc6fa;
}

.modal-container {
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999999;
}

.modal-container > .modal {
  background: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  height: 100%;
  max-height: 400px;
  max-width: 664px;
  padding: 20px 0;
  position: relative;
  width: 100%;
}

A
Asher 已提交
103
.sidebar-nav {
A
Asher 已提交
104 105 106
  display: flex;
  flex-direction: column;
  justify-content: space-between;
A
Asher 已提交
107
  min-width: 145px;
A
Asher 已提交
108 109
}

A
Asher 已提交
110
.sidebar-nav > .links {
A
Asher 已提交
111 112 113 114
  display: flex;
  flex-direction: column;
}

A
Asher 已提交
115 116 117 118
.sidebar-nav > .links > .link {
  background-color: transparent;
  border: none;
  cursor: pointer;
A
Asher 已提交
119 120 121 122 123 124 125 126 127
  color: rgba(0, 0, 0, 0.37);
  font-size: 1.4em;
  height: 31px;
  margin-bottom: 20px;
  padding: 0 35px;
  text-decoration: none;
  transition: 150ms color ease, 150ms height ease, 150ms margin-bottom ease;
}

A
Asher 已提交
128
.sidebar-nav > .footer > .close {
A
Asher 已提交
129 130 131 132 133 134 135
  background: transparent;
  border: none;
  color: #b6b6b6;
  cursor: pointer;
  width: 100%;
}

A
Asher 已提交
136 137 138
.sidebar-nav > .links > .link[aria-current="page"],
.sidebar-nav > .links > .link:hover,
.sidebar-nav > .footer > .close:hover {
A
Asher 已提交
139 140 141 142 143 144 145 146 147 148
  color: #000;
}

.modal-container > .modal > .content {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: auto;
  padding: 0 20px;
}
A
Asher 已提交
149 150 151 152

.modal-container > .modal > .sidebar-nav {
  border-right: 1.5px solid rgba(0, 0, 0, 0.37);
}