Natours project finished
This commit is contained in:
1 parent
ddb3d951af
commit
a45d6208d5
5 files changed
+216
-9
No files matched your search
@@ -459,6 +459,74 @@ body {
|
||||
.form__radio-input:checked ~ .form__radio-label .form__radio-button::after {
|
||||
opacity: 1; }
|
||||
|
||||
.popup {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.82);
|
||||
z-index: 4000;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: all 0.4s; }
|
||||
.popup__content {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: table;
|
||||
width: 75%;
|
||||
box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
|
||||
background-color: #fff;
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transform: translate(-50%, -50%) scale(0);
|
||||
transition: all 0.4s 0.2s; }
|
||||
.popup__left {
|
||||
width: 33.3333333%;
|
||||
display: table-cell;
|
||||
vertical-align: middle; }
|
||||
.popup__right {
|
||||
width: 66.6666667%;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
padding: 3rem 5rem; }
|
||||
.popup__img {
|
||||
display: block;
|
||||
width: 100%; }
|
||||
.popup__text {
|
||||
font-size: 1.4rem;
|
||||
margin-bottom: 4rem;
|
||||
-moz-column-count: 2;
|
||||
-moz-column-gap: 4rem;
|
||||
-moz-column-rule: 1px solid #999;
|
||||
column-count: 2;
|
||||
column-gap: 4rem;
|
||||
column-rule: 1px solid #999;
|
||||
-moz-hyphens: auto;
|
||||
-ms-hyphens: auto;
|
||||
-webkit-hyphens: auto;
|
||||
hyphens: auto; }
|
||||
.popup:target {
|
||||
opacity: 1;
|
||||
visibility: visible; }
|
||||
.popup:target .popup__content {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, -50%) scale(1); }
|
||||
.popup__close:link, .popup__close:visited {
|
||||
color: #777;
|
||||
position: absolute;
|
||||
top: 2.5rem;
|
||||
right: 2.5rem;
|
||||
font-size: 3rem;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
transition: all 0.2s; }
|
||||
.popup__close:hover {
|
||||
color: #55c57a; }
|
||||
|
||||
.header {
|
||||
height: 95vh;
|
||||
background-image: linear-gradient(to right bottom, rgba(126, 213, 111, 0.801), rgba(40, 180, 133, 0.808)), url("../img/hero.jpg");
|
||||
|
||||
Reference in new issue
Block a user