Hoppa till innehållet

Mall:Testmall/Quasi-grip/styles.css

Från Wikipedia
.wrapper {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 45px;
  padding-top: 5px;
}

hr {
  height: 0.5px;
  width: 95%;
  margin: 0.5em auto;
  background-color: lightgrey;
}

ul {
  line-height: 1.4;
  margin-left: 14px;
  margin-right: 30px;
  list-style: circle;
}

ul li:not(:last-child) {
  margin-bottom: 10px;
}

p {
  margin-left: 15px;
  margin-right: 15px;
}

.icon img {
  margin: 0 7px;
  background-color: #19657F;
  border-radius: 50%;
}

.wrapper > div {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px 0 0 0;
  width: 100%;
  margin: auto;
}

/*=========================================
Omsortera blockparen uppifrån och ned
===========================================*/

.blockpar1 {order: 1;}
.blockpar2 {order: 4;}
.blockpar3 {order: 3;}
.singelblock {order: 2;}
.blockpar5 {order: 5;}

/*=========================================
Flippa blocken vänster/höger
===========================================*/

.blockpar1 div.block:first-child {order: 0;}
.blockpar2 div.block:first-child {order: 0;}
.blockpar3 div.block:first-child {order: 1;}
.blockpar4 div.block:first-child {order: 0;}
.blockpar5 div.block:first-child {order: 0;}

/*=========================================
Använd class="singelblock" för blockpar som skall ha fördelning 100/0.
===========================================*/

.blockpar1 div {flex-basis: 65%;}
.blockpar2 div {flex-basis: 55%;}
.blockpar3 div {flex-basis: 45%;}
.blockpar4 div {flex-basis: 55%;}
.blockpar5 div {flex-basis: 45%;}

div.block + div.block {
  flex: 1;
}

.singelblock div.block:last-child {
  display: none;
}

.block {
  min-height: 10vh;
  padding: 12px 10px;
  border: 2px solid #faf0f5;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.11), 
              0 2px 4px rgba(0,0,0,0.11), 
              0 4px 8px rgba(0,0,0,0.11), 
              0 6px 16px rgba(0,0,0,0.11),
              0 8px 32px rgba(0,0,0,0.11);
  overflow: auto;
}

.block_title {
  display: flex; /*Dessa båda centrerar*/
  align-items: center; /*ikon och titel vertikalt.*/
  line-height: 1.2rem;
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.08rem;
  color: #fff;
  height: 2.4rem;
  background-color: #19657F;
  /*background-image: linear-gradient(to right, #19657F, #fff);*/
  border-radius: 5px;
  margin-bottom: 17px;
}

/*Media query (det som händer när skärmutrymmet smalnar).*/

@media screen and (max-width: 750px) {
  .wrapper > div {
    flex-direction: column-reverse;/* alternativen 'column' eller 'column-reverse' avgör vilket block som fälls in under det andra */
    flex-basis: 100%;
  }
}

/*========================================
Enskilda block
==========================================*/
#utm_artikel p span a,
#skandinavisk p span a,
#skandinavisk i a {
	text-decoration: none;
    font-style: normal;
	font-weight: bold;
	background-color: #F74713;
	color: #fff;
	padding: 2px 11px 2px 7px;
	border-radius: 100vw;
	margin-left: 2px;
}

#skandinavisk i a {
	white-space: nowrap;
	font-size: 90%;
}

#utm_artikel hr + p,
#visste_du hr + ul {
	font-size: 91%;
	list-style: none;
}

#deltagande img {
  display: none;
}

#deltagande div.block_title.icon img {
  display: unset;
}

#deltagande {
  background: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)/*brightness-trick*/
      ),   url(https://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Wikipedia-logo-v2-square.svg/480px-Wikipedia-logo-v2-square.svg.png);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-color: white;
}

#utvald_bild p img {
  width: 100%;
  height: auto;
}

#systrar .icon img,
#aktuellt .icon img,
#utvald_bild .icon img {
  box-shadow: 0 0 0 0.5px #19657F;
}

/* [[Kategori:Testmallar]] */