Files
clash-verge-rev/src/assets/styles/layout.scss
T

125 lines
2.1 KiB
SCSS
Raw Normal View History

2021-12-08 23:36:34 +08:00
.layout {
width: 100%;
2022-01-08 22:23:48 +08:00
height: 100vh;
2021-12-08 23:36:34 +08:00
display: flex;
2021-12-11 20:35:02 +08:00
overflow: hidden;
2021-12-08 23:36:34 +08:00
2022-01-08 22:23:48 +08:00
&__left {
2021-12-09 23:28:57 +08:00
flex: 1 0 25%;
2022-01-08 22:23:48 +08:00
display: flex;
height: 100%;
2021-12-11 20:35:02 +08:00
max-width: 225px;
min-width: 125px;
2023-11-12 00:10:23 +08:00
padding: 36px 0 28px;
position: relative;
2022-01-08 22:23:48 +08:00
flex-direction: column;
box-sizing: border-box;
user-select: none;
2022-11-23 17:42:01 +08:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
2022-01-08 22:23:48 +08:00
overflow: hidden;
2023-11-11 17:12:57 +08:00
background-color: var(--background-color-alpha);
2022-01-08 22:23:48 +08:00
2022-09-12 13:42:13 +08:00
$maxLogo: 100px;
2022-09-09 16:19:13 +08:00
2022-01-08 22:23:48 +08:00
.the-logo {
2022-01-10 02:05:35 +08:00
position: relative;
2022-09-09 16:19:13 +08:00
flex: 0 1 $maxLogo;
2022-01-08 22:23:48 +08:00
width: 100%;
2022-09-09 16:19:13 +08:00
max-width: $maxLogo + 32px;
max-height: $maxLogo;
2022-01-08 22:23:48 +08:00
margin: 0 auto;
2022-05-06 14:04:39 +08:00
padding: 0 16px;
2022-01-08 22:23:48 +08:00
text-align: center;
box-sizing: border-box;
2022-01-10 02:05:35 +08:00
2022-03-30 12:36:39 +08:00
img,
svg {
2022-09-09 16:19:13 +08:00
width: 100%;
height: 100%;
2022-03-30 12:36:39 +08:00
pointer-events: none;
2023-10-20 11:52:40 +08:00
fill: var(--primary-main);
#bg {
fill: var(--background-color);
}
2022-01-16 03:11:07 +08:00
}
2022-01-10 02:05:35 +08:00
.the-newbtn {
position: absolute;
2022-09-09 16:19:13 +08:00
right: 10px;
bottom: 0px;
2022-01-10 02:05:35 +08:00
transform: scale(0.8);
}
2022-01-08 22:23:48 +08:00
}
.the-menu {
2022-05-06 14:04:39 +08:00
flex: 1 1 80%;
2022-01-08 22:23:48 +08:00
overflow-y: auto;
margin-bottom: 8px;
}
.the-traffic {
flex: 0 0 60px;
> div {
margin: 0 auto;
}
}
2021-12-09 23:28:57 +08:00
}
2022-01-08 22:23:48 +08:00
&__right {
2021-12-11 20:35:02 +08:00
position: relative;
2021-12-09 23:28:57 +08:00
flex: 1 1 75%;
2022-01-08 22:23:48 +08:00
height: 100%;
2023-11-11 17:12:57 +08:00
background-color: var(--background-color-alpha);
2021-12-11 20:35:02 +08:00
2022-01-08 22:23:48 +08:00
.the-bar {
2022-01-16 03:11:07 +08:00
position: absolute;
top: 2px;
right: 8px;
height: 36px;
2022-01-08 22:23:48 +08:00
display: flex;
align-items: center;
box-sizing: border-box;
2022-01-16 03:11:07 +08:00
z-index: 2;
2022-01-08 22:23:48 +08:00
}
2021-12-08 23:36:34 +08:00
2022-01-08 22:23:48 +08:00
.the-content {
2022-01-16 03:11:07 +08:00
position: absolute;
2022-03-19 15:35:59 +08:00
top: 0;
2022-01-25 01:48:26 +08:00
left: 0;
2023-11-11 17:12:57 +08:00
right: 28px;
bottom: 28px;
2021-12-08 23:36:34 +08:00
}
}
}
2022-02-20 23:46:13 +08:00
2022-03-22 01:36:06 +08:00
.linux,
.windows,
.unknown {
&.layout {
2022-09-11 17:50:58 +08:00
$maxLogo: 115px;
.layout__left .the-logo {
flex: 0 1 $maxLogo;
max-width: $maxLogo + 32px;
max-height: $maxLogo;
}
2022-03-22 01:36:06 +08:00
.layout__right .the-content {
top: 30px;
}
2022-02-20 23:46:13 +08:00
}
}
2023-01-16 22:57:53 +08:00
.macos {
&.layout {
.layout__left {
padding-top: 24px;
}
.layout__right .the-content {
top: 20px;
}
}
}