_message.scss 6.0 KB

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