1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150 |
- <template>
- <div class="upper-container">
- <banned v-if="banned" />
- <div v-else class="upper-container">
- <router-view :key="$route.fullPath" class="main-container" />
- <what-is-new v-show="modals.whatIsNew" />
- <login-modal v-if="modals.login" />
- <register-modal v-if="modals.register" />
- </div>
- </div>
- </template>
- <script>
- import { mapState, mapActions, mapGetters } from "vuex";
- import Toast from "toasters";
- import ws from "./ws";
- import aw from "./aw";
- import keyboardShortcuts from "./keyboardShortcuts";
- export default {
- components: {
- WhatIsNew: () => import("@/components/modals/WhatIsNew.vue"),
- LoginModal: () => import("@/components/modals/Login.vue"),
- RegisterModal: () => import("@/components/modals/Register.vue"),
- Banned: () => import("@/pages/Banned.vue")
- },
- replace: false,
- data() {
- return {
- apiDomain: "",
- socketConnected: true,
- keyIsDown: false
- };
- },
- computed: {
- ...mapState({
- loggedIn: state => state.user.auth.loggedIn,
- role: state => state.user.auth.role,
- username: state => state.user.auth.username,
- userId: state => state.user.auth.userId,
- banned: state => state.user.auth.banned,
- modals: state => state.modalVisibility.modals,
- currentlyActive: state => state.modalVisibility.currentlyActive,
- nightmode: state => state.user.preferences.nightmode,
- activityWatch: state => state.user.preferences.activityWatch
- }),
- ...mapGetters({
- socket: "websockets/getSocket"
- })
- },
- watch: {
- socketConnected(connected) {
- if (!connected) this.disconnectedMessage.show();
- else this.disconnectedMessage.hide();
- },
- nightmode(nightmode) {
- if (nightmode) this.enableNightMode();
- else this.disableNightMode();
- },
- activityWatch(activityWatch) {
- if (activityWatch) aw.enable();
- else aw.disable();
- }
- },
- async mounted() {
- document.onkeydown = ev => {
- const event = ev || window.event;
- const { keyCode } = event;
- const shift = event.shiftKey;
- const ctrl = event.ctrlKey;
- const alt = event.altKey;
- const identifier = `${keyCode}.${shift}.${ctrl}`;
- if (this.keyIsDown === identifier) return;
- this.keyIsDown = identifier;
- keyboardShortcuts.handleKeyDown(event, keyCode, shift, ctrl, alt);
- };
- document.onkeyup = () => {
- this.keyIsDown = "";
- };
- keyboardShortcuts.registerShortcut("closeModal", {
- keyCode: 27,
- shift: false,
- ctrl: false,
- handler: () => {
- if (Object.keys(this.currentlyActive).length !== 0)
- this.closeCurrentModal();
- }
- });
- if (localStorage.getItem("github_redirect")) {
- this.$router.push(localStorage.getItem("github_redirect"));
- localStorage.removeItem("github_redirect");
- }
- this.disconnectedMessage = new Toast({
- content: "Could not connect to the server.",
- persistent: true,
- interactable: false
- });
- this.disconnectedMessage.hide();
- ws.onConnect(true, () => {
- this.socketConnected = true;
- });
- ws.onDisconnect(true, () => {
- this.socketConnected = false;
- });
- this.apiDomain = await lofig.get("apiDomain");
- this.$router.onReady(() => {
- if (this.$route.query.err) {
- let { err } = this.$route.query;
- err = err
- .replace(new RegExp("<", "g"), "<")
- .replace(new RegExp(">", "g"), ">");
- this.$router.push({ query: {} });
- new Toast({ content: err, timeout: 20000 });
- }
- if (this.$route.query.msg) {
- let { msg } = this.$route.query;
- msg = msg
- .replace(new RegExp("<", "g"), "<")
- .replace(new RegExp(">", "g"), ">");
- this.$router.push({ query: {} });
- new Toast({ content: msg, timeout: 20000 });
- }
- });
- this.socket.dispatch("users.getPreferences", res => {
- if (res.status === "success") {
- const { preferences } = res.data;
- this.changeAutoSkipDisliked(preferences.autoSkipDisliked);
- this.changeNightmode(preferences.nightmode);
- this.changeActivityLogPublic(preferences.activityLogPublic);
- this.changeAnonymousSongRequests(
- preferences.anonymousSongRequests
- );
- this.changeActivityWatch(preferences.activityWatch);
- if (this.nightmode) this.enableNightMode();
- else this.disableNightMode();
- }
- });
- this.socket.on("keep.event:user.session.deleted", () =>
- window.location.reload()
- );
- },
- methods: {
- submitOnEnter: (cb, event) => {
- if (event.which === 13) cb();
- },
- enableNightMode: () => {
- document
- .getElementsByTagName("body")[0]
- .classList.add("night-mode");
- },
- disableNightMode: () => {
- document
- .getElementsByTagName("body")[0]
- .classList.remove("night-mode");
- },
- ...mapActions("modalVisibility", ["closeCurrentModal"]),
- ...mapActions("user/preferences", [
- "changeNightmode",
- "changeAutoSkipDisliked",
- "changeActivityLogPublic",
- "changeAnonymousSongRequests",
- "changeActivityWatch"
- ])
- }
- };
- </script>
- <style lang="scss">
- :root {
- --primary-color: var(--blue);
- --blue: rgb(2, 166, 242);
- --light-blue: rgb(163, 224, 255);
- --dark-blue: rgb(0, 102, 244);
- --teal: rgb(0, 209, 178);
- --purple: rgb(143, 40, 140);
- --light-purple: rgb(170, 141, 216);
- --yellow: rgb(241, 196, 15);
- --light-pink: rgb(228, 155, 166);
- --dark-pink: rgb(234, 72, 97);
- --orange: rgb(255, 94, 0);
- --dark-orange: rgb(250, 50, 0);
- --green: rgb(68, 189, 50);
- --red: rgb(231, 77, 60);
- --white: rgb(255, 255, 255);
- --black: rgb(0, 0, 0);
- --light-grey: rgb(245, 245, 245);
- --light-grey-2: rgb(221, 221, 221);
- --light-grey-3: rgb(195, 193, 195);
- --grey: rgb(107, 107, 107);
- --grey-2: rgb(113, 113, 113);
- --grey-3: rgb(126, 126, 126);
- --dark-grey: rgb(77, 77, 77);
- --dark-grey-2: rgb(51, 51, 51);
- --dark-grey-3: rgb(34, 34, 34);
- --dark-grey-4: rgb(26, 26, 26);
- --youtube: rgb(189, 46, 46);
- }
- .night-mode {
- div {
- // background-color: var(--black);
- color: var(--light-grey-2);
- }
- #toasts-container .toast {
- // color: var(--dark-grey-2);
- // background-color: var(--light-grey-3) !important;
- // &:last-of-type {
- // background-color: var(--light-grey) !important;
- // }
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- color: var(--white) !important;
- }
- p:not(.help),
- label,
- .label {
- color: var(--light-grey-2) !important;
- }
- .section,
- .content {
- background-color: var(--dark-grey-3) !important;
- }
- .content-box,
- .step:not(.selected) {
- background-color: var(--dark-grey-3) !important;
- }
- .tippy-tooltip.songActions-theme {
- background-color: var(--dark-grey);
- }
- }
- body.night-mode {
- background-color: var(--black) !important;
- }
- #toasts-container {
- z-index: 10000 !important;
- .toast {
- font-weight: 600;
- // background-color: var(--dark-grey) !important;
- // &:last-of-type {
- // background-color: var(--dark-grey-2) !important;
- // }
- }
- }
- html {
- overflow: auto !important;
- height: 100%;
- }
- body {
- background-color: var(--light-grey);
- color: var(--dark-grey);
- height: 100%;
- font-family: "Inter", Helvetica, Arial, sans-serif;
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- .sidebar-title {
- font-family: "Inter", Helvetica, Arial, sans-serif;
- }
- .modal-card-title {
- font-weight: 600;
- font-family: "Inter", Helvetica, Arial, sans-serif;
- }
- p,
- button,
- input,
- select,
- textarea {
- font-family: "Inter", Helvetica, Arial, sans-serif;
- }
- .upper-container {
- height: 100%;
- }
- .main-container {
- height: 100%;
- display: flex;
- flex-direction: column;
- > .container {
- flex: 1 0 auto;
- }
- }
- a {
- color: var(--primary-color);
- text-decoration: none;
- }
- .modal-card {
- margin: 0 !important;
- }
- .absolute-a {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .alert {
- padding: 20px;
- color: var(--white);
- background-color: var(--red);
- position: fixed;
- top: 50px;
- right: 50px;
- font-size: 2em;
- border-radius: 5px;
- z-index: 10000000;
- }
- .tippy-tooltip.dark-theme {
- font-size: 14px;
- padding: 5px 10px;
- }
- .night-mode {
- .tippy-tooltip {
- &.dark-theme {
- border: 1px solid var(--light-grey-3);
- box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
- 0 10px 10px rgba(0, 0, 0, 0.22);
- background-color: white;
- .tippy-content {
- color: var(--black);
- }
- }
- &.songActions-theme {
- background-color: var(--dark-grey-2);
- border: 0 !important;
- i,
- a {
- color: var(--white);
- }
- .youtube-icon {
- background-color: var(--white);
- }
- }
- &.addToPlaylist-theme {
- background-color: var(--dark-grey-2);
- border: 0 !important;
- .nav-dropdown-items {
- .nav-item {
- background-color: var(--dark-grey);
- &:focus {
- outline-color: var(--dark-grey);
- }
- p {
- color: var(--white);
- }
- .checkbox-control label span {
- background-color: var(--dark-grey-2);
- }
- }
- }
- }
- }
- .tippy-popper[x-placement^="top"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-top-color: var(--dark-grey-2);
- }
- }
- &.dark-theme .tippy-arrow {
- border-top-color: var(--white);
- }
- }
- .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-bottom-color: var(--dark-grey-2);
- }
- }
- &.dark-theme .tippy-arrow {
- border-bottom-color: var(--white);
- }
- }
- .tippy-popper[x-placement^="left"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-left-color: var(--dark-grey-2);
- }
- }
- &.dark-theme .tippy-arrow {
- border-left-color: var(--white);
- }
- }
- .tippy-popper[x-placement^="right"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-right-color: var(--dark-grey-2);
- }
- }
- &.dark-theme .tippy-arrow {
- border-right-color: var(--white);
- }
- }
- }
- .tippy-tooltip.confirm-theme {
- background-color: var(--red);
- padding: 5px 10px;
- a {
- color: var(--white);
- font-size: 14px;
- font-weight: 600;
- &:hover,
- &:focus {
- filter: brightness(90%);
- }
- }
- }
- .tippy-tooltip.songActions-theme {
- font-size: 14px;
- padding: 5px 10px;
- border: 1px solid var(--light-grey-3);
- box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
- background-color: var(--white);
- .button {
- width: 146px;
- }
- .song-actions,
- .addToPlaylistDropdown,
- .song-actions > div {
- display: inline-block;
- }
- .addToPlaylistDropdown .tippy-popper {
- max-width: unset;
- }
- i,
- a {
- display: inline-block;
- cursor: pointer;
- color: var(--dark-grey);
- vertical-align: middle;
- &:hover,
- &:focus {
- filter: brightness(90%);
- }
- &:not(:first-of-type) {
- margin-left: 5px;
- }
- }
- .play-icon {
- color: var(--green);
- }
- .edit-icon,
- .view-icon,
- .add-to-playlist-icon,
- .add-to-queue-icon {
- color: var(--primary-color);
- }
- .hide-icon {
- color: var(--light-grey-3);
- }
- .stop-icon,
- .delete-icon {
- color: var(--red);
- }
- .report-icon {
- color: var(--yellow);
- }
- }
- .tippy-popper[x-placement^="top"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-top-color: var(--light-grey-3);
- }
- }
- &.confirm-theme .tippy-arrow {
- border-top-color: var(--red);
- }
- }
- .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-bottom-color: var(--light-grey-3);
- }
- }
- &.confirm-theme .tippy-arrow {
- border-bottom-color: var(--red);
- }
- }
- .tippy-popper[x-placement^="left"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-left-color: var(--light-grey-3);
- }
- }
- &.confirm-theme .tippy-arrow {
- border-left-color: var(--red);
- }
- }
- .tippy-popper[x-placement^="right"] .tippy-tooltip {
- &.songActions-theme,
- &.addToPlaylist-theme {
- .tippy-arrow {
- border-right-color: var(--light-grey-3);
- }
- }
- &.confirm-theme .tippy-arrow {
- border-right-color: var(--red);
- }
- }
- .tippy-tooltip.addToPlaylist-theme {
- font-size: 14px;
- padding: 5px;
- border: 1px solid var(--light-grey-3);
- box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
- background-color: var(--white);
- color: var(--dark-grey);
- .nav-dropdown-items {
- .nav-item {
- width: 100%;
- justify-content: flex-start;
- border: 0;
- padding: 10px;
- font-size: 15.5px;
- height: 36px;
- background: var(--light-grey);
- border-radius: 5px;
- cursor: pointer;
- .checkbox-control {
- display: flex;
- align-items: center;
- margin-bottom: 0 !important;
- width: inherit;
- input {
- margin-right: 5px;
- }
- input[type="checkbox"] {
- opacity: 0;
- position: absolute;
- }
- label {
- display: flex;
- flex-direction: row;
- align-items: center;
- width: inherit;
- span {
- cursor: pointer;
- min-width: 24px;
- height: 24px;
- background-color: var(--white);
- display: inline-block;
- border: 1px solid var(--dark-grey-2);
- position: relative;
- border-radius: 3px;
- }
- p {
- margin-left: 10px;
- cursor: pointer;
- color: var(--black);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- input[type="checkbox"]:checked + label span::after {
- content: "";
- width: 18px;
- height: 18px;
- left: 2px;
- top: 2px;
- border-radius: 3px;
- background-color: var(--primary-color);
- position: absolute;
- }
- }
- &:focus {
- outline-color: var(--light-grey-3);
- }
- &:not(:last-of-type) {
- margin-bottom: 5px;
- }
- }
- }
- .tippy-content > div {
- display: flex;
- flex-direction: column;
- button {
- width: 150px;
- &:not(:last-of-type) {
- margin-bottom: 10px;
- }
- }
- }
- }
- .select {
- &:after {
- border-color: var(--primary-color);
- border-width: 1.5px;
- margin-top: -3px;
- }
- select {
- height: 36px;
- }
- }
- .button:focus,
- .button:active {
- border-color: var(--light-grey-2) !important;
- }
- .input:focus,
- .input:active,
- .textarea:focus,
- .textarea:active,
- .select select:focus,
- .select select:active {
- border-color: var(--primary-color) !important;
- }
- button.delete:focus {
- background-color: rgba(10, 10, 10, 0.3);
- }
- .tag {
- padding-right: 6px !important;
- }
- .button {
- &:hover,
- &:focus {
- filter: brightness(95%);
- }
- &.is-success {
- background-color: var(--green) !important;
- }
- &.is-primary {
- background-color: var(--primary-color) !important;
- }
- &.is-danger {
- background-color: var(--red) !important;
- }
- &.is-info {
- background-color: var(--primary-color) !important;
- }
- &.is-warning {
- background-color: var(--yellow) !important;
- }
- }
- .input,
- .button {
- height: 36px;
- }
- .fadein-helpbox-enter-active {
- transition-duration: 0.3s;
- transition-timing-function: ease-in;
- }
- .fadein-helpbox-leave-active {
- transition-duration: 0.3s;
- transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
- }
- .fadein-helpbox-enter-to,
- .fadein-helpbox-leave {
- max-height: 100px;
- overflow: hidden;
- }
- .fadein-helpbox-enter,
- .fadein-helpbox-leave-to {
- overflow: hidden;
- max-height: 0;
- }
- .control {
- margin-bottom: 5px !important;
- }
- .input-with-button {
- .control {
- margin-right: 0px !important;
- }
- input,
- select {
- width: 100%;
- height: 36px;
- border-radius: 3px 0 0 3px;
- border-right: 0;
- border-color: var(--light-grey-3);
- }
- .button {
- height: 36px;
- border-radius: 0 3px 3px 0;
- }
- }
- .page-title {
- margin: 0 0 50px 0;
- }
- .material-icons {
- user-select: none;
- -webkit-user-select: none;
- }
- .icon-with-button {
- margin-right: 3px;
- font-size: 18px;
- }
- .verified-song {
- font-size: 17px;
- color: var(--primary-color);
- }
- .section-title,
- h4.section-title {
- font-size: 26px;
- font-weight: 600;
- margin: 0px;
- }
- .section-description {
- font-size: 16px;
- font-weight: 400;
- margin-bottom: 10px !important;
- }
- .section-horizontal-rule {
- margin: 15px 0 30px 0;
- }
- .section-margin-bottom {
- height: 30px;
- }
- .margin-top-zero {
- margin-top: 0 !important;
- }
- .margin-bottom-zero {
- margin-bottom: 0 !important;
- }
- /** Universial items e.g. playlist items, queue items, activity items */
- .item-draggable {
- cursor: move;
- }
- .universal-item {
- display: flex;
- flex-direction: row;
- flex-grow: 1;
- align-items: center;
- justify-content: space-between;
- padding: 7.5px;
- border: 1px solid var(--light-grey-3);
- border-radius: 3px;
- overflow: hidden;
- .item-thumbnail {
- width: 65px;
- height: 65px;
- margin: -7.5px;
- border-radius: 3px 0 0 3px;
- }
- .item-title {
- font-size: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .item-description {
- font-size: 14px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .universal-item-actions {
- display: flex;
- flex-direction: row;
- margin-left: 10px;
- justify-content: center;
- @media screen and (max-width: 800px) {
- flex-wrap: wrap;
- }
- .action-dropdown-icon {
- display: flex;
- color: var(--primary-color);
- }
- .song-actions {
- display: flex;
- }
- .button {
- width: 146px;
- }
- i {
- cursor: pointer;
- color: var(--dark-grey);
- &:hover,
- &:focus {
- filter: brightness(90%);
- }
- &:not(:first-of-type) {
- margin-left: 5px;
- }
- }
- .play-icon {
- color: var(--green);
- }
- .edit-icon,
- .view-icon,
- .add-to-playlist-icon {
- color: var(--primary-color);
- }
- .hide-icon {
- color: var(--light-grey-3);
- }
- .stop-icon,
- .delete-icon {
- color: var(--red);
- }
- .report-icon {
- color: var(--yellow);
- }
- }
- }
- .save-button-mixin {
- min-width: 200px;
- &:disabled {
- background-color: var(--light-grey) !important;
- color: var(--black);
- }
- }
- .save-button-transition-enter-active {
- transition: all 0.1s ease;
- }
- .save-button-transition-enter {
- transform: translateX(20px);
- opacity: 0;
- }
- .youtube-icon {
- margin-right: 3px;
- height: 20px;
- width: 20px;
- -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
- mask: url("/assets/social/youtube.svg") no-repeat center;
- background-color: var(--youtube);
- }
- #forgot-password {
- display: flex;
- justify-content: flex-start;
- margin: 5px 0;
- }
- .steps-fade-enter-active,
- .steps-fade-leave-active {
- transition: all 0.3s ease;
- }
- .steps-fade-enter,
- .steps-fade-leave-to {
- opacity: 0;
- }
- .skip-step {
- background-color: var(--grey-3);
- color: var(--white);
- }
- #steps {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 50px;
- margin-top: 36px;
- @media screen and (max-width: 300px) {
- display: none;
- }
- .step {
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 100%;
- border: 1px solid var(--dark-grey);
- min-width: 50px;
- min-height: 50px;
- background-color: var(--white);
- font-size: 30px;
- cursor: pointer;
- &.selected {
- background-color: var(--primary-color);
- color: var(--white) !important;
- border: 0;
- }
- }
- .divider {
- display: flex;
- justify-content: center;
- width: 180px;
- height: 1px;
- background-color: var(--dark-grey);
- }
- }
- .content-box {
- margin-top: 90px;
- border-radius: 3px;
- background-color: var(--white);
- border: 1px solid var(--dark-grey);
- max-width: 580px;
- padding: 40px;
- @media screen and (max-width: 300px) {
- margin-top: 30px;
- padding: 30px 20px;
- }
- }
- .content-box-optional-helper {
- margin-top: 15px;
- color: var(--primary-color);
- text-decoration: underline;
- font-size: 16px;
- a {
- color: var(--primary-color);
- }
- }
- .content-box-title {
- font-size: 25px;
- color: var(--black);
- }
- .content-box-description {
- font-size: 14px;
- color: var(--dark-grey);
- }
- .content-box-inputs {
- margin-top: 35px;
- .input-with-button {
- .button {
- width: 105px;
- }
- @media screen and (max-width: 450px) {
- flex-direction: column;
- }
- }
- label {
- font-size: 11px;
- }
- #change-password-button {
- margin-top: 36px;
- width: 175px;
- }
- }
- #password-visibility-container {
- display: flex;
- align-items: center;
- a {
- width: 0;
- margin-left: -30px;
- z-index: 0;
- top: 2px;
- position: relative;
- color: var(--light-grey-1);
- }
- }
- .news-item {
- font-family: "Karla";
- border-radius: 5px;
- padding: 20px;
- border: unset !important;
- box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
- * {
- font-family: Karla, Arial, sans-serif;
- font-size: 16px;
- }
- h1 {
- font-size: 40px;
- &:first-of-type {
- margin-top: 0;
- }
- }
- h2 {
- font-size: 30px;
- }
- h3 {
- font-size: 25px;
- }
- h4,
- h5,
- h6 {
- font-size: 20px;
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin: 10px 0;
- }
- ul {
- list-style: unset;
- }
- li {
- margin-left: 30px;
- }
- blockquote {
- padding: 0px 15px;
- color: #6a737d;
- border-left: 0.25em solid #dfe2e5;
- }
- code {
- font-style: italic;
- }
- }
- </style>
|