Difference between revisions of "MediaWiki:Mobile.css"

From ICANNWiki
Jump to navigation Jump to search
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* CSS placed here will affect users of the mobile site */
+
/* Remove main page header */
.AOW {
+
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
background:#466f81;
+
 
color:#FFF;
+
/* Box at the top of the main page */
padding:.2em 0 .2em .4em;
+
.icannwiki-top-box {
font-style:bold;
+
    display: grid;
font-size:1.5em;
+
    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;
 
}
 
}
.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%;
+
/* Box's elements styling */
background-color:whitesmoke;
+
.icannwiki-top-box ul li {
float:left;
+
    font-size: 1.0em;
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 other boxes in the main page */
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 for text */
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 (blank) */
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 {
+
/* Main page content box: right */
height:225px;
+
.icannwiki-half-width-right {
width:100%;
+
display: inline;
border:1px solid #bcd7c4;
 
margin-bottom:.5em;
 
background:white;
 
float:left;
 
 
}
 
}
  
#Welcome {
+
/* Sponsors template */
float:left;
+
.icannwiki-sponsors {
width:100%;
+
     display: grid;
text-align: center;
+
     grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
+
     gap: 4px;
#topbar {
+
     border-radius: 4px;
    background: -moz-linear-gradient(#098280, #E95F26);/* For Firefox 3.6 to 15 */
+
     margin-bottom: 4px;
    background: #098280; /* For browsers that do not support gradients */
+
     padding: 4px;
    background: -webkit-linear-gradient(#098280, #E95F26); /* For Safari 5.1 to 6.0 */
+
     list-style: none;
    background: -o-linear-gradient(#098280, #E95F26); /* For Opera 11.1 to 12.0 */
+
     padding: 0;
    background: linear-gradient(#098280, #E95F26); /* Standard syntax */
+
     margin: 0;
    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%;
 
    margin:0 auto;
 
}
 
.fixed {
 
    margin:0 auto;
 
    vertical-align:baseline;
 
}
 
.flexbox{
 
     display:flex;
 
     flex-direction:column;
 
    margin: 15px 15px;
 
    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:6vw;
 
display:flex;
 
flex-direction:column;
 
 
}
 
.sectionheader{
 
    background:#098280;
 
    width:100%;
 
    color:white;
 
    font-size:3vw;
 
    text-align:center;
 
    text-shadow:1px 1px black;
 
    font-weight:bold;
 
    height:8vw;
 
    border-radius:25px;
 
    display:flex;
 
    align-items:left;
 
padding:0 0 0 10px;
 
}
 
.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;
 
}
 
#topbar {
 
    background: -moz-linear-gradient(#098280, #E95F26);/* For Firefox 3.6 to 15 */
 
    background: #098280; /* For browsers that do not support gradients */
 
    background: -webkit-linear-gradient(#098280, #E95F26); /* For Safari 5.1 to 6.0 */
 
    background: -o-linear-gradient(#098280, #E95F26); /* For Opera 11.1 to 12.0 */
 
    background: linear-gradient(#098280, #E95F26); /* Standard syntax */
 
    background: -webkit-gradient(#098280, #E95F26); /* Old Webkit */   
 
     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%;
 
    margin:0 auto;
 
}
 
.fixed {
 
     margin:0 auto;
 
    vertical-align:baseline;
 
}
 
.flexbox{
 
    display:flex;
 
    flex-direction:column;
 
    margin: 15px 15px;
 
    font-size:1vw;
 
 
}
 
}
.navbutton {
 
border-right:.1vw solid #587560;
 
color:white;
 
font-weight:bold;
 
font-size:1.6vw;
 
padding:0 .5vw;
 
display:flex;
 
flex-direction:column;
 
width:12.7vw;
 
height:3vw;
 
text-align:center;
 
float:left;
 
text-shadow:.1vw .1vw black;
 
  
}
+
.icannwiki-sponsors li {
.navbutton2 {
+
    display: flex;
color:white;
+
     justify-content: center;
font-weight:bold;
+
     align-items: center;
font-size:1.6vw;
+
     border: 0px;
padding:0 .5vw;
+
     border-radius: 4px;
display:flex;
+
     padding: 8px;
flex-direction:column;
+
     height: 140px; /* Adjust as needed */
width:12.6vw;
+
    box-sizing: border-box;
height:3vw;
 
text-align:center;
 
float:left;
 
text-shadow:.1vw .1vw black;
 
}
 
#navbar {
 
background:#E95F26;
 
border:.1vw solid #587560;
 
height:3vw;
 
display:flex;
 
flex-direction:column;
 
}
 
.sectionheader{
 
    background:#098280;
 
     width:100%;
 
    color:white;
 
    font-size:4vw;
 
     text-align:center;
 
     text-shadow:.075vw .075vw black;
 
    font-weight:bold;
 
    min-height:3.5vw;
 
     border-radius:25px;
 
     display:flex;
 
    align-items:left;
 
}
 
.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:.075vw .075vw black;
 
    font-weight:bold;
 
    min-height:3vw;
 
    display:flex;
 
    align-items:left;
 
    padding:1vw 0 0 1vw;
 
}
 
.primertextbox{
 
background-color:gray;
 
color:white;
 
padding:25px 15px 15px 15px;
 
position:relative;
 
bottom:.4vw;
 
font-size:1.3vw;
 
}
 
.venuemap{
 
max-width:100%;
 
}
 
.faditribute{
 
height:10vw;
 
}
 
.mw-collapsible-toggle {
 
  float: left;
 
  -moz-user-select: none;
 
  -webkit-user-select: none;
 
  -ms-user-select: none;
 
  user-select: none;
 
}
 
/* Align the toggle based on the direction of the content language */
 
/* @noflip */
 
.mw-content-ltr .mw-collapsible-toggle,
 
.mw-content-rtl .mw-content-ltr .mw-collapsible-toggle {
 
  float: left;
 
}
 
/* @noflip */
 
.mw-content-rtl .mw-collapsible-toggle,
 
.mw-content-ltr .mw-content-rtl .mw-collapsible-toggle {
 
  float: left;
 
 
}
 
}
  
.mw-customtoggle,
+
.icannwiki-sponsors img {
.mw-collapsible-toggle {
+
    max-width: 100%;
  cursor: pointer;
+
    max-height: 100%;
 +
    object-fit: contain;
 
}
 
}
  
/* collapse links in captions should be inline */
+
.icannwiki-sponsors ul {
caption .mw-collapsible-toggle,
+
    list-style: none;
.mw-content-ltr caption .mw-collapsible-toggle,
+
    list-style-type: none;
.mw-content-rtl caption .mw-collapsible-toggle,
 
.mw-content-rtl .mw-content-ltr caption .mw-collapsible-toggle,
 
.mw-content-ltr .mw-content-rtl caption .mw-collapsible-toggle {
 
  float: left;
 
 
}
 
}
  
/* list-items go as wide as their parent element, don't float them inside list items */
+
/* Warning template */
li .mw-collapsible-toggle,
+
.icannwiki-warning {
.mw-content-ltr li .mw-collapsible-toggle,
+
    display: flex;
.mw-content-rtl li .mw-collapsible-toggle,
+
    justify-content: center;
.mw-content-rtl .mw-content-ltr li .mw-collapsible-toggle,
+
    align-items: center;
.mw-content-ltr .mw-content-rtl li .mw-collapsible-toggle {
+
    text-align: center;
  float: left;
+
    height: auto;
 +
    width: 60%;
 +
    margin: 0 auto;
 +
    padding: 10px;
 +
    background-color: #FFFDF4;
 +
    border: 2px solid #d48900;
 +
    border-left: 16px solid #d48900;
 
}
 
}
  
/* the added list item should have no list-style */
+
.icannwiki-warning a {
.mw-collapsible-toggle-li {
+
    font-weight: bold;
  list-style: left;
+
    color: #d48900;
 
}
 
}
  
#AcronymList{
+
/* Signaling template */
  background: -moz-linear-gradient(#098280, #E95F26);/* For Firefox 3.6 to 15 */
+
.icannwiki-signal {
    background: #098280; /* For browsers that do not support gradients */
+
     display: flex;
    background: -webkit-linear-gradient(#098280, #E95F26); /* For Safari 5.1 to 6.0 */
+
     justify-content: center;
    background: -o-linear-gradient(#098280, #E95F26); /* For Opera 11.1 to 12.0 */
+
     align-items: center;
     background: linear-gradient(#098280, #E95F26); /* Standard syntax */
+
     text-align: center;
    background: -webkit-gradient(#098280, #E95F26); /* Old Webkit */
+
     height: auto;
     max-width:85vw;
+
     width: 60%;
     font-size:5vw;
+
     margin: 0 auto;
     text-align:center;
+
     padding: 10px;
     font-weight:bold;
+
     background-color: #f4fcff;
    min-height:130px;
+
     border: 2px solid #0092D4;
}
+
     border-left: 16px solid #0092D4;
#fadifarewell{
 
  background: -moz-linear-gradient(#098280, #E95F26);/* For Firefox 3.6 to 15 */
 
     background: #098280; /* For browsers that do not support gradients */
 
     background: -webkit-linear-gradient(#098280, #E95F26); /* For Safari 5.1 to 6.0 */
 
    background: -o-linear-gradient(#098280, #E95F26); /* For Opera 11.1 to 12.0 */
 
     background: linear-gradient(#098280, #E95F26); /* Standard syntax */
 
     background: -webkit-gradient(#098280, #E95F26); /* Old Webkit */
 
    max-width:85vw;
 
    font-size:1vw;
 
    color:white;
 
     min-height:130px;
 
     padding:.5vw;
 
}
 
#abc{
 
  width:85vw;
 
  color:white;
 
  font-size:5vw;
 
  text-align:center;
 
  text-shadow:.2vw .2vw black;
 
  font-weight:bold;
 
  min-height:13vw;
 
  border-radius:0;
 
 
}
 
}
  
.AcronymButton{
+
.icannwiki-signal a {
    background-color:transparent;
+
     font-weight: bold;
     font-size:2.4vw;
+
     color: #0092D4;
    width:12vw;
 
    height:7.7vw;
 
    padding:.5vw .5vw;
 
    display: inline-block;
 
    position: relative;
 
    border: .2vw solid #FFF;
 
    overflow: hidden;
 
    text-decoration: none;
 
    text-align:center;
 
     color: #FFF;
 
    font-family: 'raleway', sans-serif;
 
    box-shadow: .1vw .1vw .1vw gray;
 
}
 
.AcronymButton span {
 
    -webkit-transition: 0.6s;
 
    -moz-transition: 0.6s;
 
    -o-transition: 0.6s;
 
    transition: 0.6s;
 
    -webkit-transition-delay: 0.2s;
 
    -moz-transition-delay: 0.2s;
 
    -o-transition-delay: 0.2s;
 
    transition-delay: 0.2s;
 
 
}
 
}
  
.AcronymButton:before,
+
/* Danger template */
.AcronymButton:after {
+
.icannwiki-danger {
     content: '';
+
     display: flex;
     position: absolute;
+
     justify-content: center;
    top: 0.67em;
+
     align-items: center;
    left: 0;
 
     width: 100%;
 
 
     text-align: center;
 
     text-align: center;
     opacity: 0;
+
     height: auto;
     -webkit-transition: .4s,opacity .6s;
+
    width: 60%;
     -moz-transition: .4s,opacity .6s;
+
    margin: 0 auto;
     -o-transition: .4s,opacity .6s;
+
     padding: 10px;
     transition: .4s,opacity .6s;
+
     background-color: #fff4f4;
 +
     border: 2px solid #D40000;
 +
     border-left: 16px solid #D40000
 
}
 
}
.AcronymButton:before {
 
    content: attr(data-hover);
 
    font-size:1vw;
 
    -webkit-transform: translate(-150%,0);
 
    -moz-transform: translate(-150%,0);
 
    -ms-transform: translate(-150%,0);
 
    -o-transform: translate(-150%,0);
 
    transform: translate(-150%,0);
 
}
 
 
/* :after */
 
  
.AcronymButton:after {
+
.icannwiki-danger a {
     content: attr(data-active);
+
     font-weight: bold;
    -webkit-transform: translate(150%,0);
+
     color: #D40000;
    -moz-transform: translate(150%,0);
 
    -ms-transform: translate(150%,0);
 
    -o-transform: translate(150%,0);
 
     transform: translate(150%,0);
 
 
}
 
}
  
/* Span on :hover and :active */
+
/* Justified text */
 
+
.icannwiki-justified {
.AcronymButton:hover span,
+
text-align: justify;
.AcronymButton:active span {
 
    font-size:1vw;
 
    opacity: 0;
 
    -webkit-transform: scale(0.3);
 
    -moz-transform: scale(0.3);
 
    -ms-transform: scale(0.3);
 
    -o-transform: scale(0.3);
 
    transform: scale(0.3);
 
 
}
 
}
  
/*
+
/* Highlighted text */
    We show :before pseudo-element on :hover
+
.icannwiki-highlight {
    and :after pseudo-element on :active
+
color: #61a376;
*/
+
     font-weight: bold;
 
 
.AcronymButton:hover:before,
 
.AcronymButton:active:after {
 
    opacity: 1;
 
    -webkit-transform: translate(0,0);
 
    -moz-transform: translate(0,0);
 
     -ms-transform: translate(0,0);
 
    -o-transform: translate(0,0);
 
    transform: translate(0,0);
 
    -webkit-transition-delay: .4s;
 
    -moz-transition-delay: .4s;
 
    -o-transition-delay: .4s;
 
    transition-delay: .4s;
 
 
}
 
}
  
/*
+
/* Font with darker shade of greenish white */
  We hide :before pseudo-element on :active
+
.icannwiki-text-white {
*/
+
     color: #ebfcef;
 
 
.AcronymButton:active:before {
 
    -webkit-transform: translate(-150%,0);
 
    -moz-transform: translate(-150%,0);
 
    -ms-transform: translate(-150%,0);
 
     -o-transform: translate(-150%,0);
 
    transform: translate(-150%,0);
 
    -webkit-transition-delay: 0s;
 
    -moz-transition-delay: 0s;
 
    -o-transition-delay: 0s;
 
    transition-delay: 0s;
 
 
}
 
}
  
.fadiquote {
+
/* Larger text */
height:8vw;
+
.icannwiki-font-large {
width:56.63vw;
+
    font-size: 125%;
 
}
 
}

Latest revision as of 01:23, 14 June 2024

/* Remove main page header */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }

/* Box at the top of the main page */
.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;
}

/* Box's elements styling */
.icannwiki-top-box ul li {
    font-size: 1.0em;
    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 other boxes in the main page */
.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 for text */
.icannwiki-colored-box {
	background: #f1f6f3;
	padding-left: 1%;
	padding-right: 1%;
	text-align: left;
}

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

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

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

/* Sponsors template */
.icannwiki-sponsors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 4px;
    border-radius: 4px;
    margin-bottom: 4px;
    padding: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.icannwiki-sponsors li {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px;
    border-radius: 4px;
    padding: 8px;
    height: 140px; /* Adjust as needed */
    box-sizing: border-box;
}

.icannwiki-sponsors img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icannwiki-sponsors ul {
    list-style: none;
    list-style-type: none;
}

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

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