controls.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. .btn {
  2. position: relative;
  3. display: block;
  4. padding: 14px;
  5. overflow: hidden;
  6. border-width: 0;
  7. outline: none;
  8. box-shadow: var(--level1-shadow);
  9. background-color: var(--primary-color);
  10. color: var(--secondary-text-color);
  11. font-size: var(--normal-text-size);
  12. font-weight: bold;
  13. text-align: center;
  14. transition: background-color .3s;
  15. -webkit-touch-callout: none;
  16. -webkit-user-select: none;
  17. -khtml-user-select: none;
  18. -moz-user-select: none;
  19. -ms-user-select: none;
  20. user-select: none;
  21. }
  22. .btn:hover, .btn:focus {
  23. background-color: var(--primary-dark-color);
  24. cursor: pointer;
  25. }
  26. .btn > * {
  27. position: relative;
  28. }
  29. .btn span {
  30. display: block;
  31. padding: 12px 24px;
  32. }
  33. .btn:before {
  34. content: "";
  35. position: absolute;
  36. top: 50%;
  37. left: 50%;
  38. display: block;
  39. width: 0;
  40. padding-top: 0;
  41. border-radius: 100%;
  42. background-color: rgba(236, 240, 241, .3);
  43. -webkit-transform: translate(-50%, -50%);
  44. -moz-transform: translate(-50%, -50%);
  45. -ms-transform: translate(-50%, -50%);
  46. -o-transform: translate(-50%, -50%);
  47. transform: translate(-50%, -50%);
  48. }
  49. .btn:active:before {
  50. width: 120%;
  51. padding-top: 120%;
  52. transition: width .2s ease-out, padding-top .2s ease-out;
  53. }
  54. .btn img {
  55. margin-left: auto;
  56. margin-right: auto;
  57. display: block;
  58. }
  59. .btn.disabled {
  60. background-color: var(--inactive-color);
  61. }
  62. /* faders */
  63. .fadeOut {
  64. background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, var(--bg-color) 100%); /* FF3.6+ */
  65. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0, 0, 0,0)), color-stop(100%,var(--bg-color))); /* Chrome,Safari4+ */
  66. background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, var(--bg-color) 100%); /* Chrome10+,Safari5.1+ */
  67. background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, var(--bg-color) 100%); /* Opera 11.10+ */
  68. background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0%, var(--bg-color) 100%); /* IE10+ */
  69. background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bg-color) 100%); /* W3C */
  70. }
  71. .fadeIn {
  72. background: -moz-linear-gradient(top, var(--bg-color) 0%, rgba(0, 0, 0, 0) 100%); /* FF3.6+ */
  73. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, var(--bg-color)), color-stop(100%,rgba(0, 0, 0, 0))); /* Chrome,Safari4+ */
  74. background: -webkit-linear-gradient(top, var(--bg-color) 0%, rgba(0, 0, 0, 0) 100%); /* Chrome10+,Safari5.1+ */
  75. background: -o-linear-gradient(top, var(--bg-color) 0%, rgba(0, 0, 0, 0) 100%); /* Opera 11.10+ */
  76. background: -ms-linear-gradient(top, var(--bg-color) 0%, rgba(0, 0, 0, 0) 100%); /* IE10+ */
  77. background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(0, 0, 0, 0) 100%); /* W3C */
  78. }
  79. /*Input fields*/
  80. .inpt {
  81. position:relative;
  82. margin-top: 20px;
  83. margin-bottom: 50px;
  84. }
  85. .inpt input {
  86. font-size: var(--big-text-size);
  87. padding: 11px 9px 9px;
  88. display: block;
  89. width: 300px;
  90. border: none;
  91. border-bottom: 1px solid var(--primary-color);
  92. }
  93. .inpt input:invalid {
  94. outline: none;
  95. }
  96. .inpt input:focus {
  97. outline: none;
  98. }
  99. .inpt input:required {
  100. box-shadow: none;
  101. }
  102. .inpt label {
  103. color: var(--primary-text-color);
  104. font-size: var(--huge-text-size);
  105. font-weight: normal;
  106. position: absolute;
  107. pointer-events: none;
  108. left: 5px;
  109. top: 10px;
  110. transition: 0.2s ease all;
  111. -moz-transition: 0.2s ease all;
  112. -webkit-transition: 0.2s ease all;
  113. }
  114. .inpt img {
  115. position: absolute;
  116. right: 10px;
  117. top: 14px;
  118. display: block;
  119. width: 24px;
  120. height: 24px;
  121. }
  122. .inpt img:hover {
  123. cursor: pointer;
  124. }
  125. .inpt input:focus ~ label {
  126. top: -25px;
  127. font-size: var(--normal-text-size);
  128. color: var(--primary-text-color);
  129. }
  130. .inpt input:valid ~ label {
  131. top: -25px;
  132. font-size: var(--normal-text-size);
  133. color: var(--primary-text-color);
  134. }
  135. .inpt .bar {
  136. position: relative;
  137. display: block;
  138. width: 100%;
  139. }
  140. .inpt.bad .bar:before, .inpt.bad .bar:after{
  141. background-color: var(--bad-color);
  142. }
  143. .inpt.weak .bar:before, .inpt.weak .bar:after{
  144. background-color: var(--invalid-color);
  145. }
  146. .inpt .bar:before, .bar:after {
  147. content: '';
  148. height: 2px;
  149. width: 0;
  150. bottom: 0;
  151. position: absolute;
  152. background-color: var(--primary-color);
  153. transition: 0.2s ease all;
  154. -moz-transition: 0.2s ease all;
  155. -webkit-transition: 0.2s ease all;
  156. }
  157. .inpt .bar:before {
  158. left:50%;
  159. }
  160. .inpt .bar:after {
  161. right:50%;
  162. }
  163. .inpt input:focus ~ .bar:before, input:focus ~ .bar:after {
  164. width:50%;
  165. }
  166. .inpt .highlight {
  167. position: absolute;
  168. height:80%;
  169. width: 100%;
  170. bottom: 4px;
  171. left:0;
  172. pointer-events: none;
  173. opacity: 0.5;
  174. }
  175. .inpt input:focus ~ .highlight {
  176. -webkit-animation:inputHighlighter 0.3s ease;
  177. -moz-animation:inputHighlighter 0.3s ease;
  178. animation:inputHighlighter 0.3s ease;
  179. }
  180. .inpt.bad input{
  181. border-bottom: 1px solid var(--bad-color);
  182. }
  183. .inpt.weak input{
  184. border-bottom: 1px solid var(--invalid-color);
  185. }
  186. @-webkit-keyframes inputHighlighter {
  187. from { background: var(--secondary-color); }
  188. to { width:0; background:transparent; }
  189. }
  190. @-moz-keyframes inputHighlighter {
  191. from { background: var(--secondary-color); }
  192. to { width:0; background:transparent; }
  193. }
  194. @keyframes inputHighlighter {
  195. from { background: var(--secondary-color); }
  196. to { width:0; background:transparent; }
  197. }
  198. /*folder button*/
  199. .folderBtn {
  200. display: flex;
  201. flex-direction: row;
  202. padding: 2px var(--base-text-padding);
  203. left: 0;
  204. right: 0;
  205. margin-top: 2px;
  206. border-radius: var(--default-radius);
  207. background-color: transparent;
  208. font-size: var(--normal-text-size);
  209. text-shadow: var(--text-shadow);
  210. -webkit-touch-callout: none;
  211. -webkit-user-select: none;
  212. -khtml-user-select: none;
  213. -moz-user-select: none;
  214. -ms-user-select: none;
  215. user-select: none;
  216. transition: background-color .2s ease-out;;
  217. }
  218. .folderBtn:hover {
  219. cursor: pointer;
  220. background-color: var(--secondary-color);
  221. transition: background-color .2s ease-out;;
  222. }
  223. /* icon button */
  224. .iconBtn:hover, .iconBtn:focus {
  225. cursor: pointer;
  226. opacity: 1.0;
  227. transition: opacity .2s ease-out;
  228. }
  229. .iconBtn {
  230. width: 24px;
  231. min-width: 24px;
  232. opacity: 0.75;
  233. transition: opacity .2s ease-out;
  234. -webkit-touch-callout: none;
  235. -webkit-user-select: none;
  236. -khtml-user-select: none;
  237. -moz-user-select: none;
  238. -ms-user-select: none;
  239. user-select: none;
  240. }
  241. /* Dropdown Button */
  242. .dropbtn {
  243. display: inline;
  244. background-color: var(--bg-color);
  245. color: var(--primary-text-color);
  246. font-size: var(--normal-text-size);
  247. cursor: pointer;
  248. padding: var(--base-text-padding);
  249. }
  250. .dropdown-content {
  251. display: none;
  252. position: absolute;
  253. margin-top: var(--base-text-padding);
  254. background-color: var(--bg-color);
  255. min-width: 160px;
  256. box-shadow: var(--level1-shadow);
  257. z-index: 1;
  258. }
  259. .dropdown-content a {
  260. padding: var(--base-text-padding);
  261. text-decoration: none;
  262. display: block;
  263. -webkit-touch-callout: none;
  264. -webkit-user-select: none;
  265. -khtml-user-select: none;
  266. -moz-user-select: none;
  267. -ms-user-select: none;
  268. user-select: none;
  269. }
  270. .noselect {
  271. -webkit-touch-callout: none;
  272. -webkit-user-select: none;
  273. -khtml-user-select: none;
  274. -moz-user-select: none;
  275. -ms-user-select: none;
  276. user-select: none;
  277. }
  278. .toEmail {
  279. border-radius: var(--default-radius);
  280. font-size: var(--small-text-size);
  281. margin: 5px 10px 5px 0;
  282. padding: var(--small-text-padding);
  283. -webkit-touch-callout: none;
  284. -webkit-user-select: none;
  285. -khtml-user-select: none;
  286. -moz-user-select: none;
  287. -ms-user-select: none;
  288. user-select: none;
  289. }
  290. .settingsHeader {
  291. padding: var(--base-text-padding);
  292. font-size: var( --huge-text-size);
  293. -webkit-touch-callout: none;
  294. -webkit-user-select: none;
  295. -khtml-user-select: none;
  296. -moz-user-select: none;
  297. -ms-user-select: none;
  298. user-select: none;
  299. }
  300. .toast {
  301. position: absolute;
  302. top: 0;
  303. left:0;
  304. right:0;
  305. padding: var(--base-text-padding);
  306. text-align: center;
  307. }
  308. .toast.visible {
  309. opacity: 1;
  310. visibility: visible;
  311. transition: visibility 0s, opacity 0.5s linear;
  312. -webkit-transition: visibility 0s, opacity 0.5s linear;
  313. -moz-transition: visibility 0s, opacity 0.5s linear;
  314. -o-transition: visibility 0s, opacity 0.5s linear;
  315. -ms-transition: visibility 0s, opacity 0.5s linear;
  316. }
  317. .toast.hidden {
  318. opacity: 0;
  319. visibility: hidden;
  320. transition: visibility 0.5s, opacity 0.5s linear;
  321. -webkit-transition: visibility 0.5s, opacity 0.5s linear;
  322. -moz-transition: visibility 0.5s, opacity 0.5s linear;
  323. -o-transition: visibility 0.5s, opacity 0.5s linear;
  324. -ms-transition: visibility 0.5s, opacity 0.5s linear;
  325. }
  326. .toast.normal {
  327. background-color: var(--primary-color);
  328. color: var(--secondary-text-color);
  329. }
  330. .toast.warning {
  331. background-color: var(--invalid-color);
  332. color: var(--primary-text-color);
  333. }
  334. .toast.critical {
  335. background-color: var(--bad-color);
  336. color: var(--secondary-text-color);
  337. }
  338. /* checkbox */
  339. .cbox {
  340. z-index: 0;
  341. position: relative;
  342. display: inline-block;
  343. color: rgba(0, 0, 0, 0.87);
  344. font-size: 16px;
  345. line-height: 1.5;
  346. }
  347. /* Input */
  348. .cbox > input {
  349. appearance: none;
  350. -moz-appearance: none;
  351. -webkit-appearance: none;
  352. z-index: -1;
  353. position: absolute;
  354. left: -10px;
  355. top: -8px;
  356. display: block;
  357. margin: 0;
  358. border-radius: 50%;
  359. width: 40px;
  360. height: 40px;
  361. background-color: rgba(0, 0, 0, 0.6);
  362. box-shadow: none;
  363. outline: none;
  364. opacity: 0;
  365. transform: scale(1);
  366. pointer-events: none;
  367. transition: opacity 0.3s, transform 0.2s;
  368. }
  369. /* Span */
  370. .cbox > span {
  371. display: inline-block;
  372. width: 100%;
  373. cursor: pointer;
  374. }
  375. /* Box */
  376. .cbox > span::before {
  377. content: "";
  378. display: inline-block;
  379. box-sizing: border-box;
  380. margin: 3px 11px 3px 1px;
  381. border: solid 2px; /* Safari */
  382. border-color: rgba( 0, 0, 0, 0.6);
  383. border-radius: 2px;
  384. width: 18px;
  385. height: 18px;
  386. vertical-align: top;
  387. transition: border-color 0.2s, background-color 0.2s;
  388. }
  389. /* Checkmark */
  390. .cbox > span::after {
  391. content: "";
  392. display: block;
  393. position: absolute;
  394. top: 3px;
  395. left: 1px;
  396. width: 10px;
  397. height: 5px;
  398. border: solid 2px transparent;
  399. border-right: none;
  400. border-top: none;
  401. transform: translate(3px, 4px) rotate(-45deg);
  402. }
  403. /* Checked, Indeterminate */
  404. .cbox > input:checked,
  405. .cbox > input:indeterminate {
  406. background-color: var(--primary-color);
  407. }
  408. .cbox > input:checked + span::before,
  409. .cbox > input:indeterminate + span::before {
  410. border-color: var(--primary-color);
  411. background-color: var(--primary-color);
  412. }
  413. .cbox > input:checked + span::after,
  414. .cbox > input:indeterminate + span::after {
  415. border-color: var(--bg-color);
  416. }
  417. .cbox > input:indeterminate + span::after {
  418. border-left: none;
  419. transform: translate(4px, 3px);
  420. }
  421. /* Hover, Focus */
  422. .cbox:hover > input {
  423. opacity: 0.04;
  424. }
  425. .cbox > input:focus {
  426. opacity: 0.12;
  427. }
  428. .cbox:hover > input:focus {
  429. opacity: 0.16;
  430. }
  431. /* Active */
  432. .cbox > input:active {
  433. opacity: 1;
  434. transform: scale(0);
  435. transition: transform 0s, opacity 0s;
  436. }
  437. .cbox > input:active + span::before {
  438. border-color: var(--primary-color);
  439. }
  440. .cbox > input:checked:active + span::before {
  441. border-color: transparent;
  442. background-color: rgba(0, 0, 0, 0.6);
  443. }
  444. /* Disabled */
  445. .cbox > input:disabled {
  446. opacity: 0;
  447. }
  448. .cbox > input:disabled + span {
  449. color: rgba(0, 0, 0, 0.38);
  450. cursor: initial;
  451. }
  452. .cbox > input:disabled + span::before {
  453. border-color: currentColor;
  454. }
  455. .cbox > input:checked:disabled + span::before,
  456. .cbox > input:indeterminate:disabled + span::before {
  457. border-color: transparent;
  458. background-color: currentColor;
  459. }
  460. /* spacer */
  461. .spacer {
  462. display: block;
  463. flex: 1 1 auto
  464. }