User:BigCoight/common.css: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
(Created page with "* { box-sizing: border-box; } .mainpage-left { flex: 2.721 } .mainpage-right { flex: 0.999; } .tile-halves { display: flex; flex-flow: row wrap; border: 1...")
 
imported>BigCoight
mNo edit summary
Line 1: Line 1:
.infobox {
    border: 1px solid #000;
    background: blue;
    border-radius: 0;
    font-size: 120%;
    color: #000;
    margin: 0 0 1em .5em;
    padding: 0.1em;
    float: right;
    clear: right;
    width: 30%;
}
.mainpage-platforms .box {    /* SUBMAIN BOX - directly with tiles */
    flex: 1 1 auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
    padding: 5px 20px;          /* distance from borders */
}
.mainpage-platforms .item {
padding: 2px 0;
}
.mainpage-platforms .item:hover img {
transform: scale(1.05);
    transition: 0.5s ease-out;
}
/* -------------------------------------------------------------------------------------- PREVIOUS STUFF --- */
* {
* {
box-sizing: border-box;
box-sizing: border-box;
}
}
img {
max-width:100%;
}
.mainpage-body {         
    display: flex;
    flex-flow: row wrap;
}
.mainpage-left {
.mainpage-left {
     flex: 2.721
     flex: 2.721;
    display: flex;
    flex-flow: column wrap;
    margin-right: 0 0 0.9rem;
}
}
.mainpage-left > * {
    margin: 0 0 0.9rem;
}
.mainpage-right {
.mainpage-right {
     flex: 0.999;
     flex: 0.999;
    display: flex;
    flex-flow: column wrap;
    border: 1px solid black;
}
.mainpage-right > * {
    margin: 0 0 0.9rem;
}
}
.tile-halves {
.main-box {               /* MAIN BOX */
     display: flex;
     display: flex;
    flex-flow: row wrap;
     border: 1px solid #b0ad9b;
     border: 1px solid #b0ad9b;
    border-radius: 0;
     background: #fffae0;           /* distance from page borders  - middle value is distance from sides */
     background: #fffae0;
    margin: 0 20px 0;
}
}
.tile-halves h3 {            /* Header over tiles */
.main-box h3 {            /* Header over tiles */
     font-size: 1.4em;
     font-size: 1.4em;
     font-weight: bold;
     font-weight: bold;
Line 28: Line 87:
flex: 1 1 auto;
flex: 1 1 auto;
     columns: 3;
     columns: 3;
     margin: 0; /* deletes default space that bullet list has */
     margin: 0;               /* deletes default space that bullet list has */
}
}
.mainpage-skills li {
.mainpage-skills li {
     display: flex;
     display: flex;
     /*margin-right: -10px; ----- space between bullet points*/
     /*margin-right: -10px; ----- space after bullet points*/
     margin-bottom: 0.3em; /* space between rows */
     margin-bottom: 0.3em;     /* space between rows */
}
}
.mainpage-skills li:hover img {
.mainpage-skills li:hover img {
Line 41: Line 100:
.mainpage-skills li a:first-child {
.mainpage-skills li a:first-child {
     border-radius: 3px;
     border-radius: 3px;
    padding: 5px 4px 3px 4px;
     width: 48px;
     width: 48px;
     height: 48px;
     height: 48px;
     text-align: center;
     text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
}
.mainpage-skills li a:last-child {
.mainpage-skills li a:last-child {
     flex: 1 1 auto;
     flex: 1 1 auto; /* makes tiles stretch as much as possible */
     display: flex;
     display: flex; /* allows positioning of content inside tiles */
     align-items: center;
     align-items: center; /* centers content inside tile */
     color: #444e5a;
     color: #444e5a;
     font-size: 1.1em;
     font-size: 1.1em;
Line 63: Line 124:
     border-radius: 0 3px 3px 0;
     border-radius: 0 3px 3px 0;
}
}
.tile-top {
.tile-top {                                   /* SUBMAIN BOX - directly with tiles */
     width: 100%;
     width: 100%;
     padding: 1.5em 1.5em 1em 1.5em;          /* distance from borders */
     padding: 1.5em 1.5em 1em 1.5em;          /* distance from borders */
Line 101: Line 162:
     .tile-halves {
     .tile-halves {
     display: flex;
     display: flex;
     flex-fow: row wrap;
     flex-flow: row wrap;
     border-left: none;
     border-left: none;
     border-right: none;
     border-right: none;

Revision as of 07:08, 9 February 2021

.infobox {
    border: 1px solid #000;
    background: blue;
    border-radius: 0;
    font-size: 120%;
    color: #000;
    margin: 0 0 1em .5em;
    padding: 0.1em;
    float: right;
    clear: right;
    width: 30%;
}
.mainpage-platforms .box {    /* SUBMAIN BOX - directly with tiles */
    flex: 1 1 auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
    padding: 5px 20px;           /* distance from borders */
}
.mainpage-platforms .item {
	padding: 2px 0;
}
.mainpage-platforms .item:hover img {
	transform: scale(1.05);
    transition: 0.5s ease-out;
}











/* -------------------------------------------------------------------------------------- PREVIOUS STUFF --- */
* {
	box-sizing: border-box;
}
img {
	max-width:100%;
}
.mainpage-body {           
    display: flex;
    flex-flow: row wrap;
}

.mainpage-left {
    flex: 2.721;
    display: flex;
    flex-flow: column wrap;
    margin-right: 0 0 0.9rem;
}

.mainpage-left > * {
    margin: 0 0 0.9rem;
}

.mainpage-right {
    flex: 0.999;
    display: flex;
    flex-flow: column wrap;
    border: 1px solid black;
}

.mainpage-right > * {
    margin: 0 0 0.9rem;
}
.main-box {                /* MAIN BOX */
    display: flex;
    border: 1px solid #b0ad9b;
    background: #fffae0;            /* distance from page borders  - middle value is distance from sides */
}
.main-box h3 {             /* Header over tiles */
    font-size: 1.4em;
    font-weight: bold;
    border: none;
    text-decoration: none;
    padding: 0px;
    margin-bottom: 0.5em;     /* distance from tiles */
    margin-top: -0.5em;       /* and top border */
}
.mainpage-skills ul {
	flex: 1 1 auto;
    columns: 3;
    margin: 0;                /* deletes default space that bullet list has */
}
.mainpage-skills li {
    display: flex;
    /*margin-right: -10px; ----- space after bullet points*/
    margin-bottom: 0.3em;     /* space between rows */
}
.mainpage-skills li:hover img {
    transform: scale(1.2);
    transition: 0.2s ease-out;
}
.mainpage-skills li a:first-child {
    border-radius: 3px;
    width: 48px;
    height: 48px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mainpage-skills li a:last-child {
    flex: 1 1 auto; /* makes tiles stretch as much as possible */
    display: flex; /* allows positioning of content inside tiles */
    align-items: center; /* centers content inside tile */
    color: #444e5a;
    font-size: 1.1em;
    font-weight: bold;
    padding-left: 0.7em;
    text-decoration: none;
}
.mainpage-skills li:hover a:first-child {
    border-radius: 3px 0 0 3px;
}
.mainpage-skills li:hover a:last-child {
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0 3px 3px 0;
}
.tile-top {                                   /* SUBMAIN BOX - directly with tiles */
    width: 100%;
    padding: 1.5em 1.5em 1em 1.5em;           /* distance from borders */
}
/* ----------------------------------------------------- MOBILE --- */
@media only screen and (max-width: 499px) {
	  .mainpage-left {
    margin-right: 0;
    }
	.mainpage-skills ul {
          columns: 3;
    }
    .mainpage-skills li a:first-child {
    border-radius: 3px;
    padding: 3px 2px 1px 2px;
    width: 40px;
    height: 40px;
    }
    .mainpage-skills li a:last-child {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    color: #444e5a;
    font-size: 0.9em;
    font-weight: bold;
    padding-left: 0.2em;
    text-decoration: none;
    }
    .mainpage-skills li:hover img {
    transform: scale(1);
    transition: 0;
    }
    .tile-top {
    width: 100%;
    padding: 1.5em 0.5em 1em 0.5em;           /* distance from borders */
    }
    .tile-halves {
    display: flex;
    flex-flow: row wrap;
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin: 0;
    }
}
/* ------------------------------------------- INDIVIDUAL SKILL COLORS --- */
.skill-mining a:first-child {
    background: #d2b244;
}
.skill-mining:hover a:last-child {
    background: #b69213;
}
.skill-choppin a:first-child {
    background: #748d36;
}
.skill-choppin:hover a:last-child {
    background: #4c6215;
}
.skill-smithing a:first-child {
    background: #878787;
}
.skill-smithing:hover a:last-child {
    background: #616161;
}
.skill-fishing a:first-child {
    background: #3e8e9a;
}
.skill-fishing:hover a:last-child {
    background: #1a6671;
}
.skill-catching a:first-child {
    background: #8d6a36;
}
.skill-catching:hover a:last-child {
    background: #624a15;
}
.skill-alchemy a:first-child {
    background: #6274ab;
}
.skill-alchemy:hover a:last-child {
    background: #304791;
}