Design Patch 8 (#1316)

* Design patch 8 - Fixing issues & updating menus
This commit is contained in:
Rave | 図書館猫 2022-04-09 16:07:06 +02:00 committed by GitHub
parent 4b93be049c
commit 65d0c9c6c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 76 additions and 47 deletions

View file

@ -29,10 +29,10 @@
// height:1em; // height:1em;
margin-top: 1px; margin-top: 1px;
padding-top: 2px; padding-top: 2px;
}
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
font-size: var(--font-small); // font-size: var(--font-small) !important;
}
} }
} }
@ -123,7 +123,8 @@ a.button--alt {
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
.button__label { .button__label {
div:first-of-type { div:first-of-type {
top: 23% !important; //top: 23% !important;
top: 0%;
} }
} }
} }

View file

@ -11,7 +11,7 @@
margin-bottom: var(--spacing-m); margin-bottom: var(--spacing-m);
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
overflow-y: scroll; // overflow-y: scroll;
height: 100%; height: 100%;
border-top: 1px solid var(--color-border); border-top: 1px solid var(--color-border);
// background-color:var(--color-background); // background-color:var(--color-background);

View file

@ -127,6 +127,16 @@ $actions-z-index: 2;
.media__info-text:first-of-type { .media__info-text:first-of-type {
opacity: 1; opacity: 1;
} }
.MuiAutocomplete-root {
}
.MuiOutlinedInput-root {
background-color: var(--color-input-bg);
.MuiOutlinedInput-notchedOutline {
border: unset !important;
}
}
} }
.channel-cover { .channel-cover {
position: relative; position: relative;
@ -749,7 +759,6 @@ $actions-z-index: 2;
} }
.claim__menu-button { .claim__menu-button {
right: calc(var(--spacing-m) - 8px) !important;
margin-top: var(--spacing-xxs); margin-top: var(--spacing-xxs);
.icon { .icon {
@ -757,6 +766,9 @@ $actions-z-index: 2;
} }
&:hover { &:hover {
background-color: rgba(var(--color-header-button-base), 0.9);
border-radius: 50%;
outline: 2px solid var(--color-header-background);
.icon { .icon {
stroke: var(--color-primary); stroke: var(--color-primary);
} }
@ -780,11 +792,6 @@ $actions-z-index: 2;
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
.claim-preview--channel { .claim-preview--channel {
a:first-of-type {
.button__content {
align-items: unset;
}
}
.claim-preview__actions { .claim-preview__actions {
flex-flow: row; flex-flow: row;
.section__actions { .section__actions {

View file

@ -5,7 +5,8 @@
background-color: rgba(var(--color-header-background-base), 0.6); background-color: rgba(var(--color-header-background-base), 0.6);
.claim__menu-button { .claim__menu-button {
margin-right: var(--spacing-m); // margin-right: var(--spacing-m);
right: 9px;
} }
.media__thumb { .media__thumb {
@ -24,13 +25,23 @@
} }
} }
.claim__menu-button {
.icon {
transition: transform 0.2s;
}
}
[aria-expanded='true'].claim__menu-button { [aria-expanded='true'].claim__menu-button {
opacity: 1; opacity: 1;
background-color: var(--color-header-background); // background-color: var(--color-header-background);
border-radius: var(--border-radius); background-color: rgba(var(--color-header-button-base), 0.9);
//border-radius: var(--border-radius);
border-radius: 50%;
outline: 2px solid var(--color-header-background);
.icon { .icon {
stroke: var(--color-primary); stroke: var(--color-primary) !important;
transform: rotate(90deg);
} }
} }
@ -308,7 +319,7 @@
} }
.claim__menu-button { .claim__menu-button {
right: -8px !important; // right: -8px !important;
margin-top: 6px; margin-top: 6px;
&:hover { &:hover {
@ -619,6 +630,13 @@
.claim-preview__actions { .claim-preview__actions {
margin-top: 0px; margin-top: 0px;
} }
@media (max-width: $breakpoint-small) {
a.button--no-style:first-of-type {
.button__content {
align-items: unset;
}
}
}
} }
.claim-preview__text { .claim-preview__text {

View file

@ -89,7 +89,7 @@ $thumbnailWidthSmall: 2rem;
.comment__thumbnail-wrapper { .comment__thumbnail-wrapper {
flex: 0; flex: 0;
margin-top: var(--spacing-xxs); // margin-top: var(--spacing-xxs);
} }
.comment__content { .comment__content {
@ -189,12 +189,22 @@ $thumbnailWidthSmall: 2rem;
} }
} }
.menu__button {
.icon {
transition: transform 0.2s;
}
}
[aria-expanded='true'].menu__button { [aria-expanded='true'].menu__button {
opacity: 1; opacity: 1;
background: var(--color-header-background); // background: var(--color-header-background);
border-radius: var(--border-radius); background-color: rgba(var(--color-header-button-base), 0.9);
// border-radius: var(--border-radius);
border-radius: 50%;
outline: 2px solid var(--color-header-background);
.icon { .icon {
stroke: var(--color-primary); stroke: var(--color-primary);
transform: rotate(90deg);
} }
} }
} }
@ -342,7 +352,7 @@ $thumbnailWidthSmall: 2rem;
.comment__menu-option { .comment__menu-option {
display: flex; display: flex;
align-items: center; align-items: center;
padding: var(--spacing-s); padding: var(--spacing-xs) var(--spacing-s) var(--spacing-xs) var(--spacing-s);
font-size: var(--font-xsmall); font-size: var(--font-xsmall);
.menu__link { .menu__link {

View file

@ -189,11 +189,6 @@ body {
margin-top: var(--spacing-xs) !important; margin-top: var(--spacing-xs) !important;
.claim-preview__wrapper { .claim-preview__wrapper {
padding: 0 !important; padding: 0 !important;
a {
.button__content {
align-items: unset;
}
}
.claim-preview-info { .claim-preview-info {
margin-top: 2px; margin-top: 2px;
margin-bottom: -2px; margin-bottom: -2px;

View file

@ -193,6 +193,12 @@
top: calc(var(--spacing-m) * -1) !important; top: calc(var(--spacing-m) * -1) !important;
left: calc(var(--spacing-m) * -1) !important; left: calc(var(--spacing-m) * -1) !important;
} }
.claim__menu-button {
right: calc(var(--spacing-m) - 8px) !important;
}
&:hover {
background-color: rgba(var(--color-header-background-base), 0.9);
}
} }
.claim-preview__wrapper { .claim-preview__wrapper {
.claim-preview__repost-author { .claim-preview__repost-author {
@ -240,7 +246,7 @@
padding: var(--spacing-m) !important; padding: var(--spacing-m) !important;
.claim__menu-button { .claim__menu-button {
right: calc(var(--spacing-m) - 8px) !important; // right: calc(var(--spacing-m) - 8px) !important;
margin-top: var(--spacing-xxs); margin-top: var(--spacing-xxs);
.icon { .icon {

View file

@ -86,7 +86,7 @@
} }
.card__main-actions .commentCreate .MuiOutlinedInput-notchedOutline { .card__main-actions .commentCreate .MuiOutlinedInput-notchedOutline {
border: 1px solid var(--color-border) !important; // border: 1px solid var(--color-border) !important;
border-radius: var(--border-radius) !important; border-radius: var(--border-radius) !important;
} }

View file

@ -158,8 +158,9 @@ reach-portal {
.menu__link { .menu__link {
display: flex; display: flex;
align-items: center; align-items: center;
padding: var(--spacing-s); // padding: var(--spacing-s);
padding-right: var(--spacing-l); // padding-right: var(--spacing-l);
padding: var(--spacing-xs) var(--spacing-s) var(--spacing-xs) var(--spacing-s);
height: var(--button-height); height: var(--button-height);
.icon { .icon {

View file

@ -197,15 +197,12 @@
} }
button { button {
height: 2rem; // height: 2rem;
height: var(--height-button);
padding: 0px var(--spacing-s); padding: 0px var(--spacing-s);
.button__content { .button__content {
height: unset; // height: unset;
span {
font-size: var(--font-xxsmall);
}
} }
} }

View file

@ -116,7 +116,8 @@ ol {
padding-bottom: var(--spacing-m); padding-bottom: var(--spacing-m);
.claim__menu-button { .claim__menu-button {
right: -8px; // right: -8px;
right: 2px;
} }
} }
} }
@ -1136,16 +1137,6 @@ img {
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
padding: var(--spacing-s); padding: var(--spacing-s);
padding-top: 0; padding-top: 0;
.card__main-actions {
.claim-preview__wrapper {
a {
.button__content {
align-items: unset;
}
}
}
}
} }
} }
@ -1223,6 +1214,9 @@ img {
.claim-link { .claim-link {
width: 40%; width: 40%;
margin-top: var(--spacing-xs); margin-top: var(--spacing-xs);
@media (max-width: $breakpoint-small) {
width: 100%;
}
} }
} }
} }

View file

@ -117,7 +117,7 @@
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
:root { :root {
--font-body: 0.8rem; // --font-body: 0.8rem;
--body-scrollbar-width: 0px; --body-scrollbar-width: 0px;
} }
} }