NDOJ/resources/blog.scss

255 lines
4.4 KiB
SCSS
Raw Normal View History

2020-01-21 06:35:58 +00:00
@import "vars";
2022-04-13 05:52:03 +00:00
.middle-content {
2020-01-21 06:35:58 +00:00
padding-right: 0em;
vertical-align: top;
margin-right: 0;
2022-03-21 21:09:16 +00:00
width: 100%;
2020-01-21 06:35:58 +00:00
.post {
2020-06-12 15:48:44 +00:00
border: 1px dotted grey;
border-radius: 1em;
border-top: 0.125rem solid #9b9b9b;
padding: 1.25rem 1.25rem 1.563rem;
margin-bottom: 2em;
2020-01-21 06:35:58 +00:00
.title {
font-weight: 600;
2020-06-12 15:48:44 +00:00
font-size: 1.875em;
2020-01-21 06:35:58 +00:00
a {
2020-03-16 07:56:55 +00:00
color: Maroon !important;
2020-01-21 06:35:58 +00:00
&:hover {
2020-03-16 07:56:55 +00:00
color: #c00000 !important;
2020-01-21 06:35:58 +00:00
}
}
}
&:last-child {
2020-06-12 15:48:44 +00:00
// border-bottom: none;
2020-01-21 06:35:58 +00:00
}
}
}
2022-04-13 05:52:03 +00:00
.blog-sidebar, .right-sidebar {
2022-03-21 21:09:16 +00:00
width: 100%;
margin-left: auto;
2020-01-21 06:35:58 +00:00
}
2022-04-13 05:52:03 +00:00
.left-sidebar-item.active {
color: green;
.sidebar-icon {
color: green;
}
}
2020-01-21 06:35:58 +00:00
.blog-sidebox {
h3 {
padding-bottom: 0.25em;
padding-left: 0.5em;
}
ul {
list-style: none;
padding-left: 1em;
padding-right: 0.5em;
li {
margin-bottom: 0.75em;
}
}
.contest {
padding: 1.25em 0 1.5em 0;
text-align: center;
border-bottom: 1px solid $border_gray;
&:last-child {
border-bottom: none;
}
.name {
font-size: 1.25em;
font-weight: 500;
a {
color: #5b80b9 !important;
&:hover {
color: #0645ad !important;
}
}
}
}
}
2020-12-28 05:45:58 +00:00
.blog-comment-count {
font-size: 12px;
}
.blog-comment-icon {
padding: 0.1em 0.2em 0 0.5em;
}
.blog-comment-count-link {
color: #555;
}
2022-03-21 21:09:16 +00:00
@media (max-width: 799px) {
.left-sidebar-header {
display: none;
}
.left-sidebar-item {
display: inline-block;
2022-04-13 16:55:40 +00:00
flex: 1;
2022-03-21 21:09:16 +00:00
}
2022-04-13 05:52:03 +00:00
.left-sidebar {
2022-03-21 21:09:16 +00:00
text-align: right;
margin-bottom: 1em;
2022-04-13 05:52:03 +00:00
border-radius: 7px;
2022-04-13 16:55:40 +00:00
display: flex;
2022-03-21 21:09:16 +00:00
}
}
2020-01-21 06:35:58 +00:00
@media (min-width: 800px) {
2022-04-13 05:52:03 +00:00
.middle-content, .blog-sidebar, .right-sidebar {
2020-01-21 06:35:58 +00:00
display: block !important;
}
2022-04-13 05:52:03 +00:00
.middle-content {
2020-01-21 06:35:58 +00:00
margin-right: 1em !important;
}
#mobile.tabs {
display: none;
}
2022-04-13 05:52:03 +00:00
#three-col-container {
2020-01-21 06:35:58 +00:00
display: flex;
}
2022-03-21 21:09:16 +00:00
2022-04-13 05:52:03 +00:00
.middle-content {
2022-03-21 21:09:16 +00:00
max-width: 71.5%;
margin-left: 10%;
}
2022-04-13 05:52:03 +00:00
.blog-sidebar, .right-sidebar {
2022-03-21 21:09:16 +00:00
width: 18%;
}
2022-04-13 05:52:03 +00:00
.left-sidebar {
2022-03-21 21:09:16 +00:00
width: 8%;
margin-right: 1em;
position: fixed;
height: 100%;
margin-top: -4em;
padding-top: 4em;
2022-04-13 17:40:34 +00:00
border-right: 3px solid black;
2022-03-21 21:09:16 +00:00
}
.feed-table {
font-size: small;
}
2022-04-13 17:53:34 +00:00
.blog-box {
border-left: 2px solid black;
border-right: 2px solid black;
border-radius: 8px;
}
2020-01-21 06:35:58 +00:00
}
#mobile.tabs {
margin: 0;
margin-bottom: 1em;
}
.rssatom {
text-align: right;
padding: 0.25em;
display: block;
span {
width: 1em;
height: 1em;
padding: 0.1em;
font-size: 0.8em;
color: white;
border-radius: 0.2em;
display: inline-block;
margin-right: 0.2em;
border: 1px solid rgb(201, 90, 18);
background: #fb9e39;
background: linear-gradient(135deg, #e46d27 0, #fb9e39 47%, #e46d27 100%);
i {
text-align: center;
display: block;
}
}
}
2022-03-21 21:09:16 +00:00
.blog-box {
border-bottom: 1px solid black;
2022-04-13 17:40:34 +00:00
border-top: 2px solid black;
margin-bottom: 1em;
2022-03-21 21:09:16 +00:00
width: 90%;
2022-04-13 17:40:34 +00:00
padding: 1em 1.25em 0.5em 1.25em;
2022-03-21 21:09:16 +00:00
background-color: white;
margin-left: auto;
margin-right: auto;
2022-04-13 17:40:34 +00:00
.title {
margin-bottom: 0.2em;
2022-04-13 18:37:30 +00:00
font-weight: 500;
2022-04-13 17:40:34 +00:00
}
2022-03-21 21:09:16 +00:00
}
.blog-description {
2022-04-13 17:40:34 +00:00
max-height: 30em;
2022-03-21 21:09:16 +00:00
overflow: hidden;
overflow-wrap: anywhere;
padding-bottom: 1em;
}
.problem-feed-name {
display: inline;
font-weight: bold;
}
.problem-feed-name a {
color: #0645ad;
}
.problem-feed-info-entry {
display: inline;
float: right;
}
.problem-feed-types {
color: gray;
}
2022-04-13 05:52:03 +00:00
.left-sidebar {
2022-03-21 21:09:16 +00:00
background-color: #f0f1f3;
color: #616161;
}
.left-sidebar-item {
padding: 1em 0.5em;
text-align: center;
}
.left-sidebar-item:hover {
background-color: lightgray;
cursor: pointer;
}
.sidebar-icon {
font-size: x-large;
margin-bottom: 0.1em;
color: black;
}
.left-sidebar-header {
text-align: center;
padding-bottom: 1em;
border-bottom: 1px solid black;
color: black;
border-radius: 0;
}
.feed-table {
margin: 0;
}