_message.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. .basicModalContainer {
  2. background-color: black(.85);
  3. }
  4. .basicModal {
  5. background: linear-gradient(to bottom, #444, #333);
  6. box-shadow: 0 1px 4px black(.2), inset 0 1px 0 white(.05);
  7. // Reset -------------------------------------------------------------- //
  8. &__content {
  9. padding: 0;
  10. }
  11. &__content p {
  12. margin: 0;
  13. }
  14. &__buttons {
  15. box-shadow: none;
  16. }
  17. // Text -------------------------------------------------------------- //
  18. p {
  19. padding: 10px 30px;
  20. color: white(.9);
  21. font-size: 14px;
  22. text-align: left;
  23. line-height: 20px;
  24. b {
  25. font-weight: bold;
  26. color: white(1);
  27. }
  28. a {
  29. color: white(.9);
  30. text-decoration: none;
  31. border-bottom: 1px dashed #888;
  32. }
  33. &:first-of-type { padding-top: 42px; }
  34. &:last-of-type { padding-bottom: 40px; }
  35. &.signIn:first-of-type { padding-top: 30px; }
  36. &.signIn:last-of-type { padding-bottom: 30px; }
  37. &.less { padding-bottom: 30px; }
  38. }
  39. // Buttons -------------------------------------------------------------- //
  40. &__button {
  41. padding: 13px 0 15px;
  42. background: black(.02);
  43. color: white(.5);
  44. border-top: 1px solid black(.2);
  45. box-shadow: inset 0 1px 0 white(.02);
  46. cursor: default;
  47. &:hover { background: white(.02); }
  48. &:active,
  49. &--active {
  50. transition: none;
  51. background: black(.1);
  52. }
  53. &#basicModal__action {
  54. color: $colorBlue;
  55. box-shadow: inset 0 1px 0 white(.02), inset 1px 0 0 black(.2);
  56. }
  57. &#basicModal__action.red { color: $colorRed; }
  58. &.hidden { display: none; }
  59. }
  60. // Inputs -------------------------------------------------------------- //
  61. input.text {
  62. padding: 9px 2px;
  63. width: 100%;
  64. background-color: transparent;
  65. color: #fff;
  66. border: none;
  67. // Do not use rgba() for border-bottom
  68. // to avoid a blurry line in Safari on non-retina screens
  69. border-bottom: 1px solid #222;
  70. border-radius: 0;
  71. box-shadow: 0 1px 0 white(.05);
  72. outline: none;
  73. &:focus { border-bottom-color: $colorBlue; }
  74. &.error { border-bottom-color: $colorRed; }
  75. &:first-child { margin-top: 10px; }
  76. &:last-child { margin-bottom: 10px; }
  77. }
  78. // Radio Buttons ----------------------------------------------------------- //
  79. .choice {
  80. padding: 0 30px 15px;
  81. width: 100%;
  82. color: #fff;
  83. &:last-child { padding-bottom: 40px; }
  84. label {
  85. float: left;
  86. color: white(1);
  87. font-size: 14px;
  88. font-weight: 700;
  89. }
  90. label input {
  91. position: absolute;
  92. margin: 0;
  93. opacity: 0;
  94. }
  95. label .checkbox {
  96. float: left;
  97. display: block;
  98. width: 16px;
  99. height: 16px;
  100. background: black(.5);
  101. border-radius: 3px;
  102. box-shadow: 0 0 0 1px black(.7);
  103. .iconic {
  104. box-sizing: border-box;
  105. fill: $colorBlue;
  106. padding: 2px;
  107. opacity: 0;
  108. transform: scale(0);
  109. transition: opacity .2s $timing, transform .2s $timing;
  110. }
  111. }
  112. // Checked
  113. label input:checked ~ .checkbox {
  114. background: black(.5);
  115. .iconic {
  116. opacity: 1;
  117. transform: scale(1);
  118. }
  119. }
  120. // Active
  121. label input:active ~ .checkbox {
  122. background: black(.3);
  123. .iconic { opacity: .8; }
  124. }
  125. label .label { margin: 0 0 0 18px; }
  126. p {
  127. clear: both;
  128. padding: 2px 0 0 35px;
  129. margin: 0;
  130. width: 100%;
  131. color: white(.6);
  132. font-size: 13px;
  133. }
  134. input.text {
  135. display: none;
  136. margin-top: 5px;
  137. margin-left: 35px;
  138. width: calc(100% - 35px);
  139. }
  140. }
  141. // Select -------------------------------------------------------------- //
  142. .select {
  143. display: inline-block;
  144. position: relative;
  145. margin: 1px 5px;
  146. padding: 0;
  147. width: 110px;
  148. background: black(.3);
  149. color: #fff;
  150. border-radius: 3px;
  151. border: 1px solid black(.2);
  152. box-shadow: 0 1px 0 white(.02);
  153. font-size: 11px;
  154. line-height: 16px;
  155. overflow: hidden;
  156. outline: 0;
  157. vertical-align: middle;
  158. &::after {
  159. position: absolute;
  160. content: '≡';
  161. right: 8px;
  162. top: 4px;
  163. color: $colorBlue;
  164. font-size: 16px;
  165. line-height: 16px;
  166. font-weight: bold;
  167. pointer-events: none;
  168. }
  169. select {
  170. margin: 0;
  171. padding: 4px 8px;
  172. width: 120%;
  173. color: #fff;
  174. font-size: 11px;
  175. line-height: 16px;
  176. border: 0;
  177. outline: 0;
  178. box-shadow: none;
  179. border-radius: 0;
  180. background-color: transparent;
  181. background-image: none;
  182. -moz-appearance: none;
  183. -webkit-appearance: none;
  184. appearance: none;
  185. &:focus { outline: none; }
  186. }
  187. select option {
  188. margin: 0;
  189. padding: 0;
  190. background: #fff;
  191. color: #333;
  192. transition: none;
  193. }
  194. }
  195. // Version -------------------------------------------------------------- //
  196. .version {
  197. margin: -5px 0 0;
  198. padding: 0 30px 30px !important;
  199. color: white(.3);
  200. font-size: 12px;
  201. text-align: right;
  202. span { display: none; }
  203. span a { color: white(.3); }
  204. }
  205. // Title -------------------------------------------------------------- //
  206. h1 {
  207. float: left;
  208. width: 100%;
  209. padding: 12px 0;
  210. color: #fff;
  211. font-size: 16px;
  212. font-weight: bold;
  213. text-align: center;
  214. }
  215. // Rows -------------------------------------------------------------- //
  216. .rows {
  217. margin: 0 8px 8px;
  218. width: calc(100% - 16px);
  219. height: 300px;
  220. background-color: black(.4);
  221. overflow: hidden;
  222. overflow-y: auto;
  223. border-radius: 3px;
  224. box-shadow: inset 0 0 3px black(.4);
  225. }
  226. // Row -------------------------------------------------------------- //
  227. .rows .row {
  228. float: left;
  229. padding: 8px 0;
  230. width: 100%;
  231. background-color: white(.02);
  232. &:nth-child(2n) { background-color: white(0); }
  233. a.name {
  234. float: left;
  235. padding: 5px 10px;
  236. width: 70%;
  237. color: #fff;
  238. font-size: 14px;
  239. white-space: nowrap;
  240. overflow: hidden;
  241. }
  242. a.status {
  243. float: left;
  244. padding: 5px 10px;
  245. width: 30%;
  246. color: white(.5);
  247. font-size: 14px;
  248. text-align: right;
  249. animation-name: pulse;
  250. animation-duration: 2s;
  251. animation-timing-function: ease-in-out;
  252. animation-iteration-count: infinite;
  253. &.error,
  254. &.warning,
  255. &.success { animation: none; }
  256. &.error { color: rgb(233, 42, 0); }
  257. &.warning { color: rgb(228, 233, 0); }
  258. &.success { color: rgb(126, 233, 0); }
  259. }
  260. p.notice {
  261. display: none;
  262. float: left;
  263. padding: 2px 10px 5px;
  264. width: 100%;
  265. color: white(.5);
  266. font-size: 12px;
  267. overflow: hidden;
  268. line-height: 16px;
  269. }
  270. }
  271. }