Change all px unit to rem in scss files

pull/1773/head
LASER-Yi 2 years ago
parent 44c851eb31
commit 14888e01eb
No known key found for this signature in database
GPG Key ID: BB28903D50A1D408

@ -10,6 +10,7 @@ import {
faTimes,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import clsx from "clsx";
import { FunctionComponent, useCallback, useMemo, useState } from "react";
import {
Badge,
@ -128,19 +129,14 @@ export function ManualSearchModal<T extends SupportType>(
return <span className="text-muted">Cannot get release info</span>;
}
const cls = [
"release-container",
"d-flex",
"justify-content-between",
"align-items-center",
];
if (value.length > 1) {
cls.push("release-multi");
}
return (
<div className={cls.join(" ")} onClick={() => setOpen((o) => !o)}>
<div
className={clsx(
"release-container d-flex justify-content-between align-items-center",
{ "release-multi": value.length > 1 }
)}
onClick={() => setOpen((o) => !o)}
>
<div className="text-container">
<span className="release-text">{value[0]}</span>
<Collapse in={open}>

@ -7,8 +7,9 @@ $dark: #4f566f;
.progress-bar {
cursor: default;
text-shadow: -2px -2px 5px $primary, 2px -2px 5px $primary,
-2px 2px 5px $primary, 2px 2px 5px $primary;
text-shadow: -0.16rem -0.16rem 0.24rem $primary,
0.16rem -0.16rem 0.24rem $primary, -0.16rem 0.16rem 0.24rem $primary,
0.16rem 0.16rem 0.24rem $primary;
overflow: visible;
}

@ -57,7 +57,7 @@
#{$side}: {
color: rgba(0, 0, 0, 0.125);
style: solid;
width: 1px;
width: 0.08rem;
}
}
}
@ -92,13 +92,13 @@ $sidebar-active-color: #252833;
span {
font-size: 0.85rem;
letter-spacing: 0.5px;
letter-spacing: 0.04rem;
}
scrollbar-width: none;
&::-webkit-scrollbar {
width: 0px;
height: 0px;
width: 0;
height: 0;
}
.title {
@ -112,7 +112,7 @@ $sidebar-active-color: #252833;
top: 0;
bottom: 0;
left: 0;
width: 3px;
width: 0.1rem;
z-index: 10;
background-color: bs.$primary;
}

@ -1,2 +1,2 @@
$sidebar-width: 190px;
$header-height: 60px;
$sidebar-width: 12.6rem;
$header-height: 3.6rem;

@ -2,5 +2,5 @@
.chart-container {
height: calc(100vh - #{vars.$header-height});
padding-bottom: 12px;
padding-bottom: 0.6rem;
}

@ -3,7 +3,7 @@
.settings-card {
cursor: pointer;
min-height: 85px;
min-height: 5.4rem;
transition: {
duration: 0.2s;

@ -13,7 +13,7 @@
border: none;
border-bottom: {
color: white !important;
width: 1px !important;
width: 0.08rem !important;
style: solid !important;
}
background-color: transparent;

@ -8,8 +8,8 @@
background-color: red;
content: "";
border-radius: 50%;
height: 6px;
width: 6px;
height: 0.4rem;
width: 0.4rem;
right: 10%;
top: 10%;
}
@ -30,12 +30,6 @@
word-wrap: break-word;
white-space: normal;
}
.progress .progress-bar {
text-shadow: -2px -2px 5px bs.$primary, 2px -2px 5px bs.$primary,
-2px 2px 5px bs.$primary, 2px 2px 5px bs.$primary;
overflow: visible;
}
}
.notification-center-notification {

@ -2,7 +2,7 @@
flex-wrap: nowrap;
overflow: hidden;
.text-container {
max-width: 500px;
max-width: 36rem;
.release-text {
text-overflow: ellipsis;
overflow-wrap: break-word;

@ -8,12 +8,12 @@
cursor: pointer;
}
.rc-slider-handle {
border: 3px solid bs.$primary;
border: 0.2rem solid bs.$primary;
margin-top: 0;
top: 50%;
transform: translate(-50%, -50%) !important;
width: 18px;
height: 18px;
width: 1.2rem;
height: 1.2rem;
cursor: pointer;
.rc-slider-handle-tips-always {

Loading…
Cancel
Save