Created
August 1, 2018 08:06
-
-
Save danmaby/d4351aa94dc1f678ae351118b4d780de to your computer and use it in GitHub Desktop.
Polished Mobile Nails Decorative Wrap CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Decorative wrap -----*/ | |
.wrap-default, .decorative-wrap-1, .decorative-wrap-2, .decorative-wrap-3, .decorative-wrap-4 { | |
position: relative; | |
z-index: 1; | |
display: inline-block; | |
} | |
@media (min-width: 992px) { | |
.wrap-default, .decorative-wrap-1, .decorative-wrap-2, .decorative-wrap-3, .decorative-wrap-4 { | |
display: block; | |
} | |
} | |
.wrap-default .decorative-border, .decorative-wrap-1 .decorative-border, .decorative-wrap-2 .decorative-border, .decorative-wrap-3 .decorative-border, .decorative-wrap-4 .decorative-border { | |
border: 3px solid #000; | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
z-index: 2; | |
display: none; | |
} | |
@media (min-width: 992px) { | |
.wrap-default .decorative-border, .decorative-wrap-1 .decorative-border, .decorative-wrap-2 .decorative-border, .decorative-wrap-3 .decorative-border, .decorative-wrap-4 .decorative-border { | |
z-index: 0; | |
display: block; | |
} | |
} | |
.wrap-default .image-wrap, .decorative-wrap-1 .image-wrap, .decorative-wrap-2 .image-wrap, .decorative-wrap-3 .image-wrap, .decorative-wrap-4 .image-wrap { | |
position: relative; | |
overflow: hidden; | |
display: inline-block; | |
} | |
.wrap-default .image-wrap img, .decorative-wrap-1 .image-wrap img, .decorative-wrap-2 .image-wrap img, .decorative-wrap-3 .image-wrap img, .decorative-wrap-4 .image-wrap img { | |
width: 100%; | |
height: auto; | |
} | |
@media (min-width: 992px) { | |
.wrap-default .image-wrap, .decorative-wrap-1 .image-wrap, .decorative-wrap-2 .image-wrap, .decorative-wrap-3 .image-wrap, .decorative-wrap-4 .image-wrap { | |
width: 100%; | |
} | |
.wrap-default .image-wrap img, .decorative-wrap-1 .image-wrap img, .decorative-wrap-2 .image-wrap img, .decorative-wrap-3 .image-wrap img, .decorative-wrap-4 .image-wrap img { | |
width: 100%; | |
height: auto; | |
} | |
.wrap-default .image-wrap:before, .decorative-wrap-1 .image-wrap:before, .decorative-wrap-2 .image-wrap:before, .decorative-wrap-3 .image-wrap:before, .decorative-wrap-4 .image-wrap:before { | |
content: ''; | |
position: absolute; | |
border: 3px solid #fff; | |
} | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-1 .decorative-border { | |
top: -30px; | |
bottom: 30px; | |
left: -30px; | |
right: 30px; | |
} | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-1 .image-wrap:before { | |
top: -30px; | |
left: -30px; | |
right: 30px; | |
bottom: 30px; | |
} | |
} | |
.decorative-wrap-2 .decorative-background { | |
position: absolute; | |
top: -110px; | |
left: -110px; | |
width: 100%; | |
height: 100%; | |
/*background: #dd2163;*/ | |
background: #ff2989; | |
display: none; | |
overflow: hidden; | |
} | |
.decorative-wrap-2 .decorative-background:before { | |
content: ''; | |
position: absolute; | |
top: 50px; | |
left: 50px; | |
width: 100%; | |
height: 100%; | |
border: 3px solid #fff; | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-2 .decorative-background { | |
display: block; | |
} | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-2 .decorative-border { | |
top: -60px; | |
bottom: 45px; | |
left: -60px; | |
right: 50px; | |
} | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-2 .image-wrap:before { | |
top: -60px; | |
bottom: 41px; | |
left: -60px; | |
right: 50px; | |
} | |
} | |
.decorative-wrap-3 .decorative-background { | |
position: absolute; | |
top: 150px; | |
left: -30px; | |
width: 70%; | |
height: 70%; | |
/*background: #dd2163;*/ | |
background: #ff2989; | |
display: none; | |
overflow: hidden; | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-3 .decorative-background { | |
display: block; | |
} | |
} | |
.decorative-wrap-3 .decorative-border { | |
z-index: 3; | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-3 .decorative-border { | |
z-index: 2; | |
top: -52px; | |
bottom: 120px; | |
left: -55px; | |
right: 174px; | |
} | |
} | |
.decorative-wrap-3 .image-wrap { | |
z-index: 2; | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-3 .image-wrap:before { | |
top: -52px; | |
bottom: 116px; | |
left: -55px; | |
right: 174px; | |
} | |
} | |
.decorative-wrap-4 .decorative-background { | |
position: absolute; | |
top: 150px; | |
left: -30px; | |
width: 95%; | |
height: 74%; | |
/*background: #dd2163;*/ | |
background: #ff2989; | |
display: none; | |
overflow: hidden; | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-4 .decorative-background { | |
display: block; | |
} | |
} | |
.decorative-wrap-4 .decorative-border { | |
z-index: 2; | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-4 .decorative-border { | |
top: -52px; | |
bottom: 204px; | |
left: -55px; | |
right: 49px; | |
} | |
} | |
.decorative-wrap-4 .image-wrap { | |
z-index: 2; | |
} | |
@media (min-width: 992px) { | |
.decorative-wrap-4 .image-wrap:before { | |
top: -52px; | |
bottom: 200px; | |
left: -55px; | |
right: 49px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment