MediaWiki:EnsSpeDemo.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
.demo-third { | .demo-third { | ||
width: 33% | width: 33%; | ||
float: left; | |||
} | } | ||
.demo-left { | .demo-left { | ||
left: 0 | left: 0; | ||
} | } | ||
.demo-right { | .demo-right { | ||
right: 0 | right: 0; | ||
} | } |
Revision as of 08:55, 30 June 2023
.phone {
position: relative;
width: 180px;
height: 320px;
margin: auto;
border: 8px rgb(75, 75, 75) solid;
border-top-width: 30px;
border-bottom-width: 30px;
border-radius: 18px;
}
.phone:before {
content: '';
display: block;
width: 30px;
height: 5px;
position: absolute;
top: -15px;
left: 50%;
transform: translate(-50%, -50%);
background: #333;
border-radius: 10px;
}
.phone:after {
content: '';
display: block;
width: 20px;
height: 20px;
position: absolute;
left: 50%;
bottom: -35px;
transform: translate(-50%, -50%);
background: #333;
border-radius: 50%;
}
.phone .content {
width: 180px;
height: 320px;
background: white;
}
.demo-third {
width: 33%;
float: left;
}
.demo-left {
left: 0;
}
.demo-right {
right: 0;
}