_message.scss 6.1 KB

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