_message.scss 6.1 KB

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