MediaWiki:Common.css: Difference between revisions

From Wiki PeiP systèmes embarqués
Jump to navigation Jump to search
(Created page with "→‎CSS placed here will be applied to all skins: .iphone { width: 360px; height: 756px; background: #f9f7f9; border: 5px solid #c1bfc1; border-radius: 45px; opacity: 0.8; } .highlight { width: 352px; height: 748px; border: 3px solid #fff; border-radius: 45px; position: relative; z-index: 10; top: -1485px; left: 6px; } .circle { width: 11px; height: 11px; background: #333; border-radius: 50%; position: relative; top: -745px;...")
 
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


.iphone {
.phone {
  width: 360px;
    position: relative;
  height: 756px;
    width: 360px;
  background: #f9f7f9;
    height: 640px;
  border: 5px solid #c1bfc1;
    margin: auto;
  border-radius: 45px;
    border: 16px rgb(75, 75, 75) solid;
  opacity: 0.8;
    border-top-width: 60px;
}
    border-bottom-width: 60px;
    border-radius: 36px;
  }


.highlight {
.phone:before {
  width: 352px;
    content: '';
  height: 748px;
    display: block;
  border: 3px solid #fff;
    width: 60px;
  border-radius: 45px;
    height: 5px;
  position: relative;
    position: absolute;
  z-index: 10;
    top: -30px;
  top: -1485px;
    left: 50%;
  left: 6px;
    transform: translate(-50%, -50%);
}
    background: #333;
    border-radius: 10px;
  }


.circle {
.phone:after {
  width: 11px;
    content: '';
  height: 11px;
    display: block;
  background: #333;
    width: 35px;
  border-radius: 50%;
    height: 35px;
  position: relative;
    position: absolute;
  top: -745px;
    left: 50%;
  left: 175px;
    bottom: -65px;
}
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 50%;
  }


.camera {
.phone .content {
  width: 14px;
    width: 360px;
  height: 14px;
    height: 640px;
  background: #333;
    background: white;
  border-radius: 50%;
   }
  position: relative;
  top: -735px;
  left: 116px; 
}
 
.speaker {
  width: 61px;
  height: 6px;
  background: #333;
  border-radius: 5px;
   position: relative;
  top: -745px;
  left: 151px; 
}
 
.screen {
  width: 326px;
  height: 580px;
  border: 3px solid #333;
  border-radius: 5px;
  position: relative;
  left: 18px;
  top: -710px;
  background: #7f8282;
  background: -webkit-linear-gradient(#e2e3e4, #7f8282);
  background: -o-linear-gradient(#e2e3e4, #7f8282);
  background: -moz-linear-gradient(#e2e3e4, #7f8282);
  background: linear-gradient(#e2e3e4, #7f8282);
 
.home1 {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  top: -692px;
  left: 154px;
  z-index: 2;
}
 
.home2 {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  position: relative;
  top: -746px;
  left: 150px;
  background: #7f8282;
  background: -webkit-linear-gradient(#e2e3e4, #7f8282);
  background: -o-linear-gradient(#e2e3e4, #7f8282);
  background: -moz-linear-gradient(#e2e3e4, #7f8282);
  background: linear-gradient(#e2e3e4, #7f8282);
}

Revision as of 19:43, 29 June 2023

/* CSS placed here will be applied to all skins */

.phone {
    position: relative;
    width: 360px;
    height: 640px;
    margin: auto;
    border: 16px rgb(75, 75, 75) solid;
    border-top-width: 60px;
    border-bottom-width: 60px;
    border-radius: 36px;
  }

.phone:before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 10px;
  }

.phone:after {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    position: absolute;
    left: 50%;
    bottom: -65px;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 50%;
  }

.phone .content {
    width: 360px;
    height: 640px;
    background: white;
  }