summaryrefslogtreecommitdiff
path: root/wotonomy-web-test/src/main/webapp/WEB-INF/classes/styles
diff options
context:
space:
mode:
authorBenjamin Culkin <scorpress@gmail.com>2024-10-13 17:17:25 -0400
committerBenjamin Culkin <scorpress@gmail.com>2024-10-13 17:17:25 -0400
commitefbf2608a8c3085d49d7df74fa3eca107a703f62 (patch)
treedf4596d52dbd039486d6b3d88beb1478592fed4c /wotonomy-web-test/src/main/webapp/WEB-INF/classes/styles
parentab37f52711db817f1d59dbe2465d65ce9b4b936e (diff)
Add CSS to the blog
Adds a proper set of CSS styles to the blog test application
Diffstat (limited to 'wotonomy-web-test/src/main/webapp/WEB-INF/classes/styles')
-rw-r--r--wotonomy-web-test/src/main/webapp/WEB-INF/classes/styles/main.css69
1 files changed, 69 insertions, 0 deletions
diff --git a/wotonomy-web-test/src/main/webapp/WEB-INF/classes/styles/main.css b/wotonomy-web-test/src/main/webapp/WEB-INF/classes/styles/main.css
new file mode 100644
index 0000000..25c50c3
--- /dev/null
+++ b/wotonomy-web-test/src/main/webapp/WEB-INF/classes/styles/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;
+ }
+}