_message.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. &:hover { background: white(.02); }
  44. &:active,
  45. &--active { background: black(.1); }
  46. &#basicModal__action {
  47. color: $colorBlue;
  48. box-shadow: inset 0 1px 0 white(.02), inset 1px 0 0 black(.2);
  49. }
  50. &#basicModal__action.red { color: $colorRed; }
  51. &.hidden { display: none; }
  52. }
  53. /* Inputs ------------------------------------------------*/
  54. input.text {
  55. width: calc(100% - 4px);
  56. padding: 9px 2px;
  57. background-color: transparent;
  58. color: #fff;
  59. text-shadow: $shadow;
  60. border: none;
  61. // Do not use rgba() for border-bottom
  62. // to avoid a blurry line in Safari on non-retina screens
  63. border-bottom: 1px solid #222;
  64. border-radius: 0;
  65. box-shadow: 0 1px 0 white(.05);
  66. outline: none;
  67. &:focus { border-bottom-color: $colorBlue; }
  68. &.error { border-bottom-color: $colorRed; }
  69. &:first-child { margin-top: 10px; }
  70. &:last-child { margin-bottom: 10px; }
  71. }
  72. /* Radio Buttons ------------------------------------------------*/
  73. .choice {
  74. padding: 0 30px 15px;
  75. width: calc(100% - 60px);
  76. color: #fff;
  77. &:last-child { padding-bottom: 40px; }
  78. label {
  79. float: left;
  80. color: white(1);
  81. font-size: 14px;
  82. font-weight: 700;
  83. text-shadow: $shadow;
  84. }
  85. label input {
  86. position: absolute;
  87. margin: 0;
  88. opacity: 0;
  89. }
  90. label .checkbox {
  91. float: left;
  92. display: block;
  93. width: 16px;
  94. height: 16px;
  95. background: black(.5);
  96. border-radius: 3px;
  97. box-shadow: 0 0 0 1px black(.7);
  98. .iconic {
  99. box-sizing: border-box;
  100. fill: $colorBlue;
  101. padding: 2px;
  102. opacity: 0;
  103. transform: scale(0);
  104. transition: opacity .2s $timing, transform .2s $timing;
  105. }
  106. }
  107. /* Checked */
  108. label input:checked ~ .checkbox {
  109. background: black(.5);
  110. .iconic {
  111. opacity: 1;
  112. transform: scale(1);
  113. }
  114. }
  115. /* Active */
  116. label input:active ~ .checkbox {
  117. background: black(.3);
  118. .iconic { opacity: .8; }
  119. }
  120. label .label { margin: 0 0 0 18px; }
  121. p {
  122. clear: both;
  123. padding: 2px 0 0 35px;
  124. margin: 0;
  125. width: calc(100% - 35px);
  126. color: white(.6);
  127. font-size: 13px;
  128. }
  129. input.text {
  130. display: none;
  131. margin-top: 5px;
  132. margin-left: 35px;
  133. width: calc(100% - 39px);
  134. }
  135. }
  136. /* Version ------------------------------------------------*/
  137. .version {
  138. padding: 0px 30px 20px;
  139. color: #888;
  140. font-size: 12px;
  141. text-align: left;
  142. span { display: none; }
  143. span a { color: #888; }
  144. }
  145. /* Title ------------------------------------------------*/
  146. h1 {
  147. float: left;
  148. width: 100%;
  149. padding: 12px 0;
  150. color: #fff;
  151. font-size: 16px;
  152. font-weight: bold;
  153. text-shadow: $shadow;
  154. text-align: center;
  155. }
  156. /* Rows ------------------------------------------------*/
  157. .rows {
  158. margin: 0 8px 8px;
  159. width: calc(100% - 16px);
  160. height: 300px;
  161. background-color: black(.4);
  162. overflow: hidden;
  163. overflow-y: scroll;
  164. border-radius: 3px;
  165. box-shadow: inset 0 0 3px black(.4);
  166. }
  167. /* Row ------------------------------------------------*/
  168. .rows .row {
  169. float: left;
  170. padding: 8px 0;
  171. width: 100%;
  172. background-color: white(.02);
  173. &:nth-child(2n) { background-color: white(0); }
  174. a.name {
  175. float: left;
  176. padding: 5px 10px;
  177. width: calc(70% - 20px);
  178. color: #fff;
  179. font-size: 14px;
  180. white-space: nowrap;
  181. overflow: hidden;
  182. }
  183. a.status {
  184. float: left;
  185. padding: 5px 10px;
  186. width: calc(30% - 20px);
  187. color: white(.5);
  188. font-size: 14px;
  189. text-align: right;
  190. animation-name: pulse;
  191. animation-duration: 2s;
  192. animation-timing-function: ease-in-out;
  193. animation-iteration-count: infinite;
  194. &.error,
  195. &.success { animation: none; }
  196. &.error { color: rgb(213, 24, 24); }
  197. &.success { color: rgb(42, 213, 0); }
  198. }
  199. p.notice {
  200. display: none;
  201. float: left;
  202. padding: 2px 10px 5px;
  203. width: calc(100% - 20px);
  204. color: white(.5);
  205. font-size: 12px;
  206. overflow: hidden;
  207. line-height: 16px;
  208. }
  209. }
  210. }