Examples of code I've written in PHP, Javascript, SCSS, etc.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

1455 行
21 KiB

  1. @use "vars";
  2. @font-face {
  3. font-family: "PatuaOne";
  4. src: url("../PatuaOne-Regular.ttf") format("opentype");
  5. font-style: normal;
  6. font-weight: normal;
  7. }
  8. html body {
  9. font-family: 'PatuaOne', 'Times New Roman';
  10. margin: 0;
  11. }
  12. section {
  13. position: relative;
  14. padding-top: 3em;
  15. padding-bottom: 3em;
  16. overflow: hidden;
  17. padding-right: 15px;
  18. padding-left: 15px;
  19. }
  20. button {
  21. font-family: 'PatuaOne', 'Times New Roman';
  22. }
  23. textarea {
  24. border: 1px solid grey;
  25. }
  26. h1 {
  27. color: white;
  28. }
  29. h2 {
  30. color: vars.getColor("brand-orange");
  31. text-align: center;
  32. }
  33. h3 {
  34. color: vars.getColor("faded-text");
  35. // text-transform: uppercase;
  36. }
  37. ul {
  38. color: vars.getColor("faded-text");
  39. list-style-type: none;
  40. padding: 0;
  41. }
  42. input, select {
  43. border: 2px solid black;
  44. border-radius: 20px;
  45. padding: 4px;
  46. }
  47. .icon {
  48. width: 25px;
  49. margin: 10px;
  50. }
  51. .note-grey {
  52. color: grey;
  53. font-size: 0.8em;
  54. max-width: 70%;
  55. }
  56. .services-cards li {
  57. padding-bottom: 8px;
  58. &:before {
  59. width: 30px;
  60. height: 30px;
  61. content: url("../images/green-check.svg");
  62. display: inline;
  63. margin-right: 5px;
  64. // top: 30px;
  65. }
  66. }
  67. a {
  68. text-decoration: none;
  69. }
  70. nav {
  71. position: absolute;
  72. width: 100%;
  73. top: 10px;
  74. display: flex;
  75. flex-flow: row wrap;
  76. align-items: center;
  77. justify-content: space-between;
  78. // background-color: transparent;
  79. }
  80. nav h1 {
  81. margin: 4px 0 10px 6px;
  82. display: inline-block;
  83. }
  84. nav.info-page h1 {
  85. margin: 4px 0 10px 6px;
  86. display: inline-block;
  87. color: vars.getColor('brand-orange');
  88. }
  89. .formal-font {
  90. font-family: "FreeSans";
  91. }
  92. nav #logo {
  93. margin-right: 50px;
  94. }
  95. nav form {
  96. display: flex;
  97. flex-wrap: wrap;
  98. margin-right: 20px;
  99. }
  100. nav form div {
  101. margin: 0 10px;
  102. }
  103. nav form button {
  104. min-width: 5em;
  105. }
  106. nav form p {
  107. margin-top: 0;
  108. }
  109. nav form input,label {
  110. opacity: 0.7;
  111. }
  112. nav .nav-toggle {
  113. position: absolute;
  114. right: 10px;
  115. top: 5px;
  116. display: none;
  117. height: 45px;
  118. width: 45px;
  119. margin-left: auto;
  120. background: url("../images/menu-icon.svg");
  121. background-size: 100%;
  122. background-size: cover;
  123. color: white;
  124. }
  125. nav .nav-toggle.toggled {
  126. background: url("../images/cancel-icon2.svg");
  127. width: 25px;
  128. height: 25px;
  129. background-size: 100%;
  130. background-size: cover;
  131. top: 10px;
  132. right: 15px;
  133. color: white;
  134. }
  135. div.landing-hero {
  136. top: 0;
  137. height: 50em;
  138. background-color: #ff4e00;
  139. // background-image: linear-gradient(to right bottom, #ff4e00, #fc6200, #f87200, #f58100, #f18e00, #f19507, #f09c0f, #f0a317, #f3a620, #f6a927, #f8ad2e, #fbb034);
  140. background-image: linear-gradient(315deg, #ff4e00 0%, #ec9f05 74%);
  141. z-index: 0;
  142. }
  143. div.hero-filter {
  144. width: 100%;
  145. height: 100%;
  146. }
  147. div.hero-filter h2 {
  148. color: black;
  149. opacity: 0.7;
  150. max-width: 10em;
  151. font-size: 2.4em;
  152. position: absolute;
  153. top: 3em;
  154. margin-left: 5%;
  155. }
  156. div.hero-filter p {
  157. position: absolute;
  158. top: 12em;
  159. margin-left: 5%;
  160. font-size: 20px;
  161. width: 10em;
  162. opacity: 0.7;
  163. }
  164. div.errors {
  165. background-color: #ececec;
  166. color: vars.getColor("red-alert");
  167. border: 2px solid vars.getColor("red-alert");
  168. border-radius: 4px;
  169. min-height: 50px;
  170. position: absolute;
  171. left: 50%;
  172. margin-right: -50%;
  173. top: 100px;
  174. min-width: 30em;
  175. transform: translate(-50%, -50%);
  176. }
  177. .errors ul {
  178. margin: auto;
  179. }
  180. form.login {
  181. // font-weight: bold;
  182. color: white;
  183. }
  184. .cancel-icon {
  185. width: 30px;
  186. }
  187. form.login input {
  188. margin-left: 2px;
  189. color: white;
  190. background-color: transparent;
  191. border: 2px solid white;
  192. border-radius: 2px;
  193. outline-color: orange
  194. }
  195. form.login .login-btn {
  196. @include vars.special-button("medium-blue", "dark-blue");
  197. }
  198. .hero-filter .register-btn {
  199. @include vars.transparent-button;
  200. display: block;
  201. position: relative;
  202. width: 7em;
  203. top: 60%;
  204. margin-left: auto;
  205. margin-right: auto;
  206. }
  207. div.blue-background {
  208. background-image: url("../images/black-circle.svg");
  209. background-size: 10px;
  210. background-color: #0d324d;
  211. }
  212. section.about-us {
  213. padding: 70px 0;
  214. }
  215. section.about-us p {
  216. max-width: 600px;
  217. margin-left: auto;
  218. margin-right: auto;
  219. border-top: 2px solid vars.getColor("grey");
  220. border-bottom: 2px solid vars.getColor("grey");
  221. padding: 15px;
  222. background-color: #0d324d;
  223. color: white;
  224. }
  225. section.services-cards {
  226. // margin-bottom: 0;
  227. background-color: lightgrey;
  228. padding-bottom: 4em;
  229. background: linear-gradient(to bottom right, transparent 0%, transparent 50%, #e9e9e9 50%, vars.getColor("light-grey") 100%);
  230. }
  231. section.services-cards .cards{
  232. display: flex;
  233. flex-flow: wrap;
  234. margin-top: 2em;
  235. gap: 25px;
  236. justify-content: center;
  237. max-width: 1050px;
  238. margin-left: auto;
  239. margin-right: auto;
  240. text-align: center;
  241. }
  242. section.services-cards h2 {
  243. text-align: center;
  244. padding: 10px;
  245. margin-top: 0;
  246. padding-top: 30px;
  247. color: white;
  248. }
  249. section.services-cards .card {
  250. width: 280px;
  251. height: 350px;
  252. padding: 18px 9px;
  253. border-radius: 4px;
  254. background: white;
  255. box-shadow: 7px 10px 8px rgb(156 166 175 / 22%);
  256. transition: transform 0.2s;
  257. &:hover {
  258. transform: translateY(-20px);
  259. }
  260. }
  261. section.services-cards img {
  262. width: 50px;
  263. height: 50px;
  264. }
  265. section.services-cards button {
  266. @include vars.brand-button("orange");
  267. }
  268. section.features-info {
  269. // height: fit-content;
  270. height: 70em;
  271. background: radial-gradient(ellipse at left, #fff, vars.getColor("light-grey") 80%);
  272. }
  273. .circle-prop {
  274. height: 70em;
  275. overflow: hidden;
  276. width: 100%;
  277. position: relative;
  278. // transform: translateX(-10em);
  279. }
  280. .circle-prop svg {
  281. width: 50%;
  282. }
  283. .features-info img {
  284. width: 600px;
  285. position: absolute;
  286. top: 15%;
  287. right: 4%;
  288. }
  289. div.info-cards {
  290. position: absolute;
  291. top: 10em;
  292. margin-left: 20%;
  293. width: 70%;
  294. }
  295. .info-card {
  296. margin-bottom: 6em;
  297. &:nth-of-type(2) {
  298. margin-left: 13%;
  299. }
  300. &:nth-of-type(3) {
  301. margin-left: 10%;
  302. }
  303. &:nth-of-type(4) {
  304. margin-left: 5%;
  305. }
  306. p {
  307. max-width: 20em;
  308. background: white;
  309. padding: 5px;
  310. border-radius: 4px;
  311. text-align: center;
  312. color: vars.getColor("faded-text2");
  313. // border: 2px solid vars.getColor("medium-orange");
  314. @include vars.hovering;
  315. }
  316. }
  317. section.panel-infos {
  318. min-height: 40em;
  319. margin-top: 5em;
  320. margin-bottom: 5em;
  321. display: flex;
  322. flex-flow: wrap;
  323. align-items: center;
  324. justify-content: center;
  325. gap: 20px;
  326. .panel-preview {
  327. // box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  328. @include vars.hovering;
  329. padding: 0;
  330. }
  331. }
  332. .panel-infos h2 {
  333. width: 100%;
  334. }
  335. .panel-info {
  336. max-width: 25em;
  337. margin-top: 4em;
  338. }
  339. .panel-info img {
  340. width: 50px;
  341. height: 50px;
  342. }
  343. .panel-info p {
  344. color: vars.getColor("faded-text2");
  345. }
  346. section.benefits-info div {
  347. margin: 1em auto;
  348. padding: 1em 1em;
  349. border-top: 2px solid vars.getColor("faded-text2");
  350. border-bottom: 2px solid vars.getColor("faded-text2");
  351. max-width: 40em;
  352. color: vars.getColor("faded-text");
  353. }
  354. .benefits-info h2 {
  355. margin-bottom: 2em;
  356. }
  357. section.faq-info {
  358. margin-bottom: 6em;
  359. margin-top: 3em;
  360. min-height: 30em;
  361. }
  362. .faq-info h2 {
  363. margin-bottom: 2em;
  364. }
  365. section.faq-info .collapsibles {
  366. display: flex;
  367. flex-flow: wrap;
  368. gap: 2em;
  369. justify-content: center;
  370. max-width: 65em;
  371. width: fit-content;
  372. margin-left: auto;
  373. margin-right: auto;
  374. align-text: center;
  375. }
  376. .faq-info .collapsible {
  377. text-align: center;
  378. width: 20em;
  379. &:not(.active) .content {
  380. display: none;
  381. }
  382. }
  383. .collapsible button {
  384. width: 95%;
  385. display: block;
  386. margin-right: auto;
  387. height: 2.5em;
  388. border: 2px solid vars.getColor("brand-orange");
  389. @include vars.button("light-grey");
  390. font-size: 17px;
  391. // font-weight: bold;
  392. }
  393. .collapsible button:after {
  394. content: '\02795'; /* Unicode character for "plus" sign (+) */
  395. font-size: 13px;
  396. color: white;
  397. float: right;
  398. margin-left: 5px;
  399. }
  400. .collapsible .content {
  401. // background-color: vars.getColor("faded-text2");
  402. border: 2px solid black;
  403. border-radius: 4px;
  404. padding: 4px;
  405. // transition: all 0.2s;
  406. // height: 1px;
  407. }
  408. footer {
  409. height: 6em;
  410. background-color: vars.getColor("dark-grey");
  411. padding: 20px;
  412. color: vars.getColor("faded-text2");
  413. }
  414. footer .foot-links {
  415. width: 20em;
  416. margin: 2em auto;
  417. text-align: center;
  418. }
  419. footer a {
  420. margin: 0 8px;
  421. color: vars.getColor("faded-text2");
  422. &:hover {
  423. color: vars.getColor("faded-text");
  424. }
  425. }
  426. .hidden {
  427. display: none;
  428. }
  429. .loading-icon {
  430. display: block;
  431. width: 50px;
  432. height: 50px;
  433. margin: auto;
  434. }
  435. .register-area p {
  436. text-align: center;
  437. }
  438. .register-area .loading-icon {
  439. margin-top: 100px;
  440. }
  441. div.register-area {
  442. overflow: hidden;
  443. height: 0px;
  444. width: 100%;
  445. z-index: 1;
  446. @include vars.hovering3;
  447. margin-bottom: 2em;
  448. position: fixed;
  449. border-radius: 0;
  450. padding: 0;
  451. opacity: 0;
  452. transition: all 0.2s;
  453. background: white;
  454. h3 {
  455. text-align: center;
  456. }
  457. label,input {
  458. color: black;
  459. display: block;
  460. border-color: black;
  461. width: 95%;
  462. }
  463. div {
  464. margin-top: 20px;
  465. margin-bottom: 20px;
  466. width: 100%;
  467. }
  468. form {
  469. width: 160px;
  470. margin: 20px auto;
  471. }
  472. .submit-btn {
  473. width: 100%;
  474. background-color: #3bb78f;
  475. @include vars.special-button("light-green", "dark-green");
  476. }
  477. .cancel-button {
  478. width: 20px;
  479. height: 20px;
  480. background: url("../images/close-icon-black.svg");
  481. background-size: cover;
  482. position: absolute;
  483. top: 20px;
  484. right: 20px;
  485. }
  486. }
  487. section.features-info {
  488. // min-height: 90em;
  489. }
  490. div.register-area.active {
  491. height: fit-content;
  492. min-height: 20em;
  493. opacity: 1;
  494. }
  495. .medium-icon {
  496. width: 50px;
  497. height: 50px;
  498. margin-left: auto;
  499. margin-right: auto;
  500. display: block;
  501. top: 50px;
  502. }
  503. // Make small screens more usable
  504. @media (max-width: 720px) {
  505. nav { display: block; }
  506. nav form {
  507. // display: none;
  508. width: 190px;
  509. margin-left: auto;
  510. margin-right: auto;
  511. align-items: center;
  512. margin-top: 5em;
  513. opacity: 0;
  514. transition: transform 0.3s;
  515. transform: translateY(-50px);
  516. }
  517. nav form.active {
  518. display: block;
  519. transform: translateX(0%);
  520. opacity: 1;
  521. // background: white;
  522. // color: black;
  523. }
  524. nav form div {
  525. margin: 10px auto;
  526. }
  527. nav div label,input {
  528. display: block;
  529. }
  530. nav .nav-toggle {
  531. display: block;
  532. }
  533. div.register-area.active {
  534. display: initial;
  535. }
  536. div.register-area h1 {
  537. font-size: 1.5rem;
  538. display: inline-block;
  539. color: vars.getColor("brand-orange");
  540. }
  541. div.register-area h3 {
  542. text-align: center;
  543. }
  544. div.register-area .login {
  545. color: vars.getColor("brand-orange");
  546. display: block;
  547. margin-left: auto;
  548. margin-right: auto;
  549. // margin-top: 1em;
  550. width: 10em;
  551. // top: 40px;
  552. // position: absolute;
  553. }
  554. div.register-area .login input {
  555. border: 2px solid black;
  556. border-color: black;
  557. color: black;
  558. }
  559. div.register-area button {
  560. margin-top: 1em;
  561. width: 6em;
  562. }
  563. div.register-area div {
  564. margin-top: 10px;
  565. margin-bottom: 5px;
  566. margin-left: auto;
  567. margin-right: auto;
  568. }
  569. .landing-hero div.hero-filter h2 {
  570. top: 4em;
  571. }
  572. .landing-hero div.hero-filter p {
  573. top: 15em;
  574. }
  575. .landing-hero div.hero-filter .register-btn {
  576. top: 75%;
  577. }
  578. }
  579. .info-heading {
  580. text-align: center;
  581. margin-top: 3em;
  582. margin-left: auto;
  583. margin-right: auto;
  584. max-width: 35em;
  585. padding: 3em;
  586. height: 30em;
  587. button {
  588. display: block;
  589. margin: 3em auto;
  590. width: 6em;
  591. @include vars.special-button("light-green", "dark-green");
  592. }
  593. }
  594. main.panel {
  595. // min-height: 750px;
  596. height: 100vh;
  597. // max-height: 100vh;
  598. background-image: linear-gradient(315deg, #ff4e00 0%, #ec9f05 74%);
  599. }
  600. #panel {
  601. top: 50px;
  602. padding: 0 5%;
  603. margin: auto;
  604. position: relative;
  605. max-width: 800px;
  606. height: 90%;
  607. display: flex;
  608. gap: 10px;
  609. }
  610. #sidebar {
  611. position: relative;
  612. width: 6%;
  613. max-width: 55px;
  614. height: 50%;
  615. color: white;
  616. background: transparent;
  617. display: block;
  618. flex-shrink: 0;
  619. a {
  620. display: block;
  621. margin: 20px 0;
  622. }
  623. svg {
  624. width: 100%;
  625. height: 35px;
  626. color: white;
  627. }
  628. a.selected svg {
  629. color: vars.getColor("brand-orange");
  630. }
  631. }
  632. #panel #main {
  633. background: white;
  634. width: 100%;
  635. flex-shrink: 1;
  636. margin-left: auto;
  637. position: relative;
  638. @include vars.hovering3;
  639. transition: opacity 0.5s ease;
  640. vertical-align: middle;
  641. overflow: scroll;
  642. // text-align: center;
  643. section {
  644. padding: 5px;
  645. border-radius: 4px;
  646. margin-bottom: 2em;
  647. }
  648. h4 {
  649. margin: 4px;
  650. color: vars.getColor("dark-grey");
  651. }
  652. .welcome-pane {
  653. text-align: center;
  654. }
  655. .credits-pane {
  656. border: 3px solid vars.getColor("orange");
  657. display: flex;
  658. align-items: center;
  659. justify-content: center;
  660. color: vars.getColor('brand-orange');
  661. }
  662. .alerts-pane {
  663. border: 3px solid vars.getColor("grey");
  664. padding: 1em;
  665. }
  666. }
  667. .fade-enter-from, .fade-leave-to {
  668. opacity: 0;
  669. }
  670. section.recent-pane, section.history-pane{
  671. display: flex;
  672. flex-flow: wrap;
  673. justify-content: space-between;
  674. width: 100%;
  675. height: fit-content;
  676. h4 {
  677. width: 100%;
  678. }
  679. table {
  680. border-spacing: 4px;
  681. margin: auto;
  682. text-align: center;
  683. width: 100%;
  684. }
  685. th {
  686. font-weight: normal;
  687. color: vars.getColor("light2-grey");
  688. }
  689. tr {
  690. border-bottom: 3px solid black;
  691. }
  692. td {
  693. border-bottom: 2px solid vars.getColor("grey");
  694. // color: vars.getColor("light3-grey");
  695. // font-size: 1rem;
  696. font-size: 0.8rem;
  697. }
  698. td.completed span {
  699. background: vars.getColor('green');
  700. color: vars.darkenColor('green');
  701. border-radius: 4px;
  702. padding: 2px;
  703. }
  704. td.processing {
  705. color: vars.getColor('light-blue');
  706. }
  707. td.canceled {
  708. color: vars.getColor('red-alert');
  709. }
  710. .bi-eye-fill {
  711. color: grey;
  712. }
  713. .nav-btn.right {
  714. margin-right: 20px;
  715. }
  716. .nav-btn.left {
  717. margin-left: 20px;
  718. }
  719. }
  720. .pending-pane {
  721. .pending-heading {
  722. position: relative;
  723. border-bottom: 1px solid vars.getColor('light2-grey');
  724. // background-color: vars.getColor('light-grey');
  725. &:hover {
  726. color: vars.darkenColor('text-blue-medium');
  727. }
  728. }
  729. .pending-content {
  730. color: grey;
  731. height: 0;
  732. overflow: hidden;
  733. transition: all 0.2s;
  734. }
  735. .selected .pending-content {
  736. height: fit-content;
  737. }
  738. li {
  739. margin: 10px 0;
  740. display: inline-block;
  741. width: 15em;
  742. }
  743. img {
  744. // border: 2px solid vars.getColor('light2-grey');
  745. padding: 4px;
  746. // border-radius: 50%;
  747. margin-top: 5px;
  748. width: 25px;
  749. display: inline-block;
  750. margin-bottom: 3px;
  751. margin-left: 2px;
  752. position: absolute;
  753. transition: all 0.2s;
  754. }
  755. .selected img {
  756. transform: rotate(180deg);
  757. }
  758. }
  759. .history-pane {
  760. transition: all 0.2s;
  761. .nav-btn {
  762. width: 1.5em;
  763. // transform: translateY(1.5em);
  764. }
  765. .nav-legend {
  766. color: grey;
  767. // transform: translateX(-1.5em);
  768. text-align: center;
  769. // position: absolute;
  770. width: 3em;
  771. left: 50%;
  772. }
  773. table {
  774. min-width: 30em;
  775. }
  776. .table-scroller {
  777. width: 100%;
  778. overflow-x: scroll;
  779. }
  780. }
  781. .actions {
  782. margin-bottom: 1em;
  783. }
  784. .actions a {
  785. color: vars.getColor('brand-orange');
  786. margin: 1em;
  787. margin-bottom: 2em;
  788. padding: 3px;
  789. }
  790. .actions a:hover {
  791. color: vars.darkenColor('brand-orange');
  792. }
  793. .logout-pane {
  794. margin-top: 25%;
  795. text-align: center;
  796. height: 10em;
  797. a {
  798. display: block;
  799. // vertical-align: center;
  800. margin: auto;
  801. margin-top: 2em;
  802. height: 1.3em;
  803. width: 5em;
  804. @include vars.inverting-button(black, white);
  805. }
  806. }
  807. .settings-page {
  808. h3 {
  809. text-align: center;
  810. }
  811. h5 {
  812. display: inline-block;
  813. margin-right: 2em;
  814. margin-top: 0;
  815. margin-bottom: 0.5em;
  816. color: vars.getColor('brand-orange');
  817. }
  818. input {
  819. display: block;
  820. margin-bottom: 1em;
  821. right: 2px;
  822. position: relative;
  823. }
  824. button {
  825. &>*{vertical-align: middle;}
  826. margin-right: 10px;
  827. display: inline-block;
  828. @include vars.inverting-button(vars.getColor('text-blue-medium'), white);
  829. }
  830. .loading-icon {
  831. width: 1.5em;
  832. height: 1.5em;
  833. display: none;
  834. color: white;
  835. margin-left: 0.5em;
  836. margin-right: 0.5em;
  837. }
  838. .loading .loading-icon {
  839. display: inline;
  840. }
  841. .completed span {
  842. color: vars.getColor('green');
  843. }
  844. .error span {
  845. color: vars.getColor('red-alert');
  846. }
  847. }
  848. .services-legend {
  849. display: flex;
  850. justify-content: space-between;
  851. margin-top: 20px;
  852. border-top: 1px solid darkgrey;
  853. border-bottom: 1px solid darkgrey;
  854. min-height: 2em;
  855. background-color: rgb(239, 239, 239);
  856. color: rgb(118, 118, 118);
  857. padding-right: 30px;
  858. h5 {
  859. display: inline-block;
  860. margin: auto;
  861. text-align: center;
  862. width: 20%;
  863. // max-width: 25%;
  864. }
  865. :nth-child(1) {
  866. width: 30%;
  867. }
  868. }
  869. .sliding-menu {
  870. display: flex;
  871. justify-content: center;
  872. flex-basis: 50%;
  873. margin-top: 1em;
  874. flex-flow: wrap;
  875. gap: 10px;
  876. a {
  877. width: 25%;
  878. font-size: 1.1rem;
  879. background: none;
  880. border: none;
  881. color: grey;
  882. text-align: center;
  883. }
  884. .selected {
  885. color: black;
  886. }
  887. }
  888. .menu-slider {
  889. width: 55%;
  890. div {
  891. transition: all 0.2s;
  892. width: 50%;
  893. border-bottom: 2px solid black;
  894. flex: 2;
  895. }
  896. }
  897. .menu-slider.credits div {
  898. transform: translateX(100%);
  899. }
  900. .menu-slider.right div {
  901. transform: translateX(100%);
  902. }
  903. .services-pane {
  904. li {
  905. display: flex;
  906. // gap: 0.5em;
  907. justify-content: space-between;
  908. align-items: center;
  909. border-top: 1px solid grey;
  910. // border-bottom: 1px solid grey;
  911. padding: 6px 0;
  912. }
  913. li span {
  914. // width: 10%;
  915. text-align:center;
  916. vertical-align: middle;
  917. }
  918. li :nth-child(1) {
  919. width: 30%;
  920. }
  921. li:hover span {
  922. color: vars.darkenColor('faded-text');
  923. }
  924. svg {
  925. width: 25px;
  926. height: 25px;
  927. color: vars.getColor('brand-orange');
  928. right: 10px;
  929. }
  930. svg:hover {
  931. color: vars.getColor('dark-orange');
  932. }
  933. }
  934. #overlay {
  935. position: fixed;
  936. width: 100%;
  937. height: 100%;
  938. background-color: rgba(0,0,0,0.5);
  939. left: 0;
  940. top: 0;
  941. .overlay-item {
  942. width: 20em;
  943. min-height: 20em;
  944. background: white;
  945. margin: auto;
  946. margin-top: 20%;
  947. opacity: 1;
  948. border-radius: 4px;
  949. padding: 5px;
  950. @include vars.hovering2;
  951. div {
  952. width: 15em;
  953. margin: auto;
  954. margin-bottom: 1em;
  955. }
  956. input {
  957. // width: 40%;
  958. display: inline;
  959. }
  960. }
  961. .icon {
  962. width: 40px;
  963. height: 40px;
  964. display: block;
  965. margin: 0 auto;
  966. }
  967. h3 {
  968. text-align: center;
  969. margin-top: 5px;
  970. }
  971. h4 {
  972. text-align: center;
  973. }
  974. .cancel {
  975. position: absolute;
  976. width: 30px;
  977. right: 10px;
  978. top: 10px;
  979. }
  980. button {
  981. display: inline-block;
  982. margin: auto;
  983. display: flex;
  984. align-items: center;
  985. text-align: center;
  986. justify-content: center;
  987. @include vars.inverting-button(vars.getColor('brand-orange'), white);
  988. font-size: 1.1rem;
  989. min-width: 7em;
  990. }
  991. #url {
  992. width: 100%;
  993. }
  994. p {
  995. margin-top: 2em;
  996. text-align: center;
  997. }
  998. li {
  999. margin: 1em 0;
  1000. }
  1001. }
  1002. button .loading-icon {
  1003. display: inline;
  1004. height: 1.5em;
  1005. }
  1006. #panel #main .credits-display {
  1007. text-align: center;
  1008. margin: 1em;
  1009. color: vars.getColor('brand-orange');
  1010. display: flex;
  1011. justify-content: center;
  1012. align-items: center;
  1013. }
  1014. .select-credits .credits-pane {
  1015. flex-flow: wrap;
  1016. border-radius: 4px;
  1017. margin-bottom: 2em;
  1018. text-align: center;
  1019. display: flex;
  1020. gap: 5%;
  1021. padding: 0.5em 0;
  1022. span {margin-right: 0.5em;}
  1023. }
  1024. .select-credits h2 {
  1025. margin: 0;
  1026. }
  1027. .select-credits h3 {
  1028. text-align: center;
  1029. }
  1030. .select-credits input {
  1031. width: 3em;
  1032. }
  1033. .brand-btn {
  1034. display: inline-block;
  1035. margin: auto;
  1036. display: flex;
  1037. align-items: center;
  1038. text-align: center;
  1039. justify-content: center;
  1040. @include vars.inverting-button(vars.getColor('brand-orange'), white);
  1041. font-size: 1.1rem;
  1042. min-width: 7em;
  1043. }
  1044. div#card-errors {
  1045. margin: 5%;
  1046. text-align: center;
  1047. }
  1048. #payment-section {
  1049. h4 {
  1050. text-align: center;
  1051. }
  1052. form {
  1053. margin-top: 2em;
  1054. }
  1055. label {
  1056. display: block;
  1057. }
  1058. input {
  1059. margin: 1em 0;
  1060. }
  1061. #save-card {
  1062. display: flex;
  1063. gap: 10px;
  1064. align-items: center;
  1065. justify-content: center;
  1066. }
  1067. #billing-name {
  1068. width: 25em;
  1069. max-width: 90%;
  1070. }
  1071. }
  1072. #card-element {
  1073. border: 2px solid grey;
  1074. border-radius: 4px;
  1075. padding: 10px;
  1076. }
  1077. .info-grey {
  1078. text-align: center;
  1079. color: grey;
  1080. // color: vars.getColor('light2-grey');
  1081. div {
  1082. width: 20%;
  1083. margin: auto;
  1084. height: 4px;
  1085. margin-top: 1em;
  1086. background: vars.getColor('light2-grey');
  1087. border-radius: 2px;
  1088. }
  1089. }
  1090. .saved-card {
  1091. display: flex;
  1092. gap: 15px;
  1093. align-items: center;
  1094. justify-content: space-around;
  1095. max-width: 15em;
  1096. margin: auto;
  1097. }
  1098. .status-dialog {
  1099. position: relative;
  1100. top: 15%;
  1101. margin: auto;
  1102. max-width: 20em;
  1103. text-align: center;
  1104. img {
  1105. margin: auto;
  1106. display: block;
  1107. }
  1108. }
  1109. .saved-cards-heading {
  1110. display: flex;
  1111. align-items: center;
  1112. justify-content: space-around;
  1113. max-width: 25em;
  1114. margin: auto;
  1115. h5 {
  1116. margin: 0;
  1117. }
  1118. }
  1119. .settings-page .saved-card {
  1120. max-width: 25em;
  1121. // align-items: start;
  1122. justify-content: space-between;
  1123. margin-top: 1em;
  1124. > * {
  1125. min-width: 20%;
  1126. }
  1127. img {
  1128. width: 15px;
  1129. display: block;
  1130. }
  1131. input {
  1132. display: block;
  1133. margin: auto;
  1134. }
  1135. }
  1136. .saved-card button {
  1137. width: 3em;
  1138. height: 2em;
  1139. }
  1140. nav.info-page {
  1141. position: relative;
  1142. }
  1143. main.terms {
  1144. section {
  1145. padding-top: 0;
  1146. padding-bottom: 2em;
  1147. padding-right: 5%;
  1148. padding-left: 5%;
  1149. max-width: 50em;
  1150. margin: auto;
  1151. }
  1152. section:nth-child(1) {
  1153. margin-top: 3em;
  1154. }
  1155. p {
  1156. color: grey;
  1157. }
  1158. }
  1159. .payment-window {
  1160. min-height: 5em;
  1161. margin-top: 1em;
  1162. text-align: center;
  1163. color: grey;
  1164. img {
  1165. width: 250px;
  1166. max-width: 80%;
  1167. margin: auto;
  1168. margin-bottom: 1em;
  1169. display: block;
  1170. height: 90px;
  1171. }
  1172. }
  1173. #agreement-check {
  1174. margin: auto;
  1175. max-width: 30em;
  1176. display: flex;
  1177. align-items: center;
  1178. label {
  1179. display: inline-block;
  1180. // width: 85%;
  1181. margin: 1em;
  1182. }
  1183. input {
  1184. display: inline-block;
  1185. }
  1186. }
  1187. .support-section .loading-icon {
  1188. margin-top: 25%;
  1189. color: vars.getColor('brand-orange');
  1190. }
  1191. #support-form {
  1192. margin-top: 10%;
  1193. label {
  1194. margin: auto;
  1195. text-align: center;
  1196. width: 10em;
  1197. display: block;
  1198. margin-bottom: 1em;
  1199. }
  1200. select {
  1201. display: block;
  1202. margin: auto;
  1203. margin-bottom: 2em;
  1204. width: 10em;
  1205. text-align: center;
  1206. background: white;
  1207. }
  1208. textarea {
  1209. display: block;
  1210. width: 90%;
  1211. margin: auto;
  1212. }
  1213. button {
  1214. display: block;
  1215. font-size: 1em;
  1216. margin: auto;
  1217. margin-top: 2em;
  1218. height: 2.3em;
  1219. width: 5em;
  1220. @include vars.inverting-button(black, white);
  1221. }
  1222. }
  1223. .error-message {
  1224. text-align: center;
  1225. color: vars.getColor('red-alert');
  1226. margin-top: 1em;
  1227. margin-bottom: 1em;
  1228. }
  1229. //Maybe this should have a max width
  1230. .dialog {
  1231. text-align: center;
  1232. }