287 lines
5.2 KiB
CSS
287 lines
5.2 KiB
CSS
|
||
body {
|
||
background-color: #d7d7d7;
|
||
}
|
||
|
||
.dsfd{
|
||
text-align: right;
|
||
}
|
||
.imageFon {
|
||
/*background: url(../image/64ed33179141073.64f4b4f57a43e.jpg);*/
|
||
background: url(../image/64ed33179141073.64f4b4f57a43e.jpg);
|
||
|
||
background-size: cover;
|
||
width: 100%;
|
||
height: 1000px;
|
||
background-repeat: no-repeat;
|
||
}
|
||
|
||
/*AldertSans*/
|
||
@font-face {
|
||
font-family: 'AlbertSans';
|
||
src: url(../fontfamali/AlbertSans/AlbertSans-Bold.ttf);
|
||
}
|
||
|
||
/*Dihjauti*/
|
||
@font-face {
|
||
font-family: 'Dihjauti';
|
||
src: url(../fontfamali/Dihjauti/Dihjauti-Bold.otf);
|
||
}
|
||
|
||
.fontAldertSans {
|
||
font-family: 'AlbertSans';
|
||
font-size: 20px;
|
||
}
|
||
|
||
.fontDihjauti {
|
||
font-family: 'Dihjauti';
|
||
font-size: 20px;
|
||
}
|
||
|
||
|
||
|
||
/*Выявление*/
|
||
.green {
|
||
background-color: green;
|
||
}
|
||
|
||
.red {
|
||
background-color: red;;
|
||
}
|
||
|
||
|
||
|
||
/*Рамка во круг фотографии*/
|
||
.imgBorder {
|
||
border: 3px solid transparent; /* Прозрачная рамка */
|
||
}
|
||
.imgBorder:hover {
|
||
border: 3px solid #00af64; /* Цветная рамка */
|
||
}
|
||
|
||
.sasdasdasd{
|
||
max-width: 300px;
|
||
}
|
||
|
||
|
||
/* Задаем высоту большим блокам, чтобы у нас на странице получится скролл */
|
||
.element-big {
|
||
width: 100%;
|
||
height: 1200px;
|
||
}
|
||
|
||
.element-animation {
|
||
margin: 2rem 0;
|
||
font-size: 3rem;
|
||
|
||
/* Скроем элемент в начальном состоянии */
|
||
opacity: 0;
|
||
transform: translateY(20px);
|
||
}
|
||
|
||
.element-animation.element-show {
|
||
opacity: 1;
|
||
transition: all 1.5s;
|
||
transform: translateY(0%);
|
||
}
|
||
|
||
|
||
|
||
/*Прозрачный фон*/
|
||
@import url("https://fonts.googleapis.com/css2?family=Reggae+One&family=Source+Sans+Pro&family=Oleo+Script&family=Dela+Gothic+One&family=Atma&display=swap");
|
||
|
||
/* ----- RESET ----- */
|
||
* {
|
||
padding: 0;
|
||
margin: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.backCard {
|
||
font-size: 16px;
|
||
background-color: #e2efff;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
|
||
|
||
|
||
|
||
#brand-name {
|
||
color: #ededed;
|
||
font-family: "Reggae One", cursive;
|
||
flex-shrink: 1;
|
||
}
|
||
|
||
.tagline {
|
||
color: #b3b3b3;
|
||
font-family: "Oleo Script", cursive;
|
||
flex-shrink: 1;
|
||
}
|
||
|
||
header svg {
|
||
fill: #ededed;
|
||
width: 3.2rem;
|
||
margin-left: 1.4rem;
|
||
grid-row: 1 / span 2;
|
||
grid-column: 2 / span 1;
|
||
}
|
||
|
||
h2,
|
||
.category-description {
|
||
background-image: linear-gradient(90deg, #f2bc18, #fffc2e);
|
||
width: calc(100% - calc(2.2rem * 2));
|
||
max-width: 640px;
|
||
padding: 2.8rem;
|
||
transform: translateY(2.2rem);
|
||
}
|
||
|
||
h2 {
|
||
color: rgba(0, 0, 0, 0.8);
|
||
font-family: "Dela Gothic One", cursive;
|
||
font-size: 2rem;
|
||
padding-bottom: 1.5rem;
|
||
margin-bottom: 0;
|
||
border-radius: 2.7rem 2.7rem 0 0;
|
||
}
|
||
|
||
.category-description {
|
||
color: rgba(0, 0, 0, 0.45);
|
||
font-family: "Atma", cursive;
|
||
font-size: 1.25rem;
|
||
padding-top: 0;
|
||
padding-bottom: 6.5rem;
|
||
margin-top: 0;
|
||
border-radius: 0 0 2.7rem 2.7rem;
|
||
}
|
||
|
||
.item {
|
||
background-color: rgba(255, 255, 255, 0.5);
|
||
width: calc(100% - calc(4.8rem * 2));
|
||
max-width: 480px;
|
||
padding: 2.8rem;
|
||
margin-bottom: 2.2rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
border-radius: 1.7rem;
|
||
box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
|
||
transform: translateY(-1rem);
|
||
backdrop-filter: blur(1.5rem);
|
||
}
|
||
|
||
.item:last-child {
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
.item h3 {
|
||
font-size: 1.75rem;
|
||
font-weight: bold;
|
||
height: 2.8rem;
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
.item figure {
|
||
width: 100%;
|
||
margin-bottom: 1.5rem;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
overflow: hidden;
|
||
border-radius: 1.5rem;
|
||
}
|
||
|
||
.item figure img {
|
||
height: 320px;
|
||
display: block;
|
||
}
|
||
|
||
.description {
|
||
color: rgba(255, 255, 255, 0.7);
|
||
background-color: rgba(0, 0, 0, 0.5);
|
||
width: calc(100% - calc(2.8rem * 2));
|
||
height: 320px;
|
||
line-height: 1.75rem;
|
||
padding: 2.5rem;
|
||
position: absolute;
|
||
top: calc(2.8rem + 3.3rem);
|
||
left: 2.8rem;
|
||
overflow: auto;
|
||
opacity: 0;
|
||
border-radius: 1.5rem;
|
||
transition: opacity 200ms ease-out;
|
||
}
|
||
|
||
.item figure:hover + .description,
|
||
.description:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
.item button {
|
||
width: 100%;
|
||
color: #d99904;
|
||
font-size: 1.5rem;
|
||
font-weight: bold;
|
||
text-shadow: 0 -1px #ffc233;
|
||
background-image: linear-gradient(#ffe46e 0%, #ffd936 30% 80%, #ffcd19 100%);
|
||
padding: 1.4rem;
|
||
border: solid 1px #c98d00;
|
||
outline: none;
|
||
border-radius: 2.5rem / 50%;
|
||
transition: filter 500ms ease-out;
|
||
}
|
||
|
||
.item button:hover {
|
||
filter: brightness(90%);
|
||
}
|
||
|
||
.item button:active {
|
||
filter: brightness(80%);
|
||
}
|
||
|
||
.price {
|
||
font-size: 1.4rem;
|
||
font-weight: bold;
|
||
margin-bottom: 1.5rem;
|
||
}
|
||
|
||
.special {
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
select {
|
||
padding: 0.8rem 1.2rem;
|
||
border: solid 1px #efefef;
|
||
margin-bottom: 1.2rem;
|
||
outline: none;
|
||
border-radius: 0.75rem;
|
||
transition: box-shadow 200ms ease-out;
|
||
}
|
||
|
||
select:focus,
|
||
select:active {
|
||
box-shadow: 0 0 0 0.25rem rgba(43, 153, 255, 0.5);
|
||
}
|
||
|
||
label {
|
||
margin-bottom: 0.7rem;
|
||
}
|
||
|
||
|
||
|
||
/*Закругления краев*/
|
||
.border{
|
||
border-radius: 20px 20px 20px 20px;
|
||
}
|
||
|
||
.borderImageTop{
|
||
border-radius: 20px 20px 0px 0px ;
|
||
}
|
||
|
||
|
||
.fill {
|
||
background-size: cover;
|
||
background-position: center;
|
||
|
||
}
|