summaryrefslogtreecommitdiff
path: root/src/main/webapp/main.css
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/main.css')
-rw-r--r--src/main/webapp/main.css69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/main/webapp/main.css b/src/main/webapp/main.css
new file mode 100644
index 0000000..25c50c3
--- /dev/null
+++ b/src/main/webapp/main.css
@@ -0,0 +1,69 @@
+
+* {
+ box-sizing: border-box;
+}
+
+body {
+ font-family: Arial;
+ padding: 20px;
+ background: #f1f1f1;
+}
+
+/* Header/Blog Title */
+.header {
+ padding: 30px;
+ font-size: 40px;
+ text-align: center;
+ background: white;
+}
+
+/* Create two unequal columns that floats next to each other */
+/* Left column */
+.leftcolumn {
+ float: left;
+ width: 75%;
+}
+
+/* Right column */
+.rightcolumn {
+ float: left;
+ width: 25%;
+ padding-left: 20px;
+}
+
+/* Fake image */
+.fakeimg {
+ background-color: #aaa;
+ width: 100%;
+ padding: 20px;
+}
+
+/* Add a card effect for articles */
+.card {
+ background-color: white;
+ padding: 20px;
+ margin-top: 20px;
+}
+
+/* Clear floats after the columns */
+.row:after {
+ content: "";
+ display: table;
+ clear: both;
+}
+
+/* Footer */
+.footer {
+ padding: 20px;
+ text-align: center;
+ background: #ddd;
+ margin-top: 20px;
+}
+
+/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
+@media screen and (max-width: 800px) {
+ .leftcolumn, .rightcolumn {
+ width: 100%;
+ padding: 0;
+ }
+}