Difference between revisions of "MediaWiki:Common.css"

From ICANNWiki
Jump to navigation Jump to search
(359 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
  
/* No page name on main page (en) */
+
/* Legacy code moved to MediaWiki:Common.css/Legacy */
body.page-Main_Page h1.firstHeading {
 
display: none;
 
}
 
  
.IW_BigGreenIconBox {
+
/* Box at the top of the main page layout */
     border-spacing: 0px;
+
.icannwiki-top-box {
     border: 1px solid #28903b;
+
     display: grid;
     display: inline-block !important;
+
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
 +
    gap: 4px;
 +
     background-color: #61a376;
 +
    background-image: url('images/b/bd/ICANNWiki-Background-2024-A.svg');
 +
     background-size: cover;
 +
    border-radius: 4px;
 +
    margin-bottom: 4px;
 +
    padding: 4px;
 
}
 
}
  
.IW_BigGreenIconBox td {
+
/* Hides bullet points */
 +
.icannwiki-top-box ul {
 +
    list-style: none;
 +
    list-style-type: none;
 +
}
 +
 
 +
/* Changes bullet points to a Unicode character */
 +
.icannwiki-top-box ul li:before {
 +
    background-image: url('/images/8/82/1F4CE.png');
 +
    background-size: 32px 32px;
 +
    display: inline-block;
 +
    vertical-align: middle;
 +
    width: 32px;
 +
    height: 32px;
 +
    content:"";
 +
}
 +
 
 +
/* List stylings */
 +
.icannwiki-top-box ul li {
 +
    font-size: 1.0em;
 +
    margin-bottom: 4px; /* Adjusts the spacing between list items */
 +
}
 +
 
 +
.icannwiki-top-box a {
 +
    color: white;
 +
    font-weight: bold;
 +
    text-decoration: none;
 +
}
 +
 
 +
.icannwiki-top-box a:hover {
 +
    color: #68d62c;
 +
    text-decoration: none;
 +
}
 +
 
 +
/* Header for featured article, news, about us, and so on */
 +
.icannwiki-section-header {
 +
    background: #62a376;
 +
    font-family: sans-serif;
 +
    font-weight: bold;
 +
    text-align: left;
 +
    color: #ebfcef;
 +
    height: 1.5em;
 +
    padding: .5em;
 +
    border-radius: 5px;
 +
}
 +
 
 +
/* Colored bounding box with bigger text */
 +
.icannwiki-colored-box {
 +
    background: #f1f6f3;
 +
    padding-left: 1%;
 +
    padding-right: 1%;
 +
    font-size: 1.05em;
 +
}
 +
 
 +
/* Separator */
 +
.icannwiki-clearfix {
 +
    clear: both;
 +
}
 +
 
 +
/* Main page content box: left */
 +
.icannwiki-half-width-left {
 +
    width: 49%;
 +
    float: left;
 +
}
 +
 
 +
/* Main page content box: right */
 +
.icannwiki-half-width-right {
 +
    width: 49%;
 +
    float: right;
 +
}
 +
 
 +
/* Warning template */
 +
.icannwiki-warning {
 +
    display: flex;
 +
    justify-content: center;
 +
    align-items: center;
 
     text-align: center;
 
     text-align: center;
     width: 85px;
+
    height: auto;
 +
     width: 60%;
 +
    margin: 0 auto;
 +
    padding: 10px;
 +
    background-color: #FFFDF4;
 +
    border: 2px solid #d48900;
 +
    border-left: 16px solid #d48900;
 
}
 
}
  
.IW_BigGreenIconBox td img {
+
.icannwiki-warning a {
     margin: -2px;
+
     font-weight: bold;
 +
    color: #d48900;
 
}
 
}
  
.IW_MissionAndSponsorsBox {
+
/* Signaling template */
float: right;
+
.icannwiki-signal {
border: 1px solid #c0c0c0;  
+
    display: flex;
border-bottom: 1px solid #c0c0c0;
+
    justify-content: center;
width: 375px;
+
    align-items: center;
margin-left: 20px;
+
    text-align: center;
background-color: #FFF;
+
    height: auto;
 +
    width: 60%;
 +
    margin: 0 auto;
 +
    padding: 10px;
 +
    background-color: #f4fcff;
 +
    border: 2px solid #0092D4;
 +
    border-left: 16px solid #0092D4;
 
}
 
}
  
.IW_MissionAndSponsorsBox .MissionStatement {
+
.icannwiki-signal a {
color: #000;
+
    font-weight: bold;
background-color: #f6f6f6;
+
    color: #0092D4;
padding: 5px 10px;
 
border: 1px solid #0d8323;
 
text-align:center;
 
 
}
 
}
  
.IW_MissionAndSponsorsBox .Sponsors {
+
/* Danger template */
margin: 0;
+
.icannwiki-danger {
font-family: sans-serif;
+
    display: flex;
font-size: 12px;
+
    justify-content: center;
text-align: left;
+
    align-items: center;
padding: 20px 0px 20px 15px;
+
    text-align: center;
 +
    height: auto;
 +
    width: 60%;
 +
    margin: 0 auto;
 +
    padding: 10px;
 +
    background-color: #fff4f4;
 +
    border: 2px solid #D40000;
 +
    border-left: 16px solid #D40000
 
}
 
}
  
.IW_MissionAndSponsorsBox .Sponsors .Title {
+
.icannwiki-danger a {
font-size: 20px;
+
    font-weight: bold;
font-weight: bold;
+
    color: #D40000;
 
}
 
}
  
.IW_MissionAndSponsorsBox .Sponsors .AskButton {
+
/* Justified text */
width: 300px;
+
.icannwiki-justified {
margin: 25px auto;
+
    text-align: justify;
padding-bottom: 0px;
 
 
}
 
}
  
.gTLD_InfoBox {
+
/* Font with darker shade of greenish white */
background-color: #f6f6f6;
+
.icannwiki-text-white {
border: 2px solid #0d8323;
+
    color: #ebfcef;
padding: 10px;
 
margin-bottom: 15px;
 
width: 700px;
 
 
}
 
}
  
.gTLD_InfoBox .Dimensions {
+
/* Larger text */
width: 200px;
+
.icannwiki-font-large {
height: 125px;
+
    font-size: 1.25em;
float: left;
 
margin: 0px 20px 0 0;
 
border-right: 1px solid #bdbdbd;
 
 
}
 
}

Revision as of 22:11, 2 May 2024

/* CSS placed here will be applied to all skins */

/* Legacy code moved to MediaWiki:Common.css/Legacy */

/* Box at the top of the main page layout */
.icannwiki-top-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 4px;
    background-color: #61a376;
    background-image: url('images/b/bd/ICANNWiki-Background-2024-A.svg');
    background-size: cover;
    border-radius: 4px;
    margin-bottom: 4px;
    padding: 4px;
}

/* Hides bullet points */
.icannwiki-top-box ul {
    list-style: none;
    list-style-type: none;
}

/* Changes bullet points to a Unicode character */
.icannwiki-top-box ul li:before {
    background-image: url('/images/8/82/1F4CE.png');
    background-size: 32px 32px;
    display: inline-block;
    vertical-align: middle;
    width: 32px; 
    height: 32px;
    content:"";
}

/* List stylings */
.icannwiki-top-box ul li {
    font-size: 1.0em;
    margin-bottom: 4px; /* Adjusts the spacing between list items */
}

.icannwiki-top-box a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.icannwiki-top-box a:hover {
    color: #68d62c;
    text-decoration: none;
}

/* Header for featured article, news, about us, and so on */
.icannwiki-section-header {
    background: #62a376;
    font-family: sans-serif;
    font-weight: bold;
    text-align: left;
    color: #ebfcef;
    height: 1.5em;
    padding: .5em;
    border-radius: 5px;
}

/* Colored bounding box with bigger text */
.icannwiki-colored-box {
    background: #f1f6f3;
    padding-left: 1%;
    padding-right: 1%;
    font-size: 1.05em;
}

/* Separator */
.icannwiki-clearfix {
    clear: both;
}

/* Main page content box: left */
.icannwiki-half-width-left {
    width: 49%;
    float: left;
}

/* Main page content box: right */
.icannwiki-half-width-right {
    width: 49%;
    float: right;
}

/* Warning template */
.icannwiki-warning {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    width: 60%;
    margin: 0 auto;
    padding: 10px;
    background-color: #FFFDF4;
    border: 2px solid #d48900;
    border-left: 16px solid #d48900;
}

.icannwiki-warning a {
    font-weight: bold;
    color: #d48900;
}

/* Signaling template */
.icannwiki-signal {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    width: 60%;
    margin: 0 auto;
    padding: 10px;
    background-color: #f4fcff;
    border: 2px solid #0092D4;
    border-left: 16px solid #0092D4;
}

.icannwiki-signal a {
    font-weight: bold;
    color: #0092D4;
}

/* Danger template */
.icannwiki-danger {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    width: 60%;
    margin: 0 auto;
    padding: 10px;
    background-color: #fff4f4;
    border: 2px solid #D40000;
    border-left: 16px solid #D40000
}

.icannwiki-danger a {
    font-weight: bold;
    color: #D40000;
}

/* Justified text */
.icannwiki-justified {
    text-align: justify;
}

/* Font with darker shade of greenish white */
.icannwiki-text-white {
    color: #ebfcef;
}

/* Larger text */
.icannwiki-font-large {
    font-size: 1.25em;
}