options.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. @import 'variables';
  2. @import 'intlTelInput';
  3. @import 'progress';
  4. .iti-flag {
  5. // override intlTelInput's flags image location
  6. background: url("/images/flags.png");
  7. }
  8. * {
  9. box-sizing: border-box;
  10. }
  11. html,body {
  12. height: 100%;
  13. }
  14. body {
  15. margin: 0;
  16. font-family: $roboto;
  17. position: relative;
  18. background: #2090ea;
  19. color: white;
  20. text-align: center;
  21. font-size: 16px;
  22. overflow: auto;
  23. }
  24. .clearfix:before,
  25. .clearfix:after {
  26. display: table;
  27. content: " ";
  28. }
  29. .clearfix:after {
  30. clear: both;
  31. }
  32. input, button, select, textarea {
  33. font-family: inherit;
  34. font-size: inherit;
  35. line-height: inherit;
  36. }
  37. #install {
  38. display: none;
  39. }
  40. .main {
  41. padding: 70px 0 10em;
  42. }
  43. .step {
  44. display: none;
  45. }
  46. #signal-computer,
  47. #signal-phone {
  48. max-width: 50%;
  49. max-height: 250px;
  50. }
  51. p {
  52. max-width: 35em;
  53. margin: 1em auto;
  54. line-height: 1.5em;
  55. font-size: 1.2em;
  56. font-weight: bold;
  57. }
  58. a {
  59. cursor: pointer;
  60. &, &:visited, &:hover {
  61. text-decoration: none;
  62. }
  63. }
  64. .button {
  65. display: inline-block;
  66. text-transform: uppercase;
  67. border: none;
  68. font-weight: bold;
  69. min-width: 300px;
  70. padding: 0.5em;
  71. margin: 0.5em 0;
  72. background: white;
  73. color: $blue;
  74. }
  75. .nav {
  76. width: 100%;
  77. position: fixed;
  78. bottom: 50px;
  79. margin-top: 2em;
  80. padding: 0 20px;
  81. .button {
  82. margin-bottom: 3em;
  83. }
  84. .dot {
  85. display: inline-block;
  86. cursor: pointer;
  87. margin: 10px;
  88. width: 20px;
  89. height: 20px;
  90. border-radius: 10px;
  91. background: white;
  92. border: solid 5px $blue;
  93. &.selected {
  94. background: $blue_l;
  95. }
  96. }
  97. }
  98. .link {
  99. &:hover, &:focus {
  100. background: rgba(255,255,255,0.3);
  101. outline: none;
  102. }
  103. &, &:visited, &:hover {
  104. padding: 0 3px;
  105. color: white;
  106. font-weight: bold;
  107. border-bottom: dashed 2px white;
  108. text-decoration: none;
  109. }
  110. }
  111. .container {
  112. min-width: 650px;
  113. }
  114. h1 {
  115. font-size: 30pt;
  116. font-weight: normal;
  117. padding-bottom: 10px;
  118. }
  119. #signal-icon {
  120. margin-top: 20px;
  121. }
  122. h3.step {
  123. margin-top: 0;
  124. font-weight: bold;
  125. }
  126. .help {
  127. border-top: 2px solid $grey_l;
  128. padding: 1.5em 0.1em;
  129. }
  130. .install {
  131. display: inline-block;
  132. margin-top: 90px;
  133. }
  134. #qr {
  135. display: inline-block;
  136. min-height: 266px;
  137. img {
  138. border: 5px solid white;
  139. }
  140. canvas {
  141. display: none;
  142. }
  143. }
  144. #device-name {
  145. border: none;
  146. border-bottom: 1px solid white;
  147. padding: 8px;
  148. background: transparent;
  149. color: white;
  150. font-weight: bold;
  151. text-align: center;
  152. &::selection, a::selection {
  153. color: $grey_d;
  154. background: white;
  155. }
  156. &::-moz-selection, a::-moz-selection {
  157. color: $grey_d;
  158. background: white;
  159. }
  160. &:focus {
  161. outline: none;
  162. }
  163. &:hover, &:focus {
  164. background: rgba(255,255,255,0.1);
  165. }
  166. }
  167. #verifyCode,
  168. #code,
  169. #number {
  170. box-sizing: border-box;
  171. width: 100%;
  172. display: block;
  173. margin-bottom: 0.5em;
  174. text-align: center;
  175. }
  176. #request-voice,
  177. #request-sms {
  178. box-sizing: border-box;
  179. }
  180. #request-sms {
  181. width: 57%;
  182. float: right;
  183. }
  184. #request-voice {
  185. width: 40%;
  186. float: left;
  187. }
  188. .number-container {
  189. position: relative;
  190. margin-bottom: 0.5em;
  191. }
  192. .number-container .intl-tel-input,
  193. .number-container .number {
  194. width: 100%;
  195. }
  196. .number-container::after {
  197. visibility: hidden;
  198. content: ' ';
  199. display: inline-block;
  200. border-radius: 1.5em;
  201. width: 1.5em;
  202. height: 1.5em;
  203. line-height: 1.5em;
  204. color: #ffffff;
  205. position: absolute;
  206. top: 0;
  207. left: 100%;
  208. margin: 3px 8px;
  209. text-align: center;
  210. }
  211. .number-container.valid::after {
  212. visibility: visible;
  213. content: '✓';
  214. background-color: #0f9d58;
  215. color: #ffffff;
  216. }
  217. .number-container.invalid::after {
  218. visibility: visible;
  219. content: '!';
  220. background-color: #f44336;
  221. color: #ffffff;
  222. }
  223. #error {
  224. color: white;
  225. font-weight: bold;
  226. padding: 0.5em;
  227. text-align: center;
  228. }
  229. #error { background-color: #f44336; }
  230. #error:before {
  231. content: '\26a0';
  232. padding-right: 0.5em;
  233. }
  234. .narrow {
  235. margin: auto;
  236. box-sizing: border-box;
  237. width: 275px;
  238. max-width: 100%;
  239. }
  240. ul.country-list {
  241. min-width: 197px !important;
  242. }
  243. .confirmation-dialog, .progress-dialog, .error-dialog {
  244. padding: 1em;
  245. text-align: left;
  246. }
  247. .number { text-align: center; }
  248. .confirmation-dialog, .error-dialog {
  249. button {
  250. float: right;
  251. margin-left: 10px;
  252. }
  253. }
  254. .progress-dialog {
  255. text-align: center;
  256. padding: 1em;
  257. max-width: 600px;
  258. margin: auto;
  259. .status { padding: 1em; }
  260. .bar-container {
  261. height: 1em;
  262. background-color: $grey_l;
  263. border: solid 1px white;
  264. }
  265. .bar {
  266. width: 0;
  267. height: 100%;
  268. background-color: $blue_l;
  269. transition: width 0.25s;
  270. &.active {
  271. }
  272. }
  273. }
  274. .error-dialog {
  275. display: none;
  276. }
  277. .modal-container {
  278. display: none;
  279. position: absolute;
  280. width: 100%;
  281. height: 100%;
  282. background: rgba(0,0,0,0.1);
  283. top: 0;
  284. padding-top: 10em;
  285. text-align: center;
  286. .modal-main {
  287. display: inline-block;
  288. width: 80%;
  289. max-width: 500px;
  290. border: solid 2px $blue;
  291. background: white;
  292. margin: 10% auto;
  293. box-shadow: 0 0 5px 3px rgba(darken($blue, 30%), 0.2);
  294. h4 {
  295. background-color: $blue;
  296. color: white;
  297. padding: 1em;
  298. margin: 0;
  299. text-align: left;
  300. }
  301. }
  302. }