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

221 lines
4 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 {
2022-01-27 18:59:03 +01:00
display: grid;
gap: 1rem;
grid-template-columns: repeat(12, minmax(0, 1fr));
max-width: 1636px;
padding-left: 5px;
padding-right: 5px;
margin: 0 auto;
}
h1,
h2,
h3,
h4,
h5 {
2022-01-31 18:15:38 +01:00
font-weight: 500;
2022-01-27 18:59:03 +01:00
margin: 0 0 10px 0;
}
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;
}
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;
box-shadow: 3px 3px 4px #eee;
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;
}
2022-01-31 18:15:38 +01:00
.logo {
text-transform: uppercase;
font-size: 21px;
}
.box {
border-radius: 5px;
padding: 15px;
margin-bottom: 15px;
overflow: hidden;
display: block;
}
.box-flex {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-radius: 5px;
margin-bottom: 15px;
}
.uppercase-box {
color: var(--gray-600);
font-size: 0.875rem;
text-transform: uppercase;
line-height: 1;
font-weight: 400;
}
2022-01-27 18:59:03 +01:00
.page {
margin-left: auto;
margin-right: auto;
color: #111;
max-width: 65ch;
font-size: 1.25rem;
padding: 0 10px;
}
2022-01-28 13:55:41 +01:00
.page p img { max-width: 100%; }
2022-01-27 18:59:03 +01:00
a:hover > img { opacity: 0.8; }
.underline-hover:hover { text-decoration: underline; }
2022-01-28 13:55:41 +01:00
.answ-telo p:first-child {margin-top: 5px;}
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;
}
/* Tippy.js - theme: light, */
2021-12-31 20:51:32 +01:00
.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}