aboutsummaryrefslogtreecommitdiff
path: root/src/css/styles.css
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-03-07 16:48:29 -0500
committerMark Powers <markppowers0@gmail.com>2019-03-07 16:48:29 -0500
commita119a3c73f02408b0e2ceedf0ac71e4e684b4cad (patch)
treeb749b95a511773dab291ef4f34b951b16c763bef /src/css/styles.css
parentf4b2eabe2da89abc33e4cbe21ca1560995b32eca (diff)
Add animation, blog, and feed template
Diffstat (limited to 'src/css/styles.css')
-rw-r--r--src/css/styles.css102
1 files changed, 92 insertions, 10 deletions
diff --git a/src/css/styles.css b/src/css/styles.css
index 9a7d048..a455835 100644
--- a/src/css/styles.css
+++ b/src/css/styles.css
@@ -1,5 +1,39 @@
+:root {
+ --background: #fff;
+ --background-accent: #f0f0f0;
+ --accent: #ada;
+ --text: #000;
+ --btn-color: #2d2;
+ --btn-text: #000;
+ --btn-hover: #0a0;
+ --light-text: #aaa
+}
+
+
body {
padding: 15px;
+ background-color: var(--background);
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+h1 {
+ font-size: 30pt;
+ font-weight: 150;
+ margin-bottom: 0;
+}
+
+@keyframes zoom-left {
+ 0% {left: 100%; }
+ 100% {left: 0;}
+}
+
+footer {
+ text-align: center;
+ padding-top: 1em;
+ padding-bottom: 2em;
+ border-top: 1px solid var(--light-text);
+ color: var(--light-text);
+ background-color: var(--background-accent);
}
.essay{
@@ -7,14 +41,14 @@ body {
}
.figure {
- border: 1px solid #777777;
- background-color: #dddddd;
+ border: 1px solid #777;
+ background-color: #ddd;
padding: 10px;
}
.item {
margin: 10px;
- border: 2px solid #777777;
+ border: 2px solid #777;
border-radius: 5px;
padding: 7px;
}
@@ -26,15 +60,17 @@ img {
.card {
margin: 1em;
padding: 2%;
- border: 1px solid #aaaaaa;
+ border: 1px solid var(--text);
+ border-radius: 3px;
display: inline;
min-width: 200px;
+ background-color: var(--background-accent);
}
.card img {
width: 100%;
- padding: 2%;
-
+ margin: 2%;
+ border: 2px solid #888;
}
.main-page{
@@ -42,10 +78,22 @@ img {
flex-direction: row;
}
+#feed {
+ width: 100%;
+}
.feed {
width: 90%;
display: flex;
flex-direction: column;
+ margin-top: 8px;
+ animation-name: zoom-left;
+ animation-duration: .5s;
+ animation-iteration-count: 1;
+ position: relative;
+}
+
+p {
+ margin-top: 0;
}
@media screen and (min-width: 900px) {
@@ -60,14 +108,20 @@ img {
}
.sidebar {
- height: 100vh;
+ /* height: 50vh; */
+ height: 100%;
width: 100px;
margin: 20px;
+ padding: 20px;
+ border: 1px solid var(--text);
+ border-radius: 3px;
+ background-color: var(--background-accent);
}
.sidebar ul {
list-style: none;
padding: 0;
+ margin-top: 0;
}
.sidebar ul li {
@@ -77,18 +131,46 @@ img {
margin-right: auto;
}
-.btn-primary {
+.btn {
+ display: inline-block;
+ padding: 1px 3px;
+ border: 1px solid var(--btn-text);
+ border-radius: 3px;
width: 100%;
- height: 2em;
- border-radius: 0;
+ max-width: 100px;
+ line-height: 2em;
text-align: center;
+ vertical-align: middle;
+ white-space: nowrap;
+ text-decoration: none;
+}
+
+.btn-primary {
+ height: 2em;
font-size: 20px;
+ background-color: var(--btn-color);
+ color: var(--btn-text);
+}
+
+.btn-primary:hover{
+ background-color: var(--btn-hover);
}
.date {
font-style: italic;
margin: 0em;
}
+.tag {
+ font-style: normal;
+ padding-left: 1em;
+ font-weight: lighter;
+ font-size: .8em;
+ text-decoration: none;
+ color: var(--light-text);
+}
+.tag::before{
+ content: "#";
+}
.url-table, .ip-table {
width: 30%;