Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 57 additions & 3 deletions blog/static/css/admin.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,58 @@
#content {
width: 100%;
height: 500px;
}
width: 100%;
height: 500px;
}

/* Force navbar to use dark theme */
.navbar,
.navbar-default,
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.open>a {
background-color: #2c3e50 !important;
border-color: #2c3e50 !important;
background-image: none !important;
}

.form-control,
.select2-container .select2-choices,
.select2-search input,
.select2-drop-mask,
.select2-container .select2-choice,
.select2-container .select2-choices,
.select2-container .select2-choices .select2-search-field input,
.md-editor>.md-header,
.select2-drop {
color: rgb(188, 182, 174) !important;
background-image: none !important;
background: #3a3e41 !important;
}

.navbar-brand {
color: #fff !important;
}

.navbar-nav .nav-link {
color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-nav .nav-link:hover {
color: #fff !important;
}

/* Fix dropdown menus */
.dropdown-menu {
background-color: #2c3e50 !important;
border-color: #444 !important;
}

.dropdown-item {
color: #fff !important;
}

.dropdown-item:hover {
background-color: #34495e !important;
}

/* Fix the hamburger menu icon */
.navbar-toggler-icon {
filter: invert(1);
}
29 changes: 14 additions & 15 deletions blog/static/src/components/header.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
.header {
text-align: center;
font-size: 1.55rem;
padding: 1rem 0 5rem 0;
text-align: center;
font-size: calc(var(--fontSizeBase) * 1.55);
padding: 1rem 0 5rem 0;
}

.header__logo {
font-weight: bold;
text-decoration: none;
color: #333;
float: left;
font-weight: bold;
text-decoration: none;
color: var(--color-text-light);
float: left;
}

.header__logo:hover {
color: #000;
color: var(--color-text);
}

.header__nav {
float: right;
float: right;
}

@media (max-width:767px) {
.header {
padding-left: 1rem;
padding-right: 1rem;
}
@media (max-width: 767px) {
.header {
padding-left: 1rem;
padding-right: 1rem;
}
}

42 changes: 21 additions & 21 deletions blog/static/src/components/minipost.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
.minipost {
padding: 0.5rem 0;
padding: 0.5rem 0;
}

@media (max-width:767px) {
.minipost__date {
display: block;
float: none;
}
.minipost__title {
clear: both;
text-align: left;
}
@media (max-width: 767px) {
.minipost__date {
display: block;
float: none;
}
.minipost__title {
clear: both;
text-align: left;
}
}

.minipost__title {
transition: all 0.2s ease-in-out;
color: #333;
text-align: center;
text-decoration: none;
border-bottom: 1px solid #ccc;
transition: all 0.2s ease-in-out;
color: var(--color-text-light);
text-align: center;
text-decoration: none;
border-bottom: 1px solid var(--color-text-lighter);
}

.minipost__title:hover {
border-color: #000;
color: #000;
border-color: var(--color-text);
color: var(--color-text);
}

.minipost__date {
color: #ccc;
float: right;
color: var(--color-text-lighter);
float: right;
}

.minipost__position {
color: #ccc;
float: right;
color: var(--color-text-lighter);
float: right;
}

.minipost__content {
Expand Down
49 changes: 25 additions & 24 deletions blog/static/src/components/nav.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
.nav__link {
color: #444;
transition: all 0.2s ease-in-out;
text-decoration: none;
margin-left: 1rem;
position: relative;
display: inline-block;
color: var(--color-text-light);
transition: all 0.2s ease-in-out;
font-size: 0.8em;
text-decoration: none;
margin-left: 1rem;
position: relative;
display: inline-block;
}

.nav__link:hover {
color: #000;
text-decoration: none;
color: var(--color-text);
text-decoration: none;
}

.nav__link:hover:after {
width: 100%;
filter: progid: DXImageTransform.Microsoft.Alpha(enabled=false);
opacity: 1;
transition-delay: 0s;
width: 100%;
filter: progid: DXImageTransform.Microsoft.Alpha(enabled=false);
opacity: 1;
transition-delay: 0s;
}

.nav__link:after {
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 1px;
height: 1px;
background: #000;
content: '';
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;
transition: width 0.3s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.1s linear 0.3s;
transition-delay: 0s, 0.3s;
display: block;
position: absolute;
bottom: 0;
left: 0;
width: 1px;
height: 1px;
background: var(--color-text);
content: '';
filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;
transition: width 0.3s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.1s linear 0.3s;
transition-delay: 0s, 0.3s;
}
2 changes: 1 addition & 1 deletion blog/static/src/components/page.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.page {
min-width: 768px;
max-width: 768px;
max-width: 895px;
margin: auto;
padding: 0.5rem 0 2rem 0;
}
Expand Down
78 changes: 39 additions & 39 deletions blog/static/src/components/post.css
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
.post__title {
text-align: center;
line-height: 1.1;
letter-spacing: 0.15rem;
color: #000;
font-size: 3rem;
font-weight: 700;
margin: 0.5rem 0;
text-align: center;
line-height: 1.1;
letter-spacing: 0.15rem;
color: var(--color-text);
font-size: calc(var(--fontSizeBase) * 1.8);
font-weight: 700;
margin: 0.5rem 0;
}

.post__date {
color: #ccc;
font-weight: 300;
text-align: center;
color: var(--color-text-lighter);
font-weight: 300;
text-align: center;
}

.post__body {
padding: 2rem 1rem;
color: #444;
line-height: 1.4;
padding: 2rem 1rem;
color: var(--color-text-light);
line-height: 1.4;
}

.post__body .embed-responsive {
position: relative;
display: block;
height: 0;
padding: 0;
overflow: hidden
position: relative;
display: block;
height: 0;
padding: 0;
overflow: hidden;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}

.embed-responsive-16by9 {
padding-bottom: 56.25%;
padding-bottom: 56.25%;
}

.embed-responsive-4by3 {
padding-bottom: 75%;
padding-bottom: 75%;
}

.post__body h1,
Expand All @@ -56,37 +56,37 @@
.post__body h4,
.post__body h5,
.post__body h6 {
line-height: 1.3;
margin: 3rem 0 2rem 0;
line-height: 1.3;
margin: 3rem 0 2rem 0;
}

.post__body h1 {
font-size: 2rem;
font-size: calc(var(--fontSizeBase) * 1.4);
}

.post__body h2 {
font-size: 1.7rem;
font-size: calc(var(--fontSizeBase) * 1.3);
}

.post__body h3 {
font-size: 1.4rem;
font-size: calc(var(--fontSizeBase) * 1.2);
}

.post__body h4 {
font-size: 1.1rem;
font-size: calc(var(--fontSizeBase) * 1.1);
}

.post__body h5 {
font-size: 1rem;
text-transform: uppercase;
font-size: var(--fontSizeBase);
text-transform: uppercase;
}

.post__body a {
color: #474747;
transition: color 0.3s ease;
color: var(--color-text-link);
transition: color 0.3s ease;
}

.post__body a:hover {
color: #000;
text-decoration: none;
color: var(--color-text-link-hover);
text-decoration: none;
}
10 changes: 5 additions & 5 deletions blog/static/src/components/postGroup.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.postGroup {
margin-bottom: 3rem;
margin-bottom: 3rem;
}

.postGroup__title {
font-weight: bold;
font-weight: bold;
}

@media (max-width:767px) {
.postGroup {
padding: 0 1rem;
}
.postGroup {
padding: 0 1rem;
}
}
Loading