NDOJ/resources/blog.scss

317 lines
5.6 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;
2022-06-02 22:09:24 +00:00
font-weight: bold;
background-color: lightgreen;
2022-04-13 05:52:03 +00:00
.sidebar-icon {
color: green;
}
}
2020-01-21 06:35:58 +00:00
.blog-sidebox {
h3 {
padding-bottom: 0.25em;
padding-left: 0.5em;
}
ul {
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;
}
}
}
}
}
2022-05-30 08:07:18 +00:00
.no-dot-blog-sidebox {
ul {
list-style: none;
}
}
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;
}
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 {
2022-06-02 22:09:24 +00:00
border-bottom: 1.4px solid lightgray;
border-top: 1.4px solid lightgray;
margin-bottom: 1.5em;
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;
2022-06-05 16:29:59 +00:00
clear: both;
2022-03-21 21:09:16 +00:00
}
.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;
}
.left-sidebar-item {
2022-06-02 22:09:24 +00:00
.sidebar-icon {
2022-10-30 02:06:11 +00:00
font-size: large;
2022-06-02 22:09:24 +00:00
width: 1.2em;
display: inline-block;
2022-10-30 02:06:11 +00:00
i {
position: relative;
bottom: -1.5px;
}
2022-06-02 22:09:24 +00:00
}
2022-03-21 21:09:16 +00:00
}
.left-sidebar-item:hover {
2022-06-02 22:09:24 +00:00
background-color: #e3e3e3;
2022-03-21 21:09:16 +00:00
cursor: pointer;
}
2022-06-02 22:09:24 +00:00
.left-sidebar-item.active:hover {
background-color: lightgreen;
}
2022-03-21 21:09:16 +00:00
.sidebar-icon {
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;
2022-06-02 22:09:24 +00:00
}
.pre-expand-blog {
background-image: -webkit-linear-gradient(bottom, gray, lightgray 3%, transparent 8%, transparent 100%);
padding-bottom: 0;
}
2022-06-02 22:29:00 +00:00
.pre-expand-blog:hover {
background-color: #f3f3f3;
}
2022-06-05 16:29:59 +00:00
2022-08-28 02:45:28 +00:00
.post-full {
.post-title {
font-weight: bold;
margin-bottom: 10px;
font-family: serif;
}
}
2022-11-09 20:41:08 +00:00
2022-06-02 22:09:24 +00:00
@media (max-width: 799px) {
.left-sidebar-header {
display: none;
}
.left-sidebar-item {
2022-06-05 16:29:59 +00:00
padding: 0.8em 0.2em 0.8em 0.2em;
2022-06-02 22:09:24 +00:00
display: inline-block;
flex: 1;
border-radius: 8px;
2022-06-02 22:35:25 +00:00
.sidebar-icon {
display: none;
}
2022-06-02 22:09:24 +00:00
}
.left-sidebar {
text-align: center;
margin-bottom: 1em;
border-radius: 7px;
display: flex;
}
2022-07-05 03:07:47 +00:00
.blog-box {
2022-07-05 05:54:04 +00:00
padding-left: 5%;
padding-right: 5%;
2022-07-05 03:07:47 +00:00
}
2022-08-28 02:45:28 +00:00
.post-title {
font-size: 2em;
}
2022-06-02 22:09:24 +00:00
}
@media (min-width: 800px) {
2022-06-05 16:29:59 +00:00
.left-sidebar-item {
padding: 0.8em 0.2em 0.8em 1em;
}
2022-06-02 22:09:24 +00:00
.middle-content, .blog-sidebar, .right-sidebar {
display: block !important;
}
.middle-content {
margin-right: 1em !important;
}
#mobile.tabs {
display: none;
}
#three-col-container {
display: flex;
}
.middle-content {
max-width: 65%;
margin-left: 13%;
}
.blog-sidebar, .right-sidebar {
width: 20%;
}
.left-sidebar {
width: 11%;
position: fixed;
height: 100%;
margin-top: -4em;
padding-top: 4em;
}
.left-sidebar-item {
2022-10-30 02:06:11 +00:00
border-radius: 0 0.5em 0.5em 0;
2022-06-02 22:09:24 +00:00
}
.feed-table {
font-size: small;
}
.blog-box {
border-left: 1.4px solid lightgray;
border-right: 1.4px solid lightgray;
border-radius: 8px;
}
2022-08-28 02:45:28 +00:00
.post-full {
width: 80%;
margin-left: auto;
margin-right: auto;
.content-description {
font-size: 18px;
}
.post-title {
font-size: 2.5em;
}
}
}