_message.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. /* Version ------------------------------------------------*/
  141. .version {
  142. margin: -5px 0 0;
  143. padding: 0 30px 30px !important;
  144. color: white(.3);
  145. font-size: 12px;
  146. text-align: right;
  147. span { display: none; }
  148. span a { color: white(.3); }
  149. }
  150. /* Title ------------------------------------------------*/
  151. h1 {
  152. float: left;
  153. width: 100%;
  154. padding: 12px 0;
  155. color: #fff;
  156. font-size: 16px;
  157. font-weight: bold;
  158. text-shadow: $shadow;
  159. text-align: center;
  160. }
  161. /* Rows ------------------------------------------------*/
  162. .rows {
  163. margin: 0 8px 8px;
  164. width: calc(100% - 16px);
  165. height: 300px;
  166. background-color: black(.4);
  167. overflow: hidden;
  168. overflow-y: scroll;
  169. border-radius: 3px;
  170. box-shadow: inset 0 0 3px black(.4);
  171. }
  172. /* Row ------------------------------------------------*/
  173. .rows .row {
  174. float: left;
  175. padding: 8px 0;
  176. width: 100%;
  177. background-color: white(.02);
  178. &:nth-child(2n) { background-color: white(0); }
  179. a.name {
  180. float: left;
  181. padding: 5px 10px;
  182. width: calc(70% - 20px);
  183. color: #fff;
  184. font-size: 14px;
  185. white-space: nowrap;
  186. overflow: hidden;
  187. }
  188. a.status {
  189. float: left;
  190. padding: 5px 10px;
  191. width: calc(30% - 20px);
  192. color: white(.5);
  193. font-size: 14px;
  194. text-align: right;
  195. animation-name: pulse;
  196. animation-duration: 2s;
  197. animation-timing-function: ease-in-out;
  198. animation-iteration-count: infinite;
  199. &.error,
  200. &.success { animation: none; }
  201. &.error { color: rgb(213, 24, 24); }
  202. &.success { color: rgb(42, 213, 0); }
  203. }
  204. p.notice {
  205. display: none;
  206. float: left;
  207. padding: 2px 10px 5px;
  208. width: calc(100% - 20px);
  209. color: white(.5);
  210. font-size: 12px;
  211. overflow: hidden;
  212. line-height: 16px;
  213. }
  214. }
  215. }