NDOJ/resources/blog.scss

404 lines
6.9 KiB
SCSS
Raw Permalink 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
.left-sidebar-item.active {
2023-09-06 00:30:05 +00:00
color: white;
2022-06-02 22:09:24 +00:00
font-weight: bold;
2023-09-08 18:14:09 +00:00
background-color: $theme_color;
2023-09-06 00:30:05 +00:00
2022-04-13 05:52:03 +00:00
.sidebar-icon {
2023-09-06 00:30:05 +00:00
color: white;
2022-04-13 05:52:03 +00:00
}
}
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-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;
2023-03-01 00:42:40 +00:00
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
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
}
2023-11-01 07:08:36 +00:00
.blog-box:hover, .blog-box:not(.pre-expand-blog) {
border-color: #8a8a8a;
2023-11-01 07:08:36 +00:00
box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}
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;
2023-02-06 16:25:50 +00:00
position: relative;
2022-03-21 21:09:16 +00:00
}
2023-02-04 12:41:31 +00:00
2022-03-21 21:09:16 +00:00
.problem-feed-name {
display: inline;
font-weight: bold;
}
2023-02-04 12:41:31 +00:00
2022-03-21 21:09:16 +00:00
.problem-feed-name a {
color: #0645ad;
}
2023-02-04 12:41:31 +00:00
2022-03-21 21:09:16 +00:00
.problem-feed-info-entry {
display: inline;
float: right;
}
2023-02-04 12:41:31 +00:00
2022-03-21 21:09:16 +00:00
.problem-feed-types {
color: gray;
}
.left-sidebar-item {
2022-11-27 07:03:38 +00:00
display: flex;
align-items: center;
2023-08-17 14:22:40 +00:00
border-radius: .5em;
2023-09-17 05:18:30 +00:00
color: black;
2023-02-04 12:41:31 +00:00
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
display: inline-block;
2023-02-04 12:41:31 +00:00
2022-10-30 02:06:11 +00:00
i {
2022-11-27 07:03:38 +00:00
width: 1.4em;
2022-10-30 02:06:11 +00:00
}
2022-06-02 22:09:24 +00:00
}
2022-03-21 21:09:16 +00:00
}
2023-02-04 12:41:31 +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;
2023-09-17 05:27:32 +00:00
color: black;
2022-03-21 21:09:16 +00:00
}
2023-02-04 12:41:31 +00:00
2022-06-02 22:09:24 +00:00
.left-sidebar-item.active:hover {
2023-09-08 18:14:09 +00:00
background-color: $theme_color;
2023-09-17 05:27:32 +00:00
color: white;
2022-06-02 22:09:24 +00:00
}
2023-02-04 12:41:31 +00:00
2022-03-21 21:09:16 +00:00
.sidebar-icon {
color: black;
}
2023-02-04 12:41:31 +00:00
2022-03-21 21:09:16 +00:00
.left-sidebar-header {
text-align: center;
padding-bottom: 1em;
border-bottom: 1px solid black;
color: black;
border-radius: 0;
}
2023-02-04 12:41:31 +00:00
2022-03-21 21:09:16 +00:00
.feed-table {
margin: 0;
2022-06-02 22:09:24 +00:00
}
2023-02-04 12:41:31 +00:00
2022-06-02 22:09:24 +00:00
.pre-expand-blog {
2023-02-04 12:41:31 +00:00
position: relative;
2022-06-02 22:09:24 +00:00
padding-bottom: 0;
}
2023-02-04 12:41:31 +00:00
2023-02-05 13:13:12 +00:00
.show-more {
2023-02-06 17:26:04 +00:00
display: flex;
2023-02-05 13:22:17 +00:00
color: black;
2023-02-05 13:13:12 +00:00
font-size: 16px;
font-weight: 700;
padding: 0px 12px;
margin-top: 5px;
2023-02-04 12:41:31 +00:00
position: absolute;
2023-02-06 16:25:50 +00:00
inset: 50% 0px 0px;
background: linear-gradient(transparent, white);
2023-02-05 13:13:12 +00:00
-webkit-box-pack: end;
justify-content: flex-end;
align-items: flex-end;
cursor: pointer;
padding: 16px 16px;
2023-02-04 12:41:31 +00:00
}
2023-02-05 13:13:12 +00:00
.actionbar-box {
margin: 8px 16px;
2022-06-02 22:29:00 +00:00
}
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;
}
}
2023-02-08 05:14:48 +00:00
.middle-right-content.wrapper {
padding: 1em 0;
background: white;
border-radius: 1em;
}
2024-04-13 03:26:17 +00:00
.post-content-header {
margin-left: 0;
display: inline-flex;
align-items: center;
gap: 0.2em;
}
2022-11-09 20:41:08 +00:00
2022-06-02 22:09:24 +00:00
@media (max-width: 799px) {
2023-03-06 21:57:16 +00:00
.blog-sidebar,
.right-sidebar {
width: 100%;
margin-left: auto;
margin-top: 2em;
2023-03-06 21:57:16 +00:00
}
2023-02-07 23:22:37 +00:00
.actionbar-box {
margin: 8px 0;
}
2022-06-02 22:09:24 +00:00
.left-sidebar-header {
display: none;
}
2023-02-04 12:41:31 +00:00
2022-06-02 22:09:24 +00:00
.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;
2024-04-30 02:08:48 +00:00
min-width: 5em;
overflow-wrap: anywhere;
2023-02-04 12:41:31 +00:00
2022-06-02 22:35:25 +00:00
.sidebar-icon {
display: none;
}
2022-06-02 22:09:24 +00:00
}
2023-02-04 12:41:31 +00:00
2022-06-02 22:09:24 +00:00
.left-sidebar {
text-align: center;
margin-bottom: 1em;
border-radius: 7px;
display: flex;
2023-08-17 14:22:40 +00:00
background: inherit;
2024-04-30 02:08:48 +00:00
gap: 0.3em;
2024-05-03 00:13:19 +00:00
overflow-x: auto;
2022-06-02 22:09:24 +00:00
}
2023-02-04 12:41:31 +00:00
2022-07-05 03:07:47 +00:00
.blog-box {
2022-07-05 05:54:04 +00:00
padding-left: 5%;
padding-right: 5%;
2023-02-07 23:22:37 +00:00
margin-bottom: 0;
2022-07-05 03:07:47 +00:00
}
2023-02-04 12:41:31 +00:00
2022-08-28 02:45:28 +00:00
.post-title {
font-size: 2em;
}
2022-06-02 22:09:24 +00:00
}
2023-02-04 12:41:31 +00:00
2022-06-02 22:09:24 +00:00
@media (min-width: 800px) {
2022-06-05 16:29:59 +00:00
.left-sidebar-item {
2023-08-17 14:22:40 +00:00
margin-bottom: 10px;
margin-left: 10px;
border: 1px solid lightgray;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
background-color: white;
padding: 0.8em 0.2em 0.8em 0.8em;
2022-06-05 16:29:59 +00:00
}
2023-02-04 12:41:31 +00:00
2023-08-24 16:10:39 +00:00
.sidebar-text {
overflow: hidden;
text-overflow: ellipsis;
}
2023-02-04 12:41:31 +00:00
.middle-content,
.blog-sidebar,
.right-sidebar {
2022-06-02 22:09:24 +00:00
display: block !important;
}
2023-03-06 21:57:16 +00:00
.blog-sidebar,
.right-sidebar {
flex: 25%;
max-width: 25%;
2023-03-06 21:57:16 +00:00
}
2022-06-02 22:09:24 +00:00
.middle-content {
2023-03-06 21:57:16 +00:00
margin-right: 2% !important;
2022-06-02 22:09:24 +00:00
}
#mobile.tabs {
display: none;
}
#three-col-container {
display: flex;
flex-direction: column;
2022-06-02 22:09:24 +00:00
}
.middle-content {
2023-03-06 21:57:16 +00:00
flex: 75%;
2023-03-25 07:24:51 +00:00
max-width: 75%;
2022-06-02 22:09:24 +00:00
}
.left-sidebar {
width: 11%;
2023-02-08 05:14:48 +00:00
max-width: 11%;
min-width: 11%;
2022-06-02 22:09:24 +00:00
position: fixed;
2024-04-30 02:08:48 +00:00
height: calc(100vh - $navbar_height - 20px);
overflow-y: auto;
&::-webkit-scrollbar {
width: 0;
background-color: transparent;
}
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;
2023-02-05 17:49:22 +00:00
border-radius: 16px;
2022-06-02 22:09:24 +00:00
}
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;
}
}
2023-02-05 17:49:22 +00:00
}