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

372 lines
6 KiB
SCSS
Raw Normal View History

2021-12-25 17:22:49 +01:00
/*
* Components based on the basic style of libArea
2021-12-25 17:22:49 +01:00
*
* Компоненты, основанные на базовом стиле LibArea
2021-12-25 17:22:49 +01:00
*/
2021-11-25 21:28:55 +01:00
2022-01-31 08:56:51 +01:00
#contentWrapper {
display: flex;
gap: 1.25rem;
2022-01-27 18:59:03 +01:00
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
}
.list-none {
list-style: none;
padding: 0;
margin: 0;
}
.d-header {
top: 0;
z-index: 50;
position: sticky;
background-color: var(--white);
box-shadow: 0 1px 2px -1px rgb(0 0 0 / 25%);
backface-visibility: hidden;
height: 3.5em;
margin-bottom: 15px;
}
.medium-zoom--opened .d-header,
.banner {
background-color: #fff4e8;
text-align: center;
border-radius: 5px;
padding: 1.25rem;
margin-top: -1rem;
margin-bottom: 1.25rem;
color: #333;
}
.wrap {
margin: 0 auto;
height: 100%;
max-width: 1436px;
padding-left: 1rem;
padding-right: 1rem;
}
.d-header_contents {
display: flex;
align-items: center;
height: 100%;
position: relative;
justify-content: space-between;
}
/* Search */
.search {
height: 30px;
width: 100%;
border-radius: 5px;
background-color: var(--gray-100);
padding-left: 15px;
border-color: transparent;
}
.page-search {
display: flex;
flex-direction: row;
width: 100%;
align-items: center;
justify-content: space-between;
padding: 20px 60px 10px 30px;
margin: 0 auto;
}
.box-search {
position: relative;
width: 100%;
margin: 0 45px 0 97px;
}
.d-header.show .d-header-post.none,
.d-header.show .d-header-facet.none {
display: block;
position: relative;
width: 100%;
font-size: 18px;
white-space: nowrap; /* Запрещаем перенос строк */
overflow: hidden; /* Обрезаем все, что не помещается в область */
text-overflow: ellipsis; /* Добавляем многоточие */
}
.v-line {
border-left: 1px solid var(--gray-600);
height: 20px;
display: inline-block;
margin: 0 10px 0 15px;
vertical-align: middle;
}
.d-header.choices.show .box-search { display: none; }
/* end */
.page-search-right {
width: 100%;
margin-left: 45px;
}
.page-search__input {
width: 100%;
border-radius: 3px;
height: 50px;
border: 9px solid #fcebd9;
padding-left: 15px;
color: var(--gray-700);
}
aside {
flex-basis: 310px;
}
aside ul {
list-style: none;
padding: 0;
margin: 0;
font-size: 0.875rem;
}
aside ul a { color: var(--gray); }
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-600);
2022-01-29 05:47:29 +01:00
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;
word-wrap: break-word;
}
2021-11-25 21:28:55 +01:00
blockquote {
margin-left: 15px;
background-color: #f3f3f6;
padding: 0.1rem 1rem;
border-left: 3px solid #d2d6dd;
display: table;
}
blockquote p { margin: 2px; }
.cut-post img { max-width: 100%; }
2021-11-25 21:28:55 +01:00
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: lightyellow;
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-600);
text-align: center;
}
2022-01-31 18:15:38 +01:00
.box {
border-radius: 5px;
padding: 1.25rem;
margin-bottom: 1.25rem;
2022-01-31 18:15:38 +01:00
}
2022-02-13 06:30:37 +01:00
.box-flex {
display: flex;
border-radius: 5px;
position: relative;
flex-direction: row;
align-items: center;
padding: 1.25rem;
margin-bottom: 1.25rem;
}
.box-center {
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
}
.search-input {
width: 300px;
height: 50px;
padding-left: 1.25rem;
border-radius: 3px;
}
.search-button-icon {
border: none;
height: 50px;
width: 50px;
color: #4f5b66;
font-size: 18px;
border-radius: 3px;
}
.box-fon { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
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
}
a:hover > img,
.trigger img { opacity: 0.8; }
2021-11-25 21:28:55 +01:00
.underline-hover:hover { text-decoration: underline; }
2021-11-25 21:28:55 +01:00
.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;
}
.content-body { max-width: 780px; }
.content-body p img {
2021-11-25 21:28:55 +01:00
max-width: 99%;
max-height: 500px;
display: block;
}
2022-05-06 21:41:39 +02:00
.post-body.full img.emoji,
.content-body img.emoji {
height: 16px;
width: 16px;
display: inline-block;
}
.content_tree:target,
.content_tree.edit {
2021-11-25 21:28:55 +01:00
background-clip: content-box;
background-color: lightyellow;
margin-top: -70px;
padding-top: 70px;
}
.ind-first-p p:first-child { margin-top: 3px; }
iframe {
max-width: 560px;
max-height: 320px;
2021-11-25 21:28:55 +01:00
}
.box-answer {
line-height: 1.3;
padding: 5px;
height: 48px;
width: 54px;
text-align: center;
}
.profile-header-footer {
z-index: 10;
width: 100%;
}
.voters.active .score { color: #bb6619; }
/* Сделаем внешние ссылки с иконкой */
.ind-first-p a[rel~="nofollow"]:after,
.post-body a[rel~="nofollow"]:after {
content: "\f470";
font-family: bootstrap-icons;
color: var(--gray-600);
vertical-align: middle;
2022-05-06 21:41:39 +02:00
margin-left: 3px;
}