Difference between revisions of "MediaWiki:Common.css"

no edit summary
 
(73 intermediate revisions by 3 users not shown)
Line 1: Line 1:
/* Gli stili CSS inseriti qui si applicano a tutti i temi */
/* Gli stili CSS inseriti qui si applicano a tutti i temi */
/* ============================= Personalizzazione font e colore ============================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
.mw-parser-output {
color: #585858;
font-family: "Roboto", sans-serif;;
}
.mw-headline {
color: #454545;
}


/* To make images responsive */
/* To make images responsive */
Line 1,832: Line 1,843:
border: 1px solid grey !important;
border: 1px solid grey !important;
border-radius: 6px !important;
border-radius: 6px !important;
padding: 12px !important;
}
}


Line 1,859: Line 1,869:
body {
body {
color: #333;
color: #333;
}
#mw-mf-main-menu-button {
display: none;
}
.pre-content {
display: none;
}
@media screen and (min-width: 1000px) {
.content {
width: auto;
}
}
@media screen and (min-width: 720px) {
.content {
width: auto;
}
}
.mobile-only {
display: none;
}
}


Line 1,889: Line 1,922:


.rounded-logo {
.rounded-logo {
width: 200px;
height: 200px;
border-radius: 100%;
border-radius: 100%;
}
}


.colour-button a {
.colour-button a, .colour-button a.external, .colour-button-small a, .colour-button-small a.external {
padding: 1rem 2rem;
display: inline-block;
margin: 2rem 0;
border-radius: 3rem;
border-radius: 3rem;
background-image: linear-gradient(126deg, #5f5bcd 24%, #ff5700 100%);
background-image: linear-gradient(126deg, #5f5bcd 24%, #ff5700 100%);
background-size: auto;
transition: .5s;
transition: .5s;
color: white;
color: white;
text-decoration: none;
text-decoration: none;
}
}
.colour-button a:hover {
.colour-button a:hover, .colour-button-small a:hover {
background-image: linear-gradient(160deg, #5f5bcd 24%, #ff5700 100%);
background-image: linear-gradient(160deg, #5f5bcd 24%, #ff5700 100%);
color: white;
color: white;
text-decoration: none;
text-decoration: none;
}
.colour-button a, .colour-button a.external {
padding: 1rem 2rem;
}
.colour-button-small a, .colour-button-small a.external {
padding: 0.5rem 1rem;
}
}


Line 1,924: Line 1,967:


.cover {
.cover {
position: relative;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
Line 1,939: Line 1,983:
}
}


/* ============= Home ============= */
@media screen and (max-width: 1000px) {
.homepage-slider {
.full-width {
    margin: 0 calc(-1*((99vw - 763px) / 2));
}
}
 
@media screen and (max-width: 800px) {
.full-width {
    margin: 0 calc(-1*((99vw - 654px) / 2));
}
}
 
.content-page-logo-container {
margin-bottom: 2rem;
}
 
/* ============= Home ============= */
.homepage-slider {
position: relative;
position: relative;
height: 550px;
height: 550px;
Line 1,947: Line 2,007:
.homepage-logo-container {
.homepage-logo-container {
     position: absolute;
     position: absolute;
     top: -70px;
     top: 20px;
     left: 20px;
     left: 50%;
    transform: translate(-50%);
     z-index: 100;
     z-index: 100;
}
}
Line 1,968: Line 2,029:
background-position: center;
background-position: center;
background-size: cover;
background-size: cover;
}
.homepage-slide-1 > *, .homepage-slide-2 > *, .homepage-slide-3 > * {
transform: translate(0, 2rem);
}
}
.homepage-slide-1 {
.homepage-slide-1 {
Line 2,006: Line 2,070:
.homepage-what-is-it, .homepage-how-to-follow-it, .homepage-why-to-enroll {
.homepage-what-is-it, .homepage-how-to-follow-it, .homepage-why-to-enroll {
padding: 2rem;
padding: 2rem;
background-color: rgba(196,196,196, .4);
background-color: rgba(196,196,196, .1);
}
}
.homepage-what-is-it {
.homepage-what-is-it {
Line 2,038: Line 2,102:
}
}
.three-d-image-container {
.three-d-image-container {
width: 400px;
width: 380px;
     background-color: cornflowerblue;
     background-color: cornflowerblue;
     transition: 1s;
     transition: 1s;
Line 2,117: Line 2,181:
.scientific-project-text-box {
.scientific-project-text-box {
padding: 2rem;
padding: 2rem;
background-color: rgba(196,196,196, .25);
background-color: rgba(196,196,196, .1);
}
}


Line 2,275: Line 2,339:
   padding: 5px;
   padding: 5px;
   text-align: center;
   text-align: center;
}
/* ============= Template:Main menu ============= */
#main-menu-open, #main-menu-close { display: none; }
.main-menu-container {
  display: flex;
  justify-content: center;
  background-color: #f1f1f1;
}
.main-menu-container a {
  text-decoration: none;
}
.padded {
  padding: 0.5rem 1.5rem;
}
.padded:hover {
  background-color: #e0e0e0;
}
.main-menu-dropdown-trigger {
  position: relative;
}
.main-menu-dropdown-content {
  display: none;
  position: absolute;
  z-index: 101;
  min-width: 180px;
  background-color: #f1f1f1;
  transition: .5s;
}
.main-menu-dropdown-trigger:hover .main-menu-dropdown-content {
  display: block;
}
.custom-page-title {
margin-top: 50px!important;
margin-bottom: 50px!important;
text-align: center;
font-size: 250%;
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}
.firstHeading {
margin-top: 2em !important;
margin-left: 3em !important;
}
/* ============= Template:Tooltip ============= */
.tooltip-trigger, .tooltip-trigger-2 {
  color: #ba0606;
  position: relative;
}
.tooltip-trigger:hover .tooltip-content, .tooltip-trigger-2:hover .tooltip-content-2 {
  display: inline-block;
  position: absolute;
  top: 18px;
  transform: translate(-20em); /* centra il popup sotto la "i" */
  min-width: 40em;
  padding: 10px 15px;
  color: #585858;
  background-color: white;
  border: 1px solid silver;
  border-radius: 10px;
  font-size: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
}
.tooltip-content, .tooltip-content-2 {
  display: none;
}
.tooltip-trigger:hover {
  cursor: help;
}
@media screen and (max-width: 1200px) {
.mw-parser-output {
position: relative;
}
.tooltip-trigger, .tooltip-trigger-2 {
position: static;
}
.tooltip-trigger:hover .tooltip-content, .tooltip-trigger-2:hover .tooltip-content-2 {
box-sizing: border-box;
left: 0;
top: auto;
transform: translate(0, 2em);
width: 100%;
}
}
/* ============= configurazione visibilità capitoli nel Book index ============= */
.crisis-of-paradigm-for-all {
display: block;
}
.crisis-of-paradigm-for-members {
display: none;
}
.extraordinary-science-for-all {
display: block;
}
.extraordinary-science-for-affiliates {
display: none;
}
/* ============= Template:Login or request Member account ============= */
.responsive-buttons {
display: flex;
justify-content: center;
gap: 2rem;
margin: 2rem auto;
}
}