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

382 lines
6 KiB
CSS
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 {
font-weight: 600;
2022-01-27 18:59:03 +01:00
}
.number {
display: none;
font-size: .72rem;
color: #fff;
background-color: red;
padding: 1px 6px;
border-radius: 50%;
position: absolute;
top: -5px;
right: -10px;
}
.number.show { display: block; }
/* См. https://feathericons.com/ и https://tabler-icons.io/ */
.icons {
width: 21px;
height: 21px;
fill: none;
stroke: currentColor;
vertical-align: middle;
}
.icon-max {
width: 121px;
height: 121px;
}
.icon-base {
width: 48px;
height: 48px;
}
.icon-small { width: 15px; }
.list-none {
list-style: none;
padding: 0;
margin: 0;
}
.d-header {
top: 0;
z-index: 6;
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 { display: none; }
.banner {
background-image: url(/assets/images/banner-fon.jpg);
background-size: cover;
filter: brightness(1.1);
text-align: center;
border-radius: 5px;
padding: 1.25rem 0;
margin-top: -1rem;
margin-bottom: 1.25rem;
color: #333;
}
.wrap {
margin: 0 auto;
height: 100%;
max-width: 1436px;
padding-left: 1rem;
padding-right: 1rem;
}
.wrap-item {
padding-left: 2rem;
padding-right: 2rem;
}
.d-header_contents {
display: flex;
align-items: center;
height: 100%;
position: relative;
justify-content: space-between;
}
/* Search */
.search {
width: 100%;
border-radius: 5px;
background-color: var(--gray-100);
padding: 9px;
border-color: transparent;
}
.page-search {
display: flex;
flex-direction: row;
width: 100%;
align-items: center;
justify-content: space-between;
padding: 5px 60px 10px 30px;
margin: 0 auto;
}
.box-search {
position: relative;
width: 100%;
2022-06-19 14:27:40 +02:00
margin: 10px 45px 10px 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 */
.cut-off {
width: 75%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.page-search__input {
width: 100%;
border-radius: 3px;
height: 50px;
border: 9px solid #fcebd9;
2022-06-14 11:11:19 +02:00
padding-left: 1rem;
color: var(--gray-700);
}
aside { width: 340px; }
aside ul {
list-style: none;
padding: 0;
margin: 0;
2022-08-13 05:34:06 +02:00
font-size: 0.9375rem;
}
aside ul a { color: var(--gray); }
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; }
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 0 15px 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;
}
.title {
margin: 0;
font-weight: 500;
font-size: 1.3125rem;
}
2022-09-05 19:52:01 +02:00
.title-max {
margin: 0 0 20px 0;
font-weight: 500;
font-size: 1.5rem;
}
.txt-closed {
padding: 10px;
background-color: lightyellow;
margin-bottom: 15px;
display: inherit;
}
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); }
.list-post {
display: flex;
padding: 0.5rem 0;
}
2022-08-13 05:34:06 +02:00
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: 0 0 10px 0;
letter-spacing: 1.5px;
font-weight: 500;
2022-01-31 18:15:38 +01:00
}
a:hover > img,
.trigger img { opacity: 0.8; }
2021-11-25 21:28:55 +01:00
.focus-id:hover { cursor: pointer }
.underline-hover:hover { text-decoration: underline; }
2021-11-25 21:28:55 +01:00
.content-body {
max-width: 780px;
margin-top: 15px;
}
.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; }
article 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;
}
.voters.active .score { color: var(--brown); }
.qa-comment {
font-size: 0.875rem;
padding: 0.24rem 0;
}
.showPassword {
position: absolute;
color: var(--gray-600);
right: 5px;
margin: 5px;
}
.scroll-menu {
overflow-x: auto;
scrollbar-width: none;
}
.scroll-menu::-webkit-scrollbar {
width:0;
height:0
}
.scroll-wrapper {
overflow: hidden;
padding: 0;
position: relative;
}
.scroll-wrapper.conversationMessages {
height: calc(100% - 62px);
}
.delet-count {
z-index: 33;
right: 10px;
font-size: 0.8em;
color: #fff;
background-color: rgba(0, 0, 0, 0.3);
padding: 1px 6px;
position: absolute;
display: flex;
gap: 1rem;
}
.content_tree { word-wrap: break-word; }