Difference between revisions of "MediaWiki:Mobile.css"

From ICANNWiki
Jump to navigation Jump to search
(Undo revision 1349527 by Markwd (talk))
Tag: Undo
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will affect users of the mobile site */
+
/* Box at the top of the main page layout */
.AOW {
+
.icannwiki-top-box {
background:#466f81;
+
    display: grid;
color:#FFF;
+
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
padding:.2em 0 .2em .4em;
+
    gap: 4px;
font-style:bold;
+
    background-color: #61a376;
font-size:1.5em;
+
    border-radius: 4px;
 +
    margin-bottom: 4px;
 +
    padding: 4px;
 
}
 
}
.WelcomeBox {
+
 
height:8em;
+
/* Hides bullet points */
width:100%;
+
.icannwiki-top-box ul {
background:#d8dfe8;
+
list-style: none;
}
+
    list-style-type: none;
.MissingLinks {
 
background-color: #f6f6f6;
 
border: 2px solid #466f81;
 
width: 100%;
 
 
}
 
}
.PrimerICW {
+
 
width:100%;
+
/* List stylings */
background-color:whitesmoke;
+
.icannwiki-top-box ul li {
float:left;
+
    font-size: 100%;
padding: 1em 1em 1em 1em;
+
    margin-bottom: 2px; /* Adjusts the spacing between list items */
border: 2px solid gray;
 
 
}
 
}
.PrimerIM {
+
 
width:100%;
+
.icannwiki-top-box a {
background-color:whitesmoke;
+
    color: white;
float:right;
+
    font-weight: bold;
padding: 1em 1em 1em 1em;
+
    text-decoration: none;
border: 2px solid gray;
 
 
}
 
}
.ICANNBoardMobile {
+
 
height:1px;
+
.icannwiki-top-box a:hover {
width:1px;
+
    color: #68d62c;
overflow:hidden;
+
    text-decoration: none;
display:none;
 
 
}
 
}
  
.MainPage {
+
/* Header for featured article, news, about us, and so on */
width:100%;
+
.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;
 
}
 
}
  
#AOWBox {
+
/* Colored bounding box */
border:1px solid #bcd7c4;
+
.icannwiki-colored-box {
margin: 0 0 .5em 0;
+
background: #f1f6f3;
 +
padding-left: 1%;
 +
padding-right: 1%;
 +
text-align: left;
 
}
 
}
  
.MainPageHeader {
+
/* Separator */
background:#4c9662;
+
.icannwiki-clearfix {
height:20px;
+
    clear: both;
font-family:sans-serif;
 
font-size:120%;
 
font-weight:bold;
 
border:2px solid #0d8323;
 
text-align:left;
 
color:#FFF;
 
margin:.25em .25em .25em .25em;
 
padding:.25em .25em.25em .25em;
 
 
}
 
}
  
#FeaturedVideo {
+
/* Main page content box: left */
height:280px;
+
.icannwiki-half-width-left {
width:62%;
+
display: inline;
border:1px solid #bcd7c4;
 
margin:0 .15em .5em 0;
 
float:left;
 
background:white;
 
clear:both;
 
 
}
 
}
  
#News {
+
/* Mobile-only rule for sponsors display */
height:225px;
+
.icannwiki-mobile-sponsors{
width:100%;
+
width:25%;
border:1px solid #bcd7c4;
+
    height: auto;
margin-bottom:.5em;
 
background:white;
 
float:left;
 
 
}
 
}
  
#Welcome {
+
/* Main page content box: right */
float:left;
+
.icannwiki-half-width-right {
width:100%;
+
display: inline;
text-align: center;
 
 
}
 
}
#topbar {
+
 
    background: -moz-linear-gradient(#098280, #E95F26);/* For Firefox 3.6 to 15 */
+
/* Justified text */
    background: #098280; /* For browsers that do not support gradients */
+
.icannwiki-justified {
    background: -webkit-linear-gradient(#098280, #E95F26); /* For Safari 5.1 to 6.0 */
+
text-align: justify;
    background: -o-linear-gradient(#098280, #E95F26); /* For Opera 11.1 to 12.0 */
 
    background: linear-gradient(#098280, #E95F26); /* Standard syntax */
 
    width:100%;
 
    color:white;
 
    font-size:4vw;
 
    text-align:center;
 
    text-shadow:2px 2px black;
 
    font-weight:bold;
 
    min-height:130px;
 
    display:flex;
 
    align-items:center;
 
 
}
 
}
#body {
+
 
    width:100%;
+
/* Highlighted text */
     margin:0 auto;
+
.icannwiki-highlight {
 +
color: #61a376;
 +
     font-weight: bold;
 
}
 
}
.fixed {
+
 
     margin:0 auto;
+
/* Font with darker shade of greenish white */
    vertical-align:baseline;
+
.icannwiki-text-white {
 +
     color: #ebfcef;
 
}
 
}
.flexbox{
+
 
    display:flex;
+
/* Larger text */
    flex-direction:column;
+
.icannwiki-font-large {
    margin: 15px 15px;
+
     font-size: 125%;
    font-size:1.3vw;
 
}
 
.button {
 
border-right:.2vw solid #587560;
 
color:white;
 
font-weight:bold;
 
font-size:1.8vw;
 
padding:0 .5vw;
 
display:flex;
 
flex-direction:column;
 
width:11.5vw;
 
height:3vw;
 
text-align:center;
 
float:left;
 
text-shadow:1px 1px black;
 
}
 
.button2 {
 
color:white;
 
font-weight:bold;
 
font-size:1.8vw;
 
padding:0 .5vw;
 
display:flex;
 
flex-direction:column;
 
width:11vw;
 
height:3vw;
 
text-align:center;
 
float:left;
 
text-shadow:1px 1px black;
 
}
 
#navbar {
 
background:#E95F26;
 
border:.2vw solid #587560;
 
height:3vw;
 
display:flex;
 
flex-direction:column;
 
}
 
.sectionheader{
 
    background:#098280;
 
    width:100%;
 
    color:white;
 
    font-size:2vw;
 
    text-align:center;
 
    text-shadow:1px 1px black;
 
    font-weight:bold;
 
    min-height:40px;
 
    border-radius:25px;
 
    display:flex;
 
    align-items:left;
 
    padding:0 0px 0 0px;
 
}
 
.primerlogo {
 
width:auto;
 
max-width:13vw;
 
height:auto;
 
max-height:13vw;
 
margin:0 0 2vw 3vw;
 
}
 
.camel {
 
width: auto;
 
max-width: 16vw;
 
height: auto;
 
max-height: 11vw;
 
width: auto;
 
position:relative;
 
top:1vw;
 
}
 
.editathonTall {
 
width:auto;
 
max-width:13vw;
 
height:auto;
 
max-height:30vw;
 
padding:0 0 0 0;
 
}
 
#editathonsection {
 
     font-size:1.3vw;
 
    text-align:left;
 
    display:flex;
 
    align-items:center;
 
}
 
.sectionheader2{
 
    background:#52A7A6;
 
    width:100%;
 
    color:white;
 
    font-size:2vw;
 
    text-align:center;
 
    text-shadow:1px 1px black;
 
    font-weight:bold;
 
    min-height:30px;
 
    border-radius:0px;
 
    display:flex;
 
    align-items:left;
 
    padding:10px 0 0 10px;
 
}
 
.primertextbox{
 
background-color:gray;
 
color:white;
 
padding:25px 15px 15px 15px;
 
position:relative;
 
bottom:.4vw;
 
font-size:1.3vw;
 
 
}
 
}

Latest revision as of 19:46, 16 April 2024

/* 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;
    border-radius: 4px;
    margin-bottom: 4px;
    padding: 4px;
}

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

/* List stylings */
.icannwiki-top-box ul li {
    font-size: 100%;
    margin-bottom: 2px; /* 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 */
.icannwiki-colored-box {
	background: #f1f6f3;
	padding-left: 1%;
	padding-right: 1%;
	text-align: left;
}

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

/* Main page content box: left */
.icannwiki-half-width-left {
	display: inline;
}

/* Mobile-only rule for sponsors display */
.icannwiki-mobile-sponsors{
	width:25%;
    height: auto;
}

/* Main page content box: right */
.icannwiki-half-width-right {
	display: inline;
}

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

/* Highlighted text */
.icannwiki-highlight {
	color: #61a376;
    font-weight: bold;
}

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

/* Larger text */
.icannwiki-font-large {
    font-size: 125%;
}