Difference between revisions of "MediaWiki:Common.css"

From ICANNWiki
Jump to navigation Jump to search
 
(115 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
  
/* Legacy code moved to MediaWiki:Common.css/Legacy
+
/* Legacy code moved to MediaWiki:Common.css/Legacy */
 +
 
 +
 
 +
/* Navigation panel to the left */
 +
#mw-panel a {
 +
    font-size: 1.10em;
 +
}
 +
 
 +
#mw-panel a:hover {
 +
    color: #62a376;
 +
    text-decoration: none;
 +
}
  
 
/* Box at the top of the main page layout */
 
/* Box at the top of the main page layout */
 
.icannwiki-top-box {
 
.icannwiki-top-box {
 +
    display: grid;
 +
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
 +
    gap: 4px;
 
     background-color: #61a376;
 
     background-color: #61a376;
     border-radius: 5px;
+
     background-image: url('images/b/bd/ICANNWiki-Background-2024-A.svg');
     width: 100%;
+
     background-size: cover;
     margin-bottom: 20px;
+
     border-radius: 4px;
     padding: 10px; /* Adjust padding as needed */
+
     margin-bottom: 4px;
    display: flex; /* Use Flexbox */
+
     padding: 4px;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
 
     align-items: flex-start; /* Align items to the start of the flex container */
 
 
}
 
}
  
/* List cotained within the top box */
+
/* Hides bullet points */
.icannwiki-invisible-bullet ul {
+
.icannwiki-top-box ul {
 +
    list-style: none;
 
     list-style-type: none;
 
     list-style-type: none;
    list-style: none;
 
    padding: 0;
 
    margin: 0;
 
    width: 100%; /* Ensure the ul takes full width */
 
    display: flex; /* Use Flexbox */
 
    flex-wrap: wrap; /* Allow list items to wrap */
 
 
}
 
}
  
.icannwiki-invisible-bullet ul li {
+
/* Changes bullet points to a Unicode character */
     list-style-type: none;
+
.icannwiki-top-box ul li:before {
     list-style: none;
+
     background-image: url('/images/8/82/1F4CE.png');
     margin-right: 2%; /* Horizontal space between items */
+
    background-size: 32px 32px;
     margin-bottom: 10px; /* Vertical space between lines */
+
    display: inline-block;
     flex: 1; /* Flex items will grow to fill the space */
+
     vertical-align: middle;
     min-width: 120px; /* Minimum width of each item */
+
    width: 32px;
     font-size: 120%;
+
    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-invisible-bullet a {
+
.icannwiki-top-box a:hover {
     color: green;
+
     color: #68d62c;
 
     text-decoration: none;
 
     text-decoration: none;
 
}
 
}
Line 43: Line 63:
 
/* Header for featured article, news, about us, and so on */
 
/* Header for featured article, news, about us, and so on */
 
.icannwiki-section-header {
 
.icannwiki-section-header {
     background: #61A376;
+
     background: #62a376;
 
     font-family: sans-serif;
 
     font-family: sans-serif;
 
     font-weight: bold;
 
     font-weight: bold;
 
     text-align: left;
 
     text-align: left;
     color: white;
+
     color: #ebfcef;
 
     height: 1.5em;
 
     height: 1.5em;
     margin: .2em 0 .2em 0;
+
     padding: .5em;
    padding: 1em;
 
 
     border-radius: 5px;
 
     border-radius: 5px;
 +
}
 +
 +
/* Colored bounding box with bigger text */
 +
.icannwiki-colored-box {
 +
    background: #f1f6f3;
 +
    padding-left: 1%;
 +
    padding-right: 1%;
 +
    font-size: 1.05em;
 
}
 
}
  
Line 61: Line 88:
 
/* Main page content box: left */
 
/* Main page content box: left */
 
.icannwiki-half-width-left {
 
.icannwiki-half-width-left {
     width: 49.5%;
+
     width: 49%;
 
     float: left;
 
     float: left;
 
}
 
}
Line 67: Line 94:
 
/* Main page content box: right */
 
/* Main page content box: right */
 
.icannwiki-half-width-right {
 
.icannwiki-half-width-right {
     width: 49.5%;
+
     width: 49%;
 
     float: right;
 
     float: right;
 
}
 
}
  
/* Font with darker shade of white */
+
/* 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 {
 
.icannwiki-text-white {
     color: #F2EFEA;
+
     color: #ebfcef;
 
}
 
}
  
/* Larger font */
+
/* Larger text */
 
.icannwiki-font-large {
 
.icannwiki-font-large {
     font-size: 150%;
+
     font-size: 1.25em;
 
}
 
}

Latest revision as of 22:49, 12 May 2024

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

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


/* Navigation panel to the left */
#mw-panel a {
    font-size: 1.10em;
}

#mw-panel a:hover {
    color: #62a376;
    text-decoration: none;
}

/* 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;
}