mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-19 19:25:51 +00:00
259 lines
4.7 KiB
SCSS
259 lines
4.7 KiB
SCSS
// These styles are used by the dev-blog pages, which are in another repo.
|
|
|
|
.dev-blog {
|
|
.image-container {
|
|
transform: translateY(15%);
|
|
z-index: 1;
|
|
}
|
|
|
|
.text-bg {
|
|
background-color: $gray-800;
|
|
padding: 60px 40px;
|
|
width: 100%;
|
|
border-radius: 30px;
|
|
}
|
|
|
|
@media (min-width: 992px) {
|
|
.image-container {
|
|
transform: translateX(15%);
|
|
}
|
|
|
|
.text-bg {
|
|
padding: 50px 60px;
|
|
}
|
|
}
|
|
|
|
.line-clamp {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 4;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#blog-purple {
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
}
|
|
|
|
#card-date {
|
|
color: $gray-400;
|
|
}
|
|
|
|
.category-badge {
|
|
max-width: 180px;
|
|
border-radius: 30px;
|
|
border: solid 2px;
|
|
padding: 1px;
|
|
text-align: center;
|
|
word-wrap: break-word;
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.post-date {
|
|
text-decoration: overline solid #32E685 10%;
|
|
}
|
|
|
|
#general-badge {
|
|
background-color: #343437;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
#release_notes-badge {
|
|
background-color: #145C35;
|
|
color: #32E685;
|
|
}
|
|
|
|
#advisories-badge {
|
|
background-color: #4C1A00;
|
|
color: #FF6719;
|
|
}
|
|
|
|
#amendments-badge {
|
|
background-color: #4B4C00;
|
|
color: #FAFF19;
|
|
}
|
|
|
|
#development-badge {
|
|
background-color: #20004C;
|
|
color: #7919FF;
|
|
}
|
|
|
|
#developer_reflections-badge {
|
|
background-color: #002E4C;
|
|
color: #19A3FF;
|
|
}
|
|
|
|
#gateway_bulletins-badge {
|
|
background-color: #40004C;
|
|
color: #D919FF;
|
|
}
|
|
|
|
#features-badge {
|
|
background-color: #145C35;
|
|
color: #32E685;
|
|
}
|
|
|
|
#security-badge {
|
|
background-color: #4C0026;
|
|
color: #FF198B;
|
|
}
|
|
|
|
#category-list {
|
|
@each $category in "general", "developer_reflections", "amendments",
|
|
"advisories", "release_notes", "development", "gateway_bulletins", "features", "security"
|
|
|
|
{
|
|
##{$category} {
|
|
content: url("../img/blog/#{$category}.png");
|
|
max-width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.category_sidebar {
|
|
position: sticky;
|
|
top: 10px;
|
|
}
|
|
|
|
.category-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.dropdown {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.dropdown-btn {
|
|
color: $white;
|
|
background-color: $gray-800;
|
|
border-color: $gray-800;
|
|
border-style: solid;
|
|
border-radius: 4px;
|
|
padding: 8px 16px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
text-align: start;
|
|
padding-right: 10px;
|
|
|
|
img {
|
|
content: url("../img/icons/chevron-arrow-down.svg");
|
|
width: 10px;
|
|
height: 13px;
|
|
padding: 8px;
|
|
}
|
|
}
|
|
|
|
.dropdown-content {
|
|
display: flex;
|
|
align-items: start;
|
|
background-color: $gray-800;
|
|
padding: 16px 8px;
|
|
width: 254px;
|
|
height: auto;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.category-checkbox label {
|
|
font-weight: normal;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
padding-left: 26px;
|
|
}
|
|
|
|
.category-header {
|
|
font-weight: normal;
|
|
width: 200px;
|
|
color: $gray-100;
|
|
}
|
|
|
|
label {
|
|
margin: 0;
|
|
padding-left: 8px;
|
|
color: $white;
|
|
}
|
|
|
|
.blog-filter h6 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.blog-filter[type="checkbox"]::before {
|
|
position: relative;
|
|
display: block;
|
|
width: 20px;
|
|
height: 20px;
|
|
|
|
content: "";
|
|
background: $gray-900;
|
|
|
|
border-radius: 4px;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
border-color: $gray-400;
|
|
}
|
|
|
|
.blog-filter[type="checkbox"]::after {
|
|
position: relative;
|
|
display: block;
|
|
|
|
top: -20px;
|
|
width: 20px;
|
|
height: 20px;
|
|
|
|
content: "";
|
|
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
border-radius: 4px;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
border-color: $gray-400;
|
|
}
|
|
|
|
.blog-filter[type="checkbox"]:checked::before {
|
|
background: $gray-900;
|
|
border: none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.blog-filter[type="checkbox"]:checked::after {
|
|
background-image: url(../img/blog/blog-check.svg);
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-color: $blue-purple-500;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
border-color: $blue-purple-500;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.blog-filter[type="checkbox"]:not(:disabled):checked:hover::after {
|
|
background-image: url(../img/blog/blog-check.svg);
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
border-color: $blue-purple-600;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.blog-filter[type="checkbox"]:not(:disabled):hover::before {
|
|
background: $gray-900;
|
|
border: none;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.blog-filter[type="checkbox"]:not(:disabled):hover::after {
|
|
background: $gray-900;
|
|
border: none;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
border-color: $blue-purple-600;
|
|
border-radius: 4px;
|
|
}
|
|
}
|