Template:Match.css: Difference between revisions
From TwogPedia
mNo edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 36: | Line 36: | ||
.match .team > div { | .match .team > div { | ||
border: 1px solid # | border: 1px solid #77737A; | ||
border-collapse: separate; | |||
} | } | ||
Line 49: | Line 50: | ||
right: 0; | right: 0; | ||
/* transform: translateX(100%) translateY(-25%); */ | /* transform: translateX(100%) translateY(-25%); */ | ||
border: 1px solid # | border: 1px solid #77737A; | ||
background-color: # | background-color: #19191E; | ||
z-index: 1; | z-index: 1; | ||
box-shadow: 0px 0px 4px # | box-shadow: 0px 0px 4px #77737A; | ||
} | } | ||
.match-details > div:not(:last-child) { | .match-details > div:not(:last-child) { | ||
border-bottom: 1px solid # | border-bottom: 1px solid #77737A; | ||
} | } | ||
Line 67: | Line 68: | ||
.match-details .details-header .team:first-child { | .match-details .details-header .team:first-child { | ||
border-right: 1px solid # | border-right: 1px solid #77737A; | ||
} | } | ||
Line 81: | Line 82: | ||
} | } | ||
.match-details .details-picks | .match-details .details-picks img { | ||
border: 1px solid #fff; | border: 1px solid #fff; | ||
} | } | ||
.match-details .details-picks.dire | .match-details .details-picks.dire img {border-color: red;} | ||
.match-details .details-picks.radiant | .match-details .details-picks.radiant img {border-color: green;} | ||
.match-details .details-duration { | .match-details .details-duration { | ||
Line 93: | Line 94: | ||
font-size: 0.8rem; | font-size: 0.8rem; | ||
gap: 4px; | gap: 4px; | ||
} | |||
@media screen and (max-width: 780px) { | |||
.match-details { | |||
width: 95vw !important; | |||
left: 50% !important; | |||
top: 50px !important; | |||
transform: translateX(-50%) !important; | |||
max-width: 360px; | |||
position: fixed; | |||
z-index: 1000; | |||
} | |||
} | } |
Latest revision as of 20:54, 23 May 2025
.match {
display: flex;
justify-content: center;
width: 100%;
position: relative;
text-align: center;
}
.match:hover .match-details {
visibility: visible;
}
.match .team {
display: flex;
width: 100%;
height: 28px;
position: relative;
}
.bracket .match {
height: 100%;
flex-direction: column;
}
.match .team.reverse {
flex-direction: row-reverse;
}
.match .teamName {
width: 100%;
}
.match .score {
width: 25px;
}
.match .team > div {
border: 1px solid #77737A;
border-collapse: separate;
}
.match .match-details .team > div {
border: none;
}
.match-details {
width: 100%;
position: fixed;
visibility: hidden;
right: 0;
/* transform: translateX(100%) translateY(-25%); */
border: 1px solid #77737A;
background-color: #19191E;
z-index: 1;
box-shadow: 0px 0px 4px #77737A;
}
.match-details > div:not(:last-child) {
border-bottom: 1px solid #77737A;
}
.match-details .details-header {
display: flex;
background-color: #dddcdc;
/*border-bottom: 1px solid #000;*/
text-align: center;
}
.match-details .details-header .team:first-child {
border-right: 1px solid #77737A;
}
.match-details .details-game {
display: flex;
width: 100%;
justify-content: space-around;
align-items: center;
}
.match-details .details-picks {
display: flex;
}
.match-details .details-picks img {
border: 1px solid #fff;
}
.match-details .details-picks.dire img {border-color: red;}
.match-details .details-picks.radiant img {border-color: green;}
.match-details .details-duration {
display: grid;
grid-template-columns: 10px 1fr 10px;
font-size: 0.8rem;
gap: 4px;
}
@media screen and (max-width: 780px) {
.match-details {
width: 95vw !important;
left: 50% !important;
top: 50px !important;
transform: translateX(-50%) !important;
max-width: 360px;
position: fixed;
z-index: 1000;
}
}
No categories