libarea/resources/views/default/css/scss/components.scss

343 lines
5.3 KiB
SCSS
Raw Normal View History

2021-12-25 17:22:49 +01:00
/*
* Components based on the basic style of Agouti
*
* Компоненты, основанные на базовом стиле Агути
*/
2021-11-25 21:28:55 +01:00
2022-01-31 08:56:51 +01:00
#contentWrapper {
display: flex;
2022-01-27 18:59:03 +01:00
gap: 1rem;
margin: 0 auto;
}
h1,
h2,
h3,
h4,
h5 {
2022-01-31 18:15:38 +01:00
font-weight: 500;
margin: 0;
2022-01-27 18:59:03 +01:00
}
.d-header {
top: 0;
z-index: 50;
position: sticky;
background-color: var(--white);
box-shadow: 0 2px 4px -1px rgb(0 0 0 / 25%);
backface-visibility: hidden;
height: 3.5em;
margin-bottom: 15px;
}
.medium-zoom--opened .d-header,
.medium-zoom--opened.up_down_btn { z-index: 0; }
.d-header .ava-base { margin-right: 0; }
.wrap {
margin: 0 auto;
height: 100%;
max-width: 1336px;
padding-left: 5px;
padding-right: 5px;
}
.d-header_contents {
display: flex;
align-items: center;
height: 100%;
padding: 0 15px;
position: relative;
}
.search {
height: 30px;
width: 100%;
border-radius: 20px;
background-color: var(--gray-100);
padding-left: 15px;
}
.page-search {
display: flex;
flex-direction: row;
width: 100%;
align-items: center;
justify-content: space-between;
padding: 20px 60px 10px 30px;
margin: 0 auto;
}
.main-search {
margin-left: 30px;
}
.page-search-right {
width: 100%;
margin-left: 45px;
}
.page-search__input {
width: 100%;
border-radius: 5px;
height: 50px;
border: 9px solid #eee;
padding-left: 15px;
color: var(--gray-700);
}
.tabs {
padding: 3px 6px 3px 6px;
margin-right: 15px;
}
.tabs.active {
background-color: var(--gray-100);
color: var(--gray-400);
}
aside {
min-width: 260px;
max-width: 310px;
}
aside ul {
list-style: none;
padding: 0;
margin: 0;
font-size: 0.875rem;
}
aside ul a { color: var(--gray-600); }
2022-01-29 05:47:29 +01:00
footer {
2022-01-31 18:15:38 +01:00
background-color: var(--white);
color: var(--gray-600);
2022-01-29 05:47:29 +01:00
padding: 15px;
overflow: hidden;
margin-top: 15px;
2022-01-29 05:47:29 +01:00
}
footer .icon {
color: var(--gray-400);
font-size: 21px;
margin-right: 15px;
}
footer ul {
padding-left: 60px;
list-style: none;
margin: 0;
}
footer ul li a {
font-size: 14px;
2022-01-31 18:15:38 +01:00
color: var(--gray-600);
2022-01-29 05:47:29 +01:00
margin-bottom: 5px;
}
2022-01-31 18:15:38 +01:00
footer ul li a:hover,
footer .icon:hover { color: #111; }
2021-11-25 21:28:55 +01:00
code {
color: #9b4f5e;
background-color: #f5f2f0;
padding: 3px;
border-radius: 3px;
font-size: 14px;
}
pre { white-space: pre-wrap; }
blockquote {
margin-left: 15px;
background-color: #f3f3f6;
padding: 0.1rem 1rem;
border-left: 3px solid #d2d6dd;
display: table;
}
hr {
border: none;
clear: both;
background-color: #ddd;
height: 1px;
}
2022-01-27 18:59:03 +01:00
details {
border-radius: 0 0 3px 3px;
background-color: #f5f5fa;
padding: 2px 6px;
margin: 0;
2021-11-25 21:28:55 +01:00
}
2022-01-27 18:59:03 +01:00
summary {
background-color: #f5f5fa;
color: #666;
font-size: 14px;
}
2022-01-27 18:59:03 +01:00
details[open] > summary {
padding: 0 0 10px 0;
color: #666;
}
.txt-closed {
padding: 10px;
background-color: var(--sky-50);
margin-bottom: 15px;
display: inherit;
}
.tooltip {
position: absolute;
right: 0;
box-shadow: 0 12px 12px rgba(0, 0, 0, 0.15);
background-color: #fff;
padding: 10px;
font-size: 14px;
border-radius: 5px;
color: var(--gray-400);
text-align: center;
}
2022-01-31 18:15:38 +01:00
.box {
border-radius: 5px;
padding: 15px;
margin-bottom: 15px;
}
.box-white {
border-radius: 5px;
padding: 15px;
margin-bottom: 15px;
border: 1px solid var(--br-box-gray);
background-color: var(--white);
}
2022-02-13 06:30:37 +01:00
.box-flex {
display: flex;
flex-direction: row;
align-items: center;
padding: 15px;
margin-bottom: 15px;
}
2022-02-13 06:30:37 +01:00
.box-flex-white {
2022-01-31 18:15:38 +01:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-radius: 5px;
padding: 15px;
2022-01-31 18:15:38 +01:00
margin-bottom: 15px;
border: 1px solid var(--br-box-gray);
background-color: var(--white);
2022-01-31 18:15:38 +01:00
}
ul.last-content {
list-style: none;
font-size: 0.875rem;
padding: 0;
margin: 0;
}
ul.last-content li {
margin-bottom: 15px;
}
ul.last-content li a {
display: inline;
padding: 0;
}
ul.last-content a.last-content_telo { display: block; }
2022-01-31 18:15:38 +01:00
.uppercase-box {
font-size: 0.75rem;
2022-01-31 18:15:38 +01:00
text-transform: uppercase;
margin-bottom: 10px;
letter-spacing: 1.5px;
2022-01-31 18:15:38 +01:00
}
2022-01-27 18:59:03 +01:00
a:hover > img { opacity: 0.8; }
.underline-hover:hover { text-decoration: underline; }
.answ-telo p:first-child {margin: 6px 0;}
2021-11-25 21:28:55 +01:00
.shown_post img { width: 100%; }
.post-body.full img:hover { box-shadow: 0 1px 8px 0 rgb(0 0 0 / 20%); }
.post-body .post-img img { margin-top: 5px; }
.post-body.full img {
max-width: 100%;
display: block;
}
.answ-telo p img {
max-width: 99%;
max-height: 500px;
display: block;
}
.comment_subtree:target,
.comment_subtree.edit,
.answers_subtree:target,
.answers_subtree.edit {
background-clip: content-box;
background-color: lightyellow;
margin-top: -70px;
padding-top: 70px;
}
.video-object {
width: 640px;
height: 360px;
}
.answ-telo .video-object {
width: 290px;
height: 160px;
}
.home-img,
.thumb {
width: 260px;
height: 130px;
object-fit: cover;
}
.preview .home-img { display: none; }
.up_down_btn {
bottom: 40px;
right: 10px;
line-height: 30px;
cursor: pointer;
2022-01-27 18:59:03 +01:00
background-color: #f3f4f6;
text-align: center;
position: fixed;
z-index: 50;
height: 30px;
width: 30px;
color: #374151;
border-radius: 3px;
2021-11-25 21:28:55 +01:00
}
.up_down_btn:hover {
text-decoration: none;
background-color: #e9ebec;
}
.up_down_btn-disabled {
cursor: default;
opacity: 0;
2021-12-09 14:35:26 +01:00
}
.box-answer {
line-height: 1.3;
padding: 5px;
height: 48px;
width: 54px;
text-align: center;
}