You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

502 lines
8.9 KiB

html,
body {
height: 100%;
}
body {
position: relative;
margin: 0px;
padding: 0px;
width: 100%;
min-height: 100%;
height: 100%;
background-color: var(--main-bg-color);
}
header {
position: relative;
}
.main-search-wrapper {
position: relative;
max-width: 820px;
min-width: 160px;
height: 48px;
margin-left: auto;
margin-right: auto;
}
.main-search-pic {
position: absolute;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100" height="100" viewBox="0 0 50 50"><path d="M 21 3 C 11.621094 3 4 10.621094 4 20 C 4 29.378906 11.621094 37 21 37 C 24.710938 37 28.140625 35.804688 30.9375 33.78125 L 44.09375 46.90625 L 46.90625 44.09375 L 33.90625 31.0625 C 36.460938 28.085938 38 24.222656 38 20 C 38 10.621094 30.378906 3 21 3 Z M 21 5 C 29.296875 5 36 11.703125 36 20 C 36 28.296875 29.296875 35 21 35 C 12.703125 35 6 28.296875 6 20 C 6 11.703125 12.703125 5 21 5 Z"></path></svg>');
background-repeat: no-repeat;
background-size: 20px 20px;
width: 20px;
height: 100%;
left: 10px;
top: 15px;
opacity: 0.25;
}
.main-search {
display: block;
width: 100%;
height: 100%;
background-color: #fff;
border-color: transparent;
border-radius: 14px;
border-style: solid;
border-width: 1px;
}
.main-search:hover {
border-color: var(--second-font-color);
}
.main-search:focus,
.main-search:active {
border-color: var(--active-color);
}
#search::placeholder {
color: var(--second-font-color);
font-size: 16px;
font-family: Vedi, Verdana, Tahoma;
opacity: 1;
}
.main-search-btn {
display: block;
margin-left: auto;
margin-right: auto;
max-width: 200px;
width: 200px;
height: 50px;
min-width: 80px;
background: var(--main-font-color);
color: var(--main-bg-color);
font-size: 21px;
line-height: 25px;
border-radius: 15px;
cursor: pointer;
}
.main-search-btn:hover {
opacity: 0.9;
}
.main-search-btn:active {
transform: translateY(2px);
transition: opacity 0.15s;
}
.main-content {
width: 100%;
margin-left: auto;
margin-right: auto;
}
/*========================================================
Book Section
========================================================*/
.main-book__wrapper {
height: 800px;
position: relative;
}
.main-book__wrapper > .flowers {
background-image: url(../images/flower.jpeg);
background-repeat: no-repeat;
background-size: contain;
background-position: center;
max-width: 736px;
max-height: 900px;
width: 100%;
height: 100%;
position: absolute;
left: 50%;
top: 20px;
transform: translateX(-50%);
z-index: -1;
}
.blur > .flowers {
background-image: none;
/* filter: blur(2px);
opacity: 0.55; */
}
.main-book__card {
position: relative;
flex-wrap: wrap;
background-color: #fff;
border-radius: 14px;
max-width: 820px;
min-width: 160px;
padding: 20px 40px;
}
.main-book__card.card_closed {
max-height: 450px;
overflow-y: hidden;
}
.no-book__card {
position: relative;
border-radius: 14px;
max-width: 820px;
min-width: 160px;
padding: 20px 40px;
height: 100px;
}
.main-book__format {
writing-mode: vertical-rl;
}
.main-book__image {
width: 160px;
}
.main-card__name {
text-overflow: ellipsis;
overflow: hidden;
}
.main-book__description {
width: 100%;
max-width: 615px;
display: flex;
flex-direction: column;
}
.main-book__body {
width: 100%;
max-width: 600px;
flex: 1 0 auto;
padding-right: 17px;
text-align: justify;
scrollbar-color: var(--matte-white) #fff;
scrollbar-width: thin;
}
.main-book__body.body_closed {
max-height: 300px;
overflow: hidden;
}
.main-book__body:not(.body_closed) {
animation: 0.8s slideDown1;
}
@keyframes slideDown1 {
0% {
transform: translateY(-2%);
}
100% {
transform: translateY(0%);
}
}
@-webkit-keyframes slideDown1 {
0% {
-webkit-transform: translateY(-2%);
}
100% {
-webkit-transform: translateY(0%);
}
}
.main-book__body::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
background-color: #fff;
}
.main-book__body::-webkit-scrollbar {
width: 5px;
background-color: #fff;
}
.main-book__body::-webkit-scrollbar-thumb {
background-color: var(--matte-white);
border: 1px solid var(--matte-white);
}
.main-book__header {
text-overflow: ellipsis;
overflow: hidden;
padding-right: 65px;
}
.main-card__author {
font-size: 13px;
}
.main-book__menu {
position: absolute;
top: 20px;
right: 20px;
z-index: 1;
cursor: pointer;
}
.main-book__menu > ul {
width: 100%;
height: 100%;
z-index: 1;
top: 20px;
animation: 0.5s slideDown;
list-style-type: none;
}
@keyframes slideDown {
0% {
transform: translateY(-10%);
}
100% {
transform: translateY(0%);
}
}
@-webkit-keyframes slideDown {
0% {
-webkit-transform: translateY(-10%);
}
100% {
-webkit-transform: translateY(0%);
}
}
.main-book__menu_opened {
z-index: 2;
border-radius: 12px;
box-shadow: 0px 10px 20px 2px rgba(0, 0, 0, 0.25);
}
.main-book__menu_closed {
width: 50px;
}
.main-book__menu_closed:after {
content: "\2807";
font-size: 20px;
}
.main-book__menu_closed:hover:after {
color: var(--active-color);
}
.main-book__menu_like {
background-image: url(../assets/heart.svg);
background-repeat: no-repeat;
position: absolute;
width: 20px;
height: 20px;
right: 105px;
top: 20px;
cursor: pointer;
}
.main-book__menu_like:hover {
opacity: 0.5;
}
.main-book__menu_like.liked {
background-image: url(../assets/heart_full.svg);
}
.main-book__action {
padding-left: 12px;
padding-top: 4px;
padding-bottom: 4px;
background: #fff;
line-height: 28px;
width: 200px;
vertical-align: middle;
}
.main-book__action:first-child {
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
.main-book__action:last-child {
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}
.main-book__action:hover {
background: var(--main-bg-color);
}
.main-book__center {
width: 100%;
flex-shrink: 0;
flex-wrap: wrap;
}
.main-book__tags_title {
position: relative;
width: 55px;
font-family: Vedi, Verdana, Tahoma;
font-size: 14px;
line-height: 24px;
font-weight: normal;
}
.main-book__tags_title:hover,
.main-book__tags_title:active {
cursor: pointer;
color: var(--active-color);
}
.pencil {
position: absolute;
top: 4px;
left: 40px;
background-image: url(../assets/pencil.svg);
background-repeat: no-repeat;
width: 20px;
height: 100%;
}
.main-book__tags_title:hover,
.main-book__tags_title:active .pencil {
filter: brightness(0) saturate(100%) invert(43%) sepia(34%) saturate(7336%)
hue-rotate(202deg) brightness(82%) contrast(97%);
}
.main-book__tag {
color: var(--active-color);
margin-left: 6px;
cursor: pointer;
font-size: 14px;
}
.main-book__tag:hover {
text-decoration: underline;
opacity: 0.8;
}
.main-book__link {
cursor: pointer;
}
.main-book__link:hover {
color: var(--active-color);
opacity: 0.8;
}
.main-book__arrow_wrapper {
height: 20px;
}
.main-book__arrow_wrapper:before {
content: "";
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 120px;
background-image: linear-gradient(
to bottom,
rgba(255, 255, 255, 0),
rgba(255, 2555, 255, 1)
);
}
.main-book__arrow {
cursor: pointer;
height: 50px;
left: 50%;
position: absolute;
z-index: 1;
bottom: 0;
transform: translateX(-50%) translateY(-50%);
transition: transform 0s;
width: 100px;
background-color: rgba(255, 255, 255, 0.4);
}
.main-book__arrow:hover,
.main-book__arrow:active {
.main-book__arrow-top,
.main-book__arrow-bottom {
background-color: var(--active-color);
}
}
.main-book__arrow-top,
.main-book__arrow-bottom {
background-color: var(--second-font-color);
height: 1px;
left: -5px;
position: absolute;
width: 50px;
}
.main-book__arrow-top:after,
.main-book__arrow-bottom:after {
background-color: #fff;
content: "";
height: 100%;
position: absolute;
top: 0;
transition: all 0.15s;
}
.main-book__arrow-top {
transform: rotate(20deg);
transform-origin: bottom right;
bottom: 5px;
}
.main-book__arrow-bottom {
transform: rotate(160deg);
transform-origin: top right;
bottom: 4px;
}
.main-book__arrow_wrapper .opened {
transform: rotate(180deg);
transform-origin: 25% 50%;
}
.main-book__arrow_wrapper.opened:before {
background-image: linear-gradient(
to bottom,
rgba(255, 255, 255, 0),
rgba(255, 2555, 255, 0)
);
bottom: 0;
}
.main-book__tags_wrapper {
width: 100%;
}
.main-book__textarea {
width: 100%;
height: 50px;
padding: 12px 20px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
background-color: #FFF;
color: var(--main-font-color);
font-size: 14px;
font-family: Vedi, Verdana, Tahoma;
resize: none;
outline: none;
}
.main-book__textarea:focus,
.main-book__textarea:active {
outline: none !important;
border: 1px solid var(--active-color);
}

Powered by TurnKey Linux.