Add files
This commit is contained in:
137
ReallifeGamemode.Client/assets/css/onlinelist/style.scss
Normal file
137
ReallifeGamemode.Client/assets/css/onlinelist/style.scss
Normal file
@@ -0,0 +1,137 @@
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
height: 100vh;
|
||||
background: transparent;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
html, body { margin: unset; }
|
||||
*, *:before, *:after { box-sizing: inherit; }
|
||||
|
||||
body {
|
||||
margin: 10vh auto 0;
|
||||
|
||||
width: 32vw;
|
||||
color: white;
|
||||
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h1, h2 {
|
||||
margin: unset;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
h1 { font-size: 1.75em; }
|
||||
h2 { font-size: 1.125em; }
|
||||
|
||||
.heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 1.5em;
|
||||
padding: 1em 1em 0;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
height: 80vh;
|
||||
overflow-y: scroll;
|
||||
|
||||
border-radius: .25em;
|
||||
background-color: rgba(0, 0, 0, .75);
|
||||
|
||||
&::-webkit-scrollbar { display: none; }
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
border-radius: inherit;
|
||||
|
||||
th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
text-align: left;
|
||||
z-index: 2;
|
||||
|
||||
background-color: black;
|
||||
|
||||
&:first-child { border-top-left-radius: .25em; }
|
||||
&:last-child { border-top-right-radius: .25em; }
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: .75em .5em;
|
||||
|
||||
&:first-child { padding-left: 1em; }
|
||||
&:last-child { padding-right: 1em; }
|
||||
}
|
||||
|
||||
tr {
|
||||
td {
|
||||
overflow: hidden;
|
||||
|
||||
&:nth-child(1) { width: 7ch !important; }
|
||||
&:nth-child(2) {
|
||||
max-width: 36ch;
|
||||
font-weight: bold;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
|
||||
&::-webkit-scrollbar { display: none; }
|
||||
}
|
||||
&:nth-child(3) { width: 14ch !important; }
|
||||
&:nth-child(4) { width: 13ch !important; }
|
||||
}
|
||||
|
||||
&:nth-child(even) { background-color: rgba(0, 0, 0, .25); }
|
||||
}
|
||||
}
|
||||
|
||||
.group {
|
||||
&::before {
|
||||
content: "";
|
||||
height: .65em;
|
||||
width: .65em;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
color: inherit;
|
||||
border: 2px solid rgba(255, 255, 255, 0.125);
|
||||
|
||||
margin-right: .4em;
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
&--0::before { background-color: rgb(255, 255, 255); }
|
||||
&--1::before { background-color: rgb(0, 95, 190); }
|
||||
&--2::before { background-color: rgb(200, 0, 0); }
|
||||
&--3::before { background-color: rgb(0, 0, 170); }
|
||||
&--4::before { background-color: rgb(255, 180, 0); }
|
||||
&--5::before { background-color: rgb(255, 180, 0); }
|
||||
&--6::before { background-color: rgb(255, 255, 255); }
|
||||
&--7::before { background-color: rgb(0, 64, 0); }
|
||||
&--8::before { background-color: rgb(171, 0, 150); }
|
||||
&--9::before { background-color: rgb(0, 166, 133); }
|
||||
}
|
||||
|
||||
ol.inline {
|
||||
display: flex;
|
||||
|
||||
list-style: unset;
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: unset;
|
||||
|
||||
li:not(:last-child) { margin-right: 1em; }
|
||||
}
|
||||
|
||||
ol.inline.stats {
|
||||
justify-content: center;
|
||||
|
||||
&:first-of-type { margin-top: 1em !important; }
|
||||
&:last-of-type { margin-bottom: 1em; }
|
||||
&:not(:last-of-type) { margin-bottom: .125em; }
|
||||
|
||||
abbr { text-decoration: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user