_message.scss 6.8 KB

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