_message.scss 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. /**
  2. * @copyright 2014 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. &.less { padding-bottom: 30px; }
  30. &:first-of-type { padding-top: 42px; }
  31. &:last-of-type { padding-bottom: 40px; }
  32. &.signIn:first-of-type { padding-top: 30px; }
  33. &.signIn:last-of-type { 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. }
  52. /* Inputs ------------------------------------------------*/
  53. input.text {
  54. width: calc(100% - 4px);
  55. padding: 9px 2px;
  56. background-color: transparent;
  57. color: #fff;
  58. text-shadow: $shadow;
  59. border: none;
  60. // Do not use rgba() for border-bottom
  61. // to avoid a blurry line in Safari on non-retina screens
  62. border-bottom: 1px solid #222;
  63. border-radius: 0;
  64. box-shadow: 0 1px 0 white(.05);
  65. outline: none;
  66. &:focus { border-bottom-color: $colorBlue; }
  67. &.error { border-bottom-color: $colorRed; }
  68. &:first-child { margin-top: 10px; }
  69. &:last-child { margin-bottom: 10px; }
  70. }
  71. /* Radio Buttons ------------------------------------------------*/
  72. .choice {
  73. padding: 0 30px 15px;
  74. width: calc(100% - 60px);
  75. color: #fff;
  76. &:last-child { padding-bottom: 40px; }
  77. label {
  78. float: left;
  79. color: white(1);
  80. font-size: 14px;
  81. font-weight: 700;
  82. text-shadow: $shadow;
  83. }
  84. label input {
  85. position: absolute;
  86. margin: 0;
  87. opacity: 0;
  88. }
  89. label .checkbox {
  90. float: left;
  91. display: block;
  92. width: 16px;
  93. height: 16px;
  94. background: black(.5);
  95. border-radius: 3px;
  96. box-shadow: 0 0 0 1px black(.7);
  97. .iconic {
  98. box-sizing: border-box;
  99. fill: $colorBlue;
  100. padding: 2px;
  101. opacity: 0;
  102. transform: scale(0);
  103. transition: opacity .2s $timing, transform .2s $timing;
  104. }
  105. }
  106. /* Checked */
  107. label input:checked ~ .checkbox {
  108. background: black(.5);
  109. .iconic {
  110. opacity: 1;
  111. transform: scale(1);
  112. }
  113. }
  114. /* Active */
  115. label input:active ~ .checkbox {
  116. background: black(.3);
  117. .iconic { opacity: .8; }
  118. }
  119. label .label { margin: 0 0 0 18px; }
  120. p {
  121. clear: both;
  122. padding: 2px 0 0 35px;
  123. margin: 0;
  124. width: calc(100% - 35px);
  125. color: white(.6);
  126. font-size: 13px;
  127. }
  128. input.text {
  129. display: none;
  130. margin-top: 5px;
  131. margin-left: 35px;
  132. width: calc(100% - 39px);
  133. }
  134. }
  135. /* Version ------------------------------------------------*/
  136. .version {
  137. padding: 0px 30px 20px;
  138. color: #888;
  139. font-size: 12px;
  140. text-align: left;
  141. span { display: none; }
  142. span a { color: #888; }
  143. }
  144. }
  145. .message_overlay {
  146. position: fixed;
  147. width: 100%;
  148. height: 100%;
  149. top: 0;
  150. left: 0;
  151. background-color: black(.85);
  152. z-index: 1000;
  153. }
  154. .message {
  155. position: absolute;
  156. display: inline-block;
  157. width: 500px;
  158. margin-left: -250px;
  159. margin-top: -95px;
  160. background-image: linear-gradient(to bottom, rgb(75, 75, 75), rgb(45, 45, 45));
  161. border-radius: 5px;
  162. box-shadow: 0 0 5px black(1), inset 0 1px 0 white(.08);
  163. /* Animation */
  164. animation-name: moveUp;
  165. animation-duration: .3s;
  166. animation-timing-function: $timingBounce;
  167. /* Header ------------------------------------------------*/
  168. h1 {
  169. float: left;
  170. width: 100%;
  171. padding: 12px 0;
  172. color: #fff;
  173. font-size: 16px;
  174. font-weight: bold;
  175. text-shadow: 0 -1px 0 black(.3);
  176. text-align: center;
  177. }
  178. .close {
  179. position: absolute;
  180. top: 0;
  181. right: 0;
  182. padding: 12px 14px 6px 7px;
  183. color: #aaa;
  184. font-size: 20px;
  185. text-shadow: 0 -1px 0 black(.3);
  186. cursor: pointer;
  187. &:hover { color: white(1); }
  188. }
  189. /* Text ------------------------------------------------*/
  190. p {
  191. float: left;
  192. width: 90%;
  193. margin-top: 1px;
  194. padding: 12px 5% 15px 5%;
  195. color: #eee;
  196. font-size: 14px;
  197. text-shadow: 0 -1px 0 black(.3);
  198. line-height: 20px;
  199. b {
  200. font-weight: bold;
  201. color: white(1);
  202. }
  203. a {
  204. color: #eee;
  205. text-decoration: none;
  206. border-bottom: 1px dashed #888;
  207. }
  208. }
  209. /* Button ------------------------------------------------*/
  210. .button {
  211. float: right;
  212. margin: 15px 15px 15px 0;
  213. padding: 7px 10px 8px 10px;
  214. color: #ccc;
  215. font-size: 14px;
  216. font-weight: bold;
  217. text-align: center;
  218. text-shadow: 0 -1px 0 black(.3);
  219. border-radius: 5px;
  220. border: 1px solid black(.4);
  221. box-shadow: inset 0 1px 0 white(.08), 0 1px 0 white(.05);
  222. cursor: pointer;
  223. &:first-of-type { margin: 15px 5% 18px 0; }
  224. &.active {
  225. color: #fff;
  226. box-shadow: inset 0 1px 0 white(.08), 0 1px 0 white(.1), 0 0 4px #005ecc;
  227. }
  228. &:hover { background-image: linear-gradient(to bottom, rgb(60, 60, 60), rgb(57, 57, 57)); }
  229. &:active,
  230. &.pressed { background-image: linear-gradient(to bottom, rgb(57, 57, 57), rgb(60, 60, 60)); }
  231. }
  232. /* Input ------------------------------------------------*/
  233. input.text {
  234. float: left;
  235. width: calc(100% - 10px);
  236. padding: 17px 5px 9px 5px;
  237. margin-top: 10px;
  238. background-color: transparent;
  239. color: #fff;
  240. text-shadow: $shadow;
  241. border: none;
  242. box-shadow: 0 1px 0 white(.1);
  243. border-bottom: 1px solid #222;
  244. border-radius: 0px;
  245. outline: none;
  246. }
  247. input.less { margin-bottom: -10px; }
  248. input.more { margin-bottom: 30px; }
  249. .copylink { margin-bottom: 20px; }
  250. /* Radio Buttons ------------------------------------------------*/
  251. .choice {
  252. float: left;
  253. margin: 12px 5%;
  254. width: 90%;
  255. color: #fff;
  256. input { float: left; }
  257. h2 {
  258. float: left;
  259. margin: 1px 0 0 8px;
  260. color: #fff;
  261. font-size: 14px;
  262. font-weight: 700;
  263. text-shadow: 0 -1px 0 black(.3);
  264. }
  265. p {
  266. margin-top: 2px;
  267. padding: 0 5% 0 25px;
  268. color: #aaa;
  269. font-size: 13px;
  270. }
  271. p input {
  272. width: 100%;
  273. padding: 10px 1px 9px;
  274. margin-top: 10px;
  275. }
  276. }
  277. /* Version ------------------------------------------------*/
  278. #version {
  279. display: inline-block;
  280. margin-top: 23px;
  281. margin-left: 5%;
  282. color: #888;
  283. text-shadow: 0 -1px 0 black(.3);
  284. span { display: none; }
  285. span a { color: #888; }
  286. }
  287. }
  288. /* Sign in ------------------------------------------------*/
  289. .sign_in {
  290. float: left;
  291. width: 100%;
  292. margin-top: 1px;
  293. padding: 5px 0;
  294. color: #eee;
  295. font-size: 14px;
  296. text-shadow: 0 -1px 0 black(.3);
  297. line-height: 20px;
  298. /* Input ------------------------------------------------*/
  299. input {
  300. float: left;
  301. width: 88%;
  302. padding: 7px 1% 9px 1%;
  303. margin: 0 5%;
  304. background-color: transparent;
  305. color: #fff;
  306. text-shadow: 0 -1px 0 #222;
  307. border: none;
  308. border-bottom: 1px solid #222;
  309. box-shadow: 0 1px 0 white(.1);
  310. border-radius: 0;
  311. outline: none;
  312. &:first-of-type { margin-bottom: 10px; }
  313. &.error:focus { box-shadow: 0 1px 0 rgba(204, 0, 7, .6); }
  314. }
  315. }