Template:Main Page/styles.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (Only show scrollbars in scroll class elements unless overflowing.)
No edit summary
 
Line 1: Line 1:
@media (max-width: 1200px) {
.page-wrap {
flex-direction:column;
}
}
.mainbox {
.mainbox {
flex:1;
flex:1;
margin:5px;
margin:5px;
border:1px solid #CCC;
border:2px solid #CCC;
box-shadow:0 2px 2px rgba(0,0,0,0.1);
box-shadow:0 2px 2px rgba(0,0,0,0.1);
padding:0 10px 10px 10px;
padding-bottom: 10px;
text-align:center;
text-align:center;
min-width:210px;
min-width:210px;
border-radius: 10px;
}
.mainbox h3 {
font-family: UmaRodin;
font-weight: normal;
background-color: #dadada;
padding: 5px;
margin: 0;
border-radius: 8px 8px 0 0; /* the cleaner way would be to overflow: hidden on the mainbox, but that crops part of the main image */
}
}


.scroll {
.scroll {
max-height:300px;
max-height:300px;
overflow:auto;
overflow:scroll;
}
}


div.mainbox > div {
div.mainbox > div {
border-top:1px solid #CCC;
padding: 10px;
padding-top:0.5em;
}
}


Line 26: Line 41:
.left {
.left {
text-align:left;
text-align:left;
}
.contents img {
width: 200px;
height: 200px !important;
object-fit: cover;
}
.mw-editsection {
display: none;
}
.page-wrap {
display: flex;
gap: 1em;
align-items: stretch;
}
.left-side {
flex: 3 3 600px;
}
.right-side {
flex: 1 1 250px;
}
.left-side, .right-side {
display: flex;
flex-direction: column;
gap: 1em;
}
.umabox {
border: 3px solid white;
border-radius: 1rem;
position: relative;
background: white;
}
.umabox:before {
content: "  ";
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -7px;
border-radius: 1rem;
background: linear-gradient(180deg, rgb(195, 195, 213) 0%, rgb(89, 84, 109) 100%);
z-index: -1;
}
.img {
position: relative;
display: inline-block;
mask-image: linear-gradient(rgb(0, 0, 0) 90%, transparent);
border-radius: 1em 1em 0 0;
}
.umabox p {
margin: 0;
}
.umabox h4 {
padding: 5px 0 5px 0;
margin: 0;
font-size: 1.5em;
color: #615c7d;
font-family: UmaRodin;
font-weight: normal;
}
.umabox h4:after {
content: "▶";
padding-left: 10px;
font-size: 0.9em;
}
.umabox a {
color: #615c7d;
}
}
957

edits

Navigation menu