Diferencia entre revisiones de «Usuario:JanKlaaseen/mediawiki:common.css Ver historial

Sin resumen de edición
Sin resumen de edición
 
(No se muestran 3 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
@import "bourbon";
h1 {
 
padding: 0.2em 0.4em;
// Breakpoints
border: 5px blue;
$bp-maggie: 15em;  
-moz-border-radius:5px;-webkit-border-radius:5px;
$bp-lisa: 30em;
margin:0 0 10px 0;
$bp-bart: 48em;
border:2px solid #000;
$bp-marge: 62em;
background: #006cb0; color:white;
$bp-homer: 75em;
font-size:140%;
 
font-weight:bold;
// Styles
text-align:center;
* {
@include box-sizing(border-box);
&:before,
&:after {
  @include box-sizing(border-box);
}
}
 
body {
  font-family: $helvetica;
  color: rgba(94,93,82,1);
}
}


a {
h2{
  color: rgba(51,122,168,1);
font-family: sans-serif;
 
margin: 100px auto;
  &:hover,
text-align: center;
  &:focus {
font-size: 40px;
    color: rgba(75,138,178,1);  
max-width: 600px;
  }
position:relative;
}
}
 
h2:before{
.container {
content: "";
  margin: 5% 3%;
display:block;
 
width: 120px;
  @media (min-width: $bp-bart) {
height:2px;
    margin: 2%;  
background: #000;
  }
position: absolute;
 
left: 0;
  @media (min-width: $bp-homer) {
top: 50%;
    margin: 2em auto;
z-index: -2;
    max-width: $bp-homer;
  }
}
}
 
h2:after{
.responsive-table {
content: "";
  width: 100%;
display:block;
  margin-bottom: 1.5em;
width: 120px;
  border-spacing: 0;
height:2px;
 
background: #000;
  @media (min-width: $bp-bart) {
position: absolute;
    font-size: .9em;
right: 0;
  }
top: 50%;
 
z-index: -2;
  @media (min-width: $bp-marge) {
    font-size: 1em;
  }
 
  thead {
    // Accessibly hide <thead> on narrow viewports
    position: absolute;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
   
    @media (min-width: $bp-bart) {
      // Unhide <thead> on wide viewports
      position: relative;
      clip: auto;
      height: auto;
      width: auto;
      overflow: auto;
    }
   
    th {
      background-color: rgba(29,150,178,1);
      border: 1px solid rgba(29,150,178,1);
      font-weight: normal;
      text-align: center;
      color: white;
     
      &:first-of-type {
        text-align: left;  
      }
    }
  }
 
  // Set these items to display: block for narrow viewports
  tbody,
  tr,
  th,
  td {
    display: block;
    padding: 0;
    text-align: left;
    white-space: normal;
  }
 
  tr { 
    @media (min-width: $bp-bart) {
      // Undo display: block
      display: table-row;  
    }
  }
 
  th,
  td {
    padding: .5em;
    vertical-align: middle;
   
    @media (min-width: $bp-lisa) {
      padding: .75em .5em;
    }
   
    @media (min-width: $bp-bart) {
      // Undo display: block
      display: table-cell;
      padding: .5em;
    }
   
    @media (min-width: $bp-marge) {
      padding: .75em .5em;
    }
   
    @media (min-width: $bp-homer) {
      padding: .75em;
    }
  }
 
  caption {
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
   
    @media (min-width: $bp-bart) {
      font-size: 1.5em;
    }
  }
 
  tfoot {
    font-size: .8em;
    font-style: italic;
   
    @media (min-width: $bp-marge) {
      font-size: .9em;
    }
  }
 
  tbody {
    @media (min-width: $bp-bart) {
      // Undo display: block
      display: table-row-group;
    }
   
    tr {
      margin-bottom: 1em;
     
      @media (min-width: $bp-bart) {
        // Undo display: block
        display: table-row;
        border-width: 1px;
      }
     
      &:last-of-type {
        margin-bottom: 0;
      }
     
      &:nth-of-type(even) {
        @media (min-width: $bp-bart) {
          background-color: rgba(94,93,82,.1);
        }
      }
    }
   
    th[scope="row"] {
      background-color: rgba(29,150,178,1);
      color: white;
     
      @media (min-width: $bp-lisa) {
        border-left: 1px solid  rgba(29,150,178,1);
        border-bottom: 1px solid  rgba(29,150,178,1);
      }
     
      @media (min-width: $bp-bart) {
        background-color: transparent;
        color: rgba(94,93,82,1);
        text-align: left;
      }
    }
   
    td {
      text-align: right;
     
      @media (min-width: $bp-bart) {
        border-left: 1px solid  rgba(29,150,178,1);
        border-bottom: 1px solid  rgba(29,150,178,1);
        text-align: center;
      }
     
      &:last-of-type {
        @media (min-width: $bp-bart) {
          border-right: 1px solid  rgba(29,150,178,1);
        }
      }
    }
   
    td[data-type=currency] {
      text-align: right;
    }
   
    td[data-title]:before {
      content: attr(data-title);
      float: left;
      font-size: .8em;
      color: rgba(94,93,82,.75);
     
      @media (min-width: $bp-lisa) {
        font-size: .9em;  
      }
     
      @media (min-width: $bp-bart) {
        // Don’t show data-title labels
        content: none;  
      }
    }
  }
}
}

Revisión actual - 16:58 16 feb 2022

h1 {
padding: 0.2em 0.4em;
border: 5px blue;
-moz-border-radius:5px;-webkit-border-radius:5px;
margin:0 0 10px 0;
border:2px solid #000;
background: #006cb0; color:white;
font-size:140%;
font-weight:bold;
text-align:center;
}

h2{
font-family: sans-serif;
margin: 100px auto;
text-align: center;
font-size: 40px;
max-width: 600px;
position:relative;
}
h2:before{
content: "";
display:block;
width: 120px;
height:2px;
background: #000;
position: absolute;
left: 0;
top: 50%;
z-index: -2;
}
h2:after{
content: "";
display:block;
width: 120px;
height:2px;
background: #000;
position: absolute;
right: 0;
top: 50%;
z-index: -2;
}