_message.scss 6.2 KB

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