aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py2
-rwxr-xr-xweblog/static/weblog/css/weblog.css114
-rwxr-xr-xweblog/templates/weblog/sidebar_categories.html2
3 files changed, 111 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index d606bd6..d21cd19 100755
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='w3blog',
- version='0.5-nobs.3',
+ version='0.5-nobs.4',
packages=find_packages(),
include_package_data=True,
license='BSD License',
diff --git a/weblog/static/weblog/css/weblog.css b/weblog/static/weblog/css/weblog.css
index 000549f..f028546 100755
--- a/weblog/static/weblog/css/weblog.css
+++ b/weblog/static/weblog/css/weblog.css
@@ -6,6 +6,7 @@ html{
min-width: 100%;
margin: 0;
padding: 0;
+ background-color: #dedede;
}
*{
@@ -13,9 +14,6 @@ html{
}
a,
-button,
-input,
-textarea,
ul,
ol,
li,
@@ -34,6 +32,31 @@ a:hover{
color: #0055a0;
}
+input,
+select,
+textarea{
+ background-color: #3e3e3e;
+ color: #dedede;
+ padding: 0.5em 1em;
+ border: 1px solid #2e2e2e;
+}
+
+.button,
+button{
+ font-family: "Helvetica Neue", Helvetica, sans-serif;
+ font-size: 1em;
+ color: #dedede;
+ background-color: #0080a0;
+ border: 1px solid #dedede;
+ padding: 0.5em 1em;
+ transition: 0.3s;
+}
+
+.button:hover,
+button:hover{
+ background-color: #0055a0;
+}
+
.post-title,
h1,
h2,
@@ -77,14 +100,23 @@ hr{
.weblog-categories{
list-style: none;
+ padding: 0;
}
.weblog-categories li a{
- padding: 1em;
+ display: block;
+ padding: 0.5em 1em;
+ color: #3e3e3e;
+}
+
+.weblog-categories li a:hover{
+ background-color: #0080a0;
+ color: #dedede;
}
.weblog-categories li a.active{
background-color: #0055a0;
+ color: #dedede;
}
.breadcrumb{
@@ -104,7 +136,7 @@ hr{
position: relative;
display: block;
float: left;
- padding: 0.5em 55px;
+ padding: 0.3em 45px;
background: #0080a0;
color: #dedede;
}
@@ -161,6 +193,32 @@ hr{
border-left: 30px solid #2e2e2e;
}
+.pagination{
+ list-style: none;
+ padding: 0;
+}
+
+.pagination li{
+ float: left;
+}
+
+.pagination li a{
+ position: relative;
+ display: block;
+ float: left;
+ padding: 1em 1.5em;
+}
+
+.pagination li a:hover{
+ background-color: #0080a0;
+ color: #dedede;
+}
+
+.pagination li.active a{
+ background-color: #0055a0;
+ color: #dedede;
+}
+
.form-group input,
.form-group textarea,
.form-group select{
@@ -173,11 +231,14 @@ hr{
.blog-wrapper{
display: flex;
+ flex-wrap: wrap;
justify-content: center;
+ padding-bottom: 2em;
}
.blog-content{
flex: 3;
+ padding: 1em;
}
.weblog-sidebar{
@@ -204,6 +265,10 @@ hr{
text-align: right;
}
+.text-center{
+ text-align: center;
+}
+
.archive-list{
list-style-type: none;
}
@@ -215,3 +280,42 @@ hr{
.archive-child-list.show{
display: block;
}
+
+@media (max-width: 760px){
+ .blog-content,
+ .weblog-sidebar{
+ width: 100%;
+ }
+
+ .breadcrumb li a{
+ background: transparent;
+ padding: 0.5em 1em;
+ }
+
+ .breadcrumb li:last-child a{
+ color: #aaa;
+ }
+
+ .breadcrumb li a::after,
+ .breadcrumb li a::before{
+ height: auto;
+ width: auto;
+ border: 0;
+ left: auto;
+ top: auto;
+ margin: 0;
+ }
+
+ .breadcrumb li a::after{
+ content: "/";
+ color: #dedede;
+ margin-left: 1em;
+ position: relative;
+ display: inline-block;
+ }
+
+ .breadcrumb li:last-child a::after{
+ border: 0;
+ content: " ";
+ }
+}
diff --git a/weblog/templates/weblog/sidebar_categories.html b/weblog/templates/weblog/sidebar_categories.html
index 370d6b8..ffaa375 100755
--- a/weblog/templates/weblog/sidebar_categories.html
+++ b/weblog/templates/weblog/sidebar_categories.html
@@ -7,5 +7,5 @@
{{ category.name }}
</a></li>
{% endfor %}
-</div>
+</ul>
{% endif %}