NDOJ/resources/users.scss

590 lines
10 KiB
SCSS
Raw Normal View History

2020-12-26 01:02:14 +00:00
@import "vars";
2020-01-21 06:35:58 +00:00
@media(min-width: 400px) {
#content-right {
&.users {
padding-left: 1.5em;
}
}
}
#content-right {
&.users {
flex: 40%;
max-width: 17em;
}
}
#content-left {
&.users {
flex: 60%;
}
}
td.user-name {
text-align: left;
}
th.header.rank {
padding-left: 5px;
}
2024-04-13 22:02:54 +00:00
.user-with-img {
display: inline-flex;
gap: 0.5em;
align-items: center;
.user-img {
2024-04-13 22:19:39 +00:00
height: 2em;
width: 2em;
2024-04-13 22:02:54 +00:00
}
}
2020-01-21 06:35:58 +00:00
#search-handle {
width: 100%;
height: 2.3em;
}
.user-search-image, .user-search-name {
vertical-align: middle;
}
.user-search-name {
padding-left: 0.5em;
}
#users-table {
2022-12-18 09:31:31 +00:00
th a, th a:link, th a:visited {
2024-10-02 20:06:33 +00:00
color: black;
2021-12-27 10:18:04 +00:00
}
2022-12-18 09:31:31 +00:00
th a:hover {
2024-10-02 20:06:33 +00:00
color: navajowhite;
2022-12-18 09:31:31 +00:00
}
2023-10-16 21:36:56 +00:00
2021-12-27 10:18:04 +00:00
.about-column {
width: 30%;
2020-01-21 06:35:58 +00:00
}
.header {
vertical-align: middle;
}
2024-04-12 04:56:58 +00:00
.rank, .points, .problems {
2020-01-21 06:35:58 +00:00
white-space: nowrap;
2023-11-28 01:23:48 +00:00
max-width: 20em;
overflow: hidden;
2020-01-21 06:35:58 +00:00
}
2021-12-27 10:40:21 +00:00
.about-td {
max-height: 45px;
overflow: hidden;
cursor: pointer;
overflow-wrap: anywhere;
}
2020-01-21 06:35:58 +00:00
tr {
transition: background-color linear .2s;
&:hover {
background: #EAEAEA;
}
&.highlight {
background: #fff897;
}
2022-10-25 04:59:04 +00:00
padding-bottom: 96px;
&:target {
background: #fff897;
}
2020-01-21 06:35:58 +00:00
}
2022-12-18 09:31:31 +00:00
.organization-column a {
color: gray !important;
font-weight: 600;
}
.disqualified {
background-color: #ffa8a8 !important;
}
.frozen {
background: lightskyblue !important;
}
.full-score, .full-score a {
font-weight: bold;
color: green;
}
.partial-score, .partial-score a {
color: green;
}
.failed-score, .failed-score a {
font-weight: bold;
color: red;
}
.pretest-full-score, .pretest-full-score a {
font-weight: bold;
color: #2980b9;
}
.pretest-partial-score, .pretest-partial-score a {
color: #2980b9;
}
.pretest-failed-score, .pretest-failed-score a {
font-weight: bold;
color: red;
}
.user-points {
font-weight: bold;
color: black;
}
.solving-time {
color: gray;
font-weight: normal;
font-size: 0.75em;
padding-bottom: -0.75em;
}
.point-denominator {
border-top: 1px solid gray;
font-size: 0.7em;
}
.fullname-column {
text-align: right !important;
border-right: none !important;
}
.fullname-column span {
color: gray !important;
font-weight: 600;
}
2024-05-03 00:13:19 +00:00
.rank-td {
font-weight: bold;
width: 2em;
}
2020-01-21 06:35:58 +00:00
}
#search-form {
display: inline-block;
vertical-align: top;
width: 225px;
float: right;
2024-10-03 01:27:49 +00:00
margin-top: 1em;
2020-01-21 06:35:58 +00:00
.select2-selection__arrow {
display: none;
}
.select2-selection__rendered {
cursor: text;
}
.select2-results__option {
position: relative;
}
.select2-results__option--highlighted {
background-color: #DEDEDE !important;
}
li.select2-results__option--highlighted a.user-redirect {
display: inline-block;
}
}
a.user-redirect {
color: #2980b9;
vertical-align: middle;
font-size: 1.2em;
position: absolute;
right: 0.8em;
display: none;
&:hover {
text-shadow: 0 0 2px blue;
}
}
a.edit-profile {
float: right;
padding-top: 1em;
}
.user-problem-group {
h3 {
font-weight: 600;
font-size: 1.25em;
margin-bottom: -10px;
max-height: 20%;
line-height: 2.5em;
}
ul {
-webkit-columns: 300px 4;
-moz-columns: 300px 4;
columns: 300px 4;
list-style-type: none;
margin-top: 0;
margin-left: -20px;
margin-bottom: 0;
}
a img {
max-width: 1em;
margin-right: 3px;
padding-bottom: 1px;
vertical-align: middle;
}
}
.user-info-cell {
padding-left: 15px;
border-left: 1px solid #CCC;
}
.contest-history-cell {
border-left: 1px solid #CCC;
padding: 0 0.5em;
}
.hide-solved-problems {
text-align: right;
overflow: hidden;
}
.hide-solved-problems > span {
position: relative;
display: inline-block;
}
.hide-solved-problems > span:before {
content: "";
position: absolute;
top: 50%;
width: 100000px;
height: 1px;
background: rgba(0, 0, 0, 0.2);
right: 100%;
margin-right: 5px;
}
.user-info-page {
display: flex;
max-width: 100%;
min-height: 0;
}
.user-sidebar {
flex: 0 0 150px;
2024-04-12 06:51:57 +00:00
padding-right: 1em;
2020-01-21 06:35:58 +00:00
}
.user-content {
flex: 1 1;
overflow: hidden;
word-wrap: break-word;
}
2024-04-12 06:51:57 +00:00
.user-img {
flex-shrink: 0;
background-color: #ddd;
border-radius: 50%;
overflow: hidden;
display: flex;
align-items: center;
img {
width: 100%;
height: auto;
}
}
2020-01-21 06:35:58 +00:00
@media not all and (min-width: 600px) {
.user-info-page {
display: block;
}
.user-sidebar {
width: 150px;
margin: 0 auto;
}
.user-content {
overflow: visible;
}
}
.pp-table {
.pp {
font-weight: 600;
font-size: 1.4em;
}
.pp-scaled {
font-size: 0.8em;
}
.pp-weighted {
color: #777;
}
div.sub-pp {
text-align: right;
min-width: unset;
width: unset;
border-left: none;
}
td.problem-name {
text-align: left;
padding-left: 1em;
}
td.problem-score {
width: 80px;
}
td.problem-category {
width: 100px;
}
2024-02-12 19:43:07 +00:00
width: 99%;
2020-01-21 06:35:58 +00:00
}
#pp-load-link-wrapper {
text-align: center;
border: 1px solid #ccc;
}
#pp-load-more-link {
display: block;
padding: 0.5em 0;
}
.pp-breakdown-header {
font-weight: 600;
font-size: 1.25em;
margin-bottom: 0.2em;
}
#rating-chart {
height: 400px;
margin-top: 1em;
}
#rating-tooltip {
display: none;
position: absolute;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 3px;
border-radius: 3px;
transition: all .1s ease;
pointer-events: none;
transform: translate(-50%, 0);
&.rate-group {
color: white;
}
2020-06-24 01:46:33 +00:00
}
.follow {
2023-10-16 21:36:56 +00:00
background: green;
2020-06-24 01:46:33 +00:00
border-color: lightgreen;
}
.follow:hover {
background: darkgreen;
}
.unfollow {
background: red;
border-color: pink;
}
.unfollow:hover {
background: darkred;
2020-12-26 01:02:14 +00:00
}
#submission-activity {
#submission-activity-actions {
text-align: center;
#prev-year-action, #next-year-action {
font-size: 1.75em;
}
#year {
font-size: 1.25em;
color: #444;
}
}
#submission-activity-display {
border: 1px solid $border_gray;
border-radius: $table_header_rounding;
.info-bar {
display: flex;
justify-content: space-between;
.info-table {
width: 15%;
min-width: 130px;
.info-table-text {
width: 8%;
}
}
}
.info-text {
font-size: 0.75em;
line-height: 1;
font-weight: 100;
color: #444;
}
#submission-total-count {
align-self: center;
padding-left: 8%;
font-size: 0.85em;
}
@media(max-width: 1000px) {
#submission-total-count {
padding-left: 5px;
}
}
table {
width: 100%;
padding: 5px;
th.submission-date-col {
width: 8%;
}
@media (max-width: 1000px) {
th.submission-date-col {
display: none;
}
}
td {
border-radius: 20%;
div {
margin-top: 100%;
}
&.activity-label {
position: relative;
white-space: nowrap;
}
&.activity-blank {
background-color: white;
}
&.activity-0 {
background-color: #ddd;
}
&.activity-1 {
background-color: #9be9a8;
}
&.activity-2 {
background-color: #40c463;
}
&.activity-3 {
background-color: #2f9c4c;
}
&.activity-4 {
background-color: #216e39;
}
}
}
}
2022-12-18 09:31:31 +00:00
}
.user-info-header {
color: gray;
}
.user-stat-header {
color: gray;
2024-05-22 04:09:22 +00:00
}
.profile-card {
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s;
&:hover {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card-header {
background-color: #f7f7f7;
text-align: center;
padding: 10px;
2024-05-22 04:09:22 +00:00
}
.avatar {
width: 80px;
height: 80px;
border-radius: 50%;
}
.card-body {
padding: 20px;
padding-bottom: 5px;
}
.user-info {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.user-info-body {
font-weight: bold;
}
/* Medals Container */
.medals-container {
display: flex;
justify-content: center;
padding: 10px;
padding-top: 0px;
gap: 5px;
}
/* Medal Item */
.medal-item {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
img {
width: 70px; /* Adjust size based on your actual image size */
height: auto;
}
}
.medal-count {
background-color: hsla(30, 4%, 91%, .7);
border-radius: 50%;
bottom: .5rem;
color: black;
font-size: 1em;
line-height: 1;
padding: 0.8em 0;
right: .5rem;
text-align: center;
width: 2.5em;
}
2020-01-21 06:35:58 +00:00
}