Some css linting warning fixes (#6364)

This commit is contained in:
Jaco 2021-10-23 07:36:18 +02:00 committed by GitHub
parent b87925e016
commit 0e5d1dd86f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 56 deletions

View File

@ -137,16 +137,6 @@ export default React.memo(styled(Expander)`
}
}
&.hasContent .ui--Expander-summary {
cursor: pointer;
}
&.isPadded {
.ui--Expander-summary {
margin-left: 2.25rem;
}
}
&.withBreaks .ui--Expander-content {
white-space: normal;
}
@ -189,4 +179,12 @@ export default React.memo(styled(Expander)`
text-overflow: ellipsis;
}
}
&.hasContent .ui--Expander-summary {
cursor: pointer;
}
&.isPadded .ui--Expander-summary {
margin-left: 2.25rem;
}
`);

View File

@ -23,14 +23,6 @@ export default React.memo(styled(FilterOverlay)`
display: none;
right: calc(50% - var(--width-half) + 1.5rem);
.ui--Labelled label {
display: none;
}
&& .ui--Input {
margin: 0.29rem 0;
}
${media.DESKTOP`
display: flex;
justify-content: flex-end;
@ -50,6 +42,14 @@ export default React.memo(styled(FilterOverlay)`
}
`};
.ui--Labelled label {
display: none;
}
&& .ui--Input {
margin: 0.29rem 0;
}
/* hardcoded: var(--width-full) doesn't work in media */
@media (max-width: 1750px) {
right: 1.5rem;

View File

@ -93,14 +93,6 @@ export default React.memo(styled(LinkExternal)`
text-align: center;
}
&.isLogo {
line-height: 1;
.links {
white-space: nowrap;
}
}
.links {
img {
border-radius: 50%;
@ -128,4 +120,12 @@ export default React.memo(styled(LinkExternal)`
margin-left: 0.3rem;
}
}
&.isLogo {
line-height: 1;
.links {
white-space: nowrap;
}
}
`);

View File

@ -97,6 +97,26 @@ export default React.memo(styled(Progress)`
opacity: 0.125;
}
.inner {
align-items: center;
background: var(--bg-inverse);
border-radius: 100%;
bottom: 0.375rem;
color: var(--color-summary);
display: flex;
justify-content: center;
left: 0.375rem;
position: absolute;
right: 0.375rem;
top: 0.375rem;
div {
line-height: 1;
font-size: 1.1rem;
text-shadow: 0 0 2px #f5f3f1;
}
}
.clip {
div {
border-radius: 100%;
@ -125,24 +145,4 @@ export default React.memo(styled(Progress)`
clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
}
.inner {
align-items: center;
background: var(--bg-inverse);
border-radius: 100%;
bottom: 0.375rem;
color: var(--color-summary);
display: flex;
justify-content: center;
left: 0.375rem;
position: absolute;
right: 0.375rem;
top: 0.375rem;
div {
line-height: 1;
font-size: 1.1rem;
text-shadow: 0 0 2px #f5f3f1;
}
}
`);

View File

@ -43,6 +43,11 @@ export default React.memo(styled(Spinner)`
margin-top: 0.5rem;
}
img {
border: 1px solid transparent;
border-radius: 10rem;
}
&.variant-cover {
bottom: 0;
left: 0;
@ -55,11 +60,6 @@ export default React.memo(styled(Spinner)`
}
}
img {
border: 1px solid transparent;
border-radius: 10rem;
}
.text {
color: inherit !important;
margin: 0.25rem auto 1.5rem auto;

View File

@ -69,11 +69,6 @@ export default React.memo(styled(Tooltip)`
z-index: 1002;
}
&.address div {
overflow: hidden;
text-overflow: ellipsis;
}
table {
border: 0;
overflow: hidden;
@ -100,6 +95,11 @@ export default React.memo(styled(Tooltip)`
margin-top: 0.5rem;
}
&.address div {
overflow: hidden;
text-overflow: ellipsis;
}
.faded {
margin-top: 0;
opacity: 0.75 !important;