Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

5.2 KB
Raw Blame
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    min-height: 100vh;
    height: auto;
    margin: 0 auto;
}

.token-entry {
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background-color: light-dark(#f7faf8, #1c211e);
}

.token-entry-card {
    width: min(100%, 440px);
    padding: 36px;
    box-sizing: border-box;
    border: 1px solid light-dark(#e1e9e3, #39443d);
    border-radius: 18px;
    background-color: light-dark(#ffffff, #292f2b);
    box-shadow: 0 16px 48px light-dark(rgb(29 73 44 / 8%), rgb(0 0 0 / 20%));
}

.token-entry-image {
    display: block;
    width: 96px;
    height: auto;
    margin: 0 auto 12px;
}

.token-entry h1 {
    margin: 0 0 8px;
    font-size: 36px;
}

.token-entry p {
    margin: 0;
    color: light-dark(#596860, #c0cac2);
    line-height: 1.5;
}

.token-entry .token-entry-hint {
    margin-top: 20px;
    font-size: 13px;
}

.token-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 360px;
    margin: 8px auto;
}

.token-entry .token-form {
    max-width: none;
    margin-top: 28px;
}

.token-entry .MuiInputLabel-root,
.token-entry .MuiOutlinedInput-root {
    color: inherit;
}

.token-entry .MuiInputAdornment-root,
.token-entry .MuiInputAdornment-root .MuiIconButton-root {
    color: inherit;
}

.token-entry .MuiOutlinedInput-notchedOutline {
    border-color: light-dark(#cbd7ce, #637067);
}

.token-entry .MuiInputLabel-root.Mui-focused {
    color: #168f40;
}

.token-entry
    .MuiOutlinedInput-root.Mui-focused
    .MuiOutlinedInput-notchedOutline {
    border-color: #1db954;
}

.token-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.token-entry .token-form-actions .token-submit-button {
    width: 100%;
    height: 48px;
}

.token-submit-button.MuiButton-contained {
    color: white;
    background-color: #1db954;
}

.token-submit-button.MuiButton-contained:hover {
    background-color: #00b33c;
}

.input-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin: 20px;
}

.horizontal-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 1200px;
    margin-top: 90px;
    padding: 20px;
    border-radius: 10px;
    background-color: light-dark(#fcfcfc, #1f1f1f);
}

.link-text {
    display: flex;
    align-items: center;
    color: inherit;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
}

.link-text:hover {
    color: #1db954;
}

.text-fields {
    display: flex;
    gap: 20px;
}

.fetch-button-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 10px;
}

.fetch-button-container .fetch-button {
    width: 150px;
    height: 56px;
    border: none;
    color: white;
    background-color: #1db954;
}

.fetch-button-container .fetch-button:hover {
    background-color: #00b33c;
}

.fetch-button-container .ad-hoc-actions-button {
    height: 40px;
    border: 1px solid rgb(0 0 0 / 14%);
    border-radius: 8px;
    color: #4a4a4a;
    font-weight: 600;
    text-transform: none;
}

.fetch-button-container .ad-hoc-actions-button:hover {
    background-color: rgb(29 185 84 / 8%);
    border-color: rgb(29 185 84 / 42%);
    color: #168f40;
}

@media (prefers-color-scheme: dark) {
    .fetch-button-container .ad-hoc-actions-button {
        border-color: rgb(255 255 255 / 35%);
        color: rgb(255 255 255 / 87%);
    }

    .fetch-button-container .ad-hoc-actions-button:hover {
        background-color: rgb(29 185 84 / 16%);
        border-color: #1db954;
        color: #5cdb89;
    }

    .horizontal-group .MuiInputLabel-root {
        color: rgb(255 255 255 / 70%);
    }

    .horizontal-group .MuiOutlinedInput-root {
        color: rgb(255 255 255 / 87%);
    }

    .horizontal-group .MuiOutlinedInput-notchedOutline {
        border-color: rgb(255 255 255 / 23%);
    }

    .horizontal-group
        .MuiOutlinedInput-root:hover
        .MuiOutlinedInput-notchedOutline {
        border-color: rgb(255 255 255 / 87%);
    }
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.error-message {
    margin-top: 16px;
    color: red;
    font-size: 1.5em;
    font-weight: bold;
}

.empty-state {
    margin-top: 120px;
    padding: 0 24px;
}

.empty-state h2 {
    margin: 16px 0 6px;
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: light-dark(#596860, #c0cac2);
}

@media screen and (max-width: 475px) {
    .token-entry-card {
        padding: 28px 24px;
    }

    .token-entry h1 {
        font-size: 32px;
    }

    .link-text {
        font-size: 30px;
        text-align: center;
    }

    .input-form {
        max-width: 400px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .horizontal-group {
        width: 500px;
        flex-direction: column;
        gap: 25px;
    }

    .text-fields {
        width: fit-content;
        flex-direction: column;
        justify-content: center;
    }
}