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

96 lines
1.5 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;
2022-05-06 14:04:39 +08:00
padding: 16px 0 8px;
2022-01-08 22:23:48 +08:00
flex-direction: column;
box-sizing: border-box;
user-select: none;
overflow: hidden;
2022-09-09 16:19:13 +08:00
$maxLogo: 90px;
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;
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%;
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;
right: 2px;
2022-01-16 03:11:07 +08:00
bottom: 10px;
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 {
.layout__right .the-content {
top: 30px;
}
2022-02-20 23:46:13 +08:00
}
}