revite/src/pages/settings/panes/Panes.module.scss

412 lines
8.4 KiB
SCSS
Raw Normal View History

2021-06-19 17:37:12 -04:00
.user {
.banner {
gap: 24px;
width: 100%;
padding: 1em;
display: flex;
border-radius: 6px;
align-items: center;
background: var(--secondary-header);
overflow: hidden;
2021-06-19 17:37:12 -04:00
.avatar {
cursor: pointer;
2021-06-19 17:37:12 -04:00
transition: 0.2s ease filter;
&:hover {
filter: brightness(80%);
}
2021-06-19 17:37:12 -04:00
}
.username {
font-size: 24px;
font-weight: 600;
2021-06-19 17:37:12 -04:00
}
2021-07-06 07:16:29 -04:00
.userid {
font-size: .875rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 4px;
color: var(--tertiary-foreground);
}
2021-06-19 17:37:12 -04:00
}
.details {
display: flex;
margin-top: 1em;
flex-direction: column;
> div {
gap: 12px;
padding: 4px;
display: flex;
align-items: center;
flex-direction: row;
2021-07-05 17:49:57 -04:00
margin-bottom: 5px;
> svg {
flex-shrink: 0;
}
2021-06-19 17:37:12 -04:00
}
.detail {
flex-grow: 1;
2021-07-05 17:49:57 -04:00
.subtext {
display: inline;
margin: 0.4em 0;
font-size: 14px;
font-weight: 600;
color: var(--foreground);
text-transform: uppercase;
}
2021-06-19 17:37:12 -04:00
}
p {
margin: 0;
2021-07-05 17:49:57 -04:00
font-size: 1rem;
2021-06-19 17:37:12 -04:00
color: var(--tertiary-foreground);
}
}
.preview {
width: 100%;
display: grid;
place-items: center;
grid-template-columns: minmax(auto, 100%);
> div {
width: 100%;
max-width: 560px;
}
}
.row {
gap: 20px;
display: flex;
.pfp {
display: flex;
align-items: center;
flex-direction: column;
}
.background {
flex-grow: 1;
}
}
.buttons {
display: flex;
gap: 12px;
}
2021-06-19 17:37:12 -04:00
}
.appearance {
.theme {
min-width: 0;
2021-06-19 17:37:12 -04:00
display: flex;
flex-direction: column;
}
.themes {
gap: 8px;
display: flex;
img {
cursor: pointer;
border-radius: 8px;
transition: border 0.3s;
border: 3px solid transparent;
&[data-active="true"] {
cursor: default;
border: 3px solid var(--accent);
&:hover {
border: 3px solid var(--accent);
}
}
&:hover {
border: 3px solid var(--tertiary-background);
}
}
}
details {
font-size: 14px;
font-weight: 700;
text-transform: uppercase;
color: var(--secondary-foreground);
summary {
cursor: pointer;
}
/*summary {
display: flex;
flex-grow: 1;
&::after {
display: flex;
align-items: flex-end;
content: "gh";
}
}*/
/*summary::-webkit-details-marker,
summary::marker {
content: "";
}*/
}
.emojiPack {
gap: 12px;
display: flex;
flex-direction: column;
.row {
gap: 12px;
display: flex;
> div {
flex: 1;
display: flex;
flex-direction: column;
}
}
.button {
padding: 2rem 1.5rem;
display: grid;
place-items: center;
cursor: pointer;
border-radius: 8px;
transition: border 0.3s;
background: var(--hover);
border: 3px solid transparent;
img {
max-width: 100%;
}
&[data-active="true"] {
cursor: default;
background: var(--secondary-background);
border: 3px solid var(--accent);
&:hover {
border: 3px solid var(--accent);
}
}
&:hover {
background: var(--secondary-background);
border: 3px solid var(--tertiary-background);
}
}
h4 {
text-transform: unset;
a {
2021-07-05 10:24:25 -04:00
2021-06-19 17:37:12 -04:00
opacity: 0.7;
color: var(--accent);
font-weight: 600;
&:hover {
text-decoration: underline;
}
2021-07-05 10:24:25 -04:00
}
@media only screen and (max-width: 800px) {
a {
display: block;
}
2021-06-19 17:37:12 -04:00
}
}
}
.display {
gap: 8px;
display: flex;
flex-direction: column;
}
.actions {
gap: 8px;
display: flex;
flex-wrap: wrap;
margin-bottom: 8px;
}
.overrides {
display: grid;
grid-template-columns: 1fr 1fr;
.entry {
gap: 8px;
padding: 2px;
margin-top: 8px;
.override {
display: flex;
}
span {
flex: 1;
display: block;
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
text-transform: capitalize;
}
.picker {
width: 30px;
height: 30px;
flex-shrink: 0;
border-radius: 4px;
overflow: hidden;
2021-06-28 05:36:37 -04:00
margin-inline-end: 4px;
2021-06-19 17:37:12 -04:00
//TOFIX - Looks wonky on Chromium
border: 1px solid black;
input {
opacity: 0;
width: 30px;
height: 30px;
border: none;
display: block;
cursor: pointer;
}
}
.text {
border-radius: 4px;
padding: 0 4px 0;
}
}
}
}
.sessions {
.session {
display: flex;
}
.entry {
margin: 8px 0;
padding: 16px;
display: flex;
border-radius: 6px;
flex-direction: column;
background: var(--secondary-header);
&[data-active="true"] {
color: var(--primary-background);
background: var(--accent);
margin-bottom: 20px;
}
&[data-deleting="true"] {
opacity: 0.5;
}
.name {
font-weight: 600;
}
.icon {
gap: 8px;
display: flex;
padding-right: 12px;
align-items: center;
svg {
height: 42px;
}
div svg {
height: 24px;
}
}
.label {
2021-07-05 15:06:08 -04:00
margin-bottom: 8px;
2021-06-19 17:37:12 -04:00
color: var(--primary-text);
font-size: 12px;
font-weight: 600;
}
.info {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
.name {
text-transform: capitalize;
}
.time {
font-size: 12px;
color: var(--teriary-text);
}
}
}
}
.languages {
.list {
margin-bottom: 1em;
2021-06-19 17:37:12 -04:00
.entry {
height: 50px;
}
.entry > span > span {
gap: 20px;
2021-06-19 17:37:12 -04:00
display: flex;
align-items: center;
flex-direction: row;
.flag {
display: flex;
font-size: 42px;
line-height: 48px;
> div {
display: flex;
align-items: center;
justify-content: center;
}
}
.description {
color: var(--primary-text);
}
}
}
}
.feedback .options {
gap: 10px;
display: flex;
flex-direction: column;
}
.experiments { /* TOFIX: Center the "No new experiments available at this time" text without having a scrollbar */
height: 100%;
.empty {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
}