summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@simplelittledream.com>2022-02-14 16:54:21 -0500
committerJacob McDonnell <jacob@simplelittledream.com>2022-02-14 16:54:21 -0500
commitd43433b00c856d7808fe29a2bb245ff7f9435a73 (patch)
tree02e3522bb86a2c3802c384109825fa9c9a20d3b6
parent105d5b66d98bf64acc7a4422b2e1d24c2aa453be (diff)
Added Varibles to the css for colors
-rw-r--r--CSS/main.css228
-rw-r--r--CSS/secondary.css193
-rwxr-xr-xtestPage.html4
3 files changed, 100 insertions, 325 deletions
diff --git a/CSS/main.css b/CSS/main.css
index 0ba775a..f49e8bd 100644
--- a/CSS/main.css
+++ b/CSS/main.css
@@ -6,86 +6,35 @@
* Main color: #00558e
* Secondary color: #0b3075
*/
- @font-face{
- font-family:IBM Plex Mono;
- src: url(../fonts/IBMPlexMono-Regular.ttf);
- }
- body, html{
- height: calc(100% - 2em);
- }
+ :root {
+ --main-bg-color: #eaefef;
+ --code-bg-color: #d4d9d9;
+ --main-color: #00558e;
+ --second-color: #0b3075;
+ }
body{
- background-color:#eaefef;
- color:#00558e;
- font-family:IBM Plex Mono;
+ background-color:var(--main-bg-color);
+ color:var(--main-color);
}
a{
- color: #00558e;
+ color: var(--main-color);
}
ul.topBar{
- text-transform:uppercase;
- margin:0;
- padding:0;
- overflow:hidden;
- background-color:#00558e;
- list-style-type:none;
- }
- li.topLink{
- float:left;
+ background-color:var(--main-color);
}
li.topLink a{
- display:block;
- color:#eaefef;
- text-align:center;
- padding:14px 16px;
- text-decoration:none;
+ color:var(--main-bg-color);
}
li.topLink a:hover{
- background-color:#0b3075;
- }
- .main{
- margin:auto;
- width: 60%;
+ background-color:var(--second-color);
}
.search{
- padding:12px 20px 12px;
- width:90%;
- border-radius:5px;
- margin-left:auto;
- margin-right:auto;
- margin-bottom:15em;
- color:#00558e;
- background-color:#eaefef;
- font-family:IBM Plex Mono;
- border-color:#00558e;
-
+ color:var(--main-color);
+ background-color:var(--main-bg-color);
+ border-color:var(--main-color);
}
pre code {
- background-color: #d4d9d9;
- border: 1px solid #999;
- display: block;
- overflow:scroll;
- padding: 20px;
- }
- .icon{
- font-size:200px;
- margin-top:10px;
- margin-bottom:10px;
- }
- @media only screen and (orientation: portrait){
- .main{
- margin:auto;
- width:90%;
- font-size:36px;
- }
- li.topLink a{
- font-size:36px;
- }
- .search{
- font-size:36px;
- }
- .icon{
- font-size:256px;
- }
+ background-color: var(--code-bg-color);
}
}
@@ -97,85 +46,104 @@
* Main color: #00558e
* Secondary color: #0b3075
*/
- @font-face{
- font-family:IBM Plex Mono;
- src: url(../fonts/IBMPlexMono-Regular.ttf);
- }
- body, html{
- height: calc(100% - 2em);
+ :root {
+ --main-bg-color: #0D1F22;
+ --code-bg-color: #081417;
+ --main-color: #00558e;
+ --second-color: #0b3075;
+ --text-color: #eaefef;
}
body{
- background-color:#0D1F22;
- color:#eaefef;
- font-family:IBM Plex Mono;
+ background-color:var(--main-bg-color);
+ color:var(--text-color);
}
a{
- color: #eaefef;
+ color: var(--text-color);
}
ul.topBar{
- text-transform:uppercase;
- margin:0;
- padding:0;
- overflow:hidden;
- background-color:#00558e;
- list-style-type:none;
- }
- li.topLink{
- float:left;
+ background-color:var(--main-color);
}
li.topLink a{
- display:block;
- color:#eaefef;
- text-align:center;
- padding:14px 16px;
- text-decoration:none;
+ color:var(--text-color);
}
li.topLink a:hover{
- background-color:#0b3075;
+ background-color:var(--second-color);
+ }
+ .search{
+ color:var(--main-color);
+ background-color:var(--text-color);
+ border-color:var(--main-color);
}
+ pre code {
+ background-color: var(--code-bg-color);
+ }
+}
+/* Common CSS styling */
+
+@font-face{
+ font-family:IBM Plex Mono;
+ src: url(../fonts/IBMPlexMono-Regular.ttf);
+}
+body, html{
+ height: calc(100% - 2em);
+}
+body{
+ font-family:IBM Plex Mono;
+}
+ul.topBar{
+ text-transform:uppercase;
+ margin:0;
+ padding:0;
+ overflow:hidden;
+ list-style-type:none;
+}
+li.topLink{
+ float:left;
+}
+li.topLink a{
+ display:block;
+ text-align:center;
+ padding:14px 16px;
+ text-decoration:none;
+}
+.main{
+ margin:auto;
+ width:60%;
+}
+.search{
+ padding:12px 20px 12px;
+ width:90%;
+ border-radius:5px;
+ margin-left:auto;
+ margin-right:auto;
+ margin-bottom:15em;
+ font-family:IBM Plex Mono;
+}
+pre code {
+ border: 1px solid #999;
+ display: block;
+ overflow:scroll;
+ padding: 20px;
+}
+.icon{
+ font-size:200px;
+ margin-top:10px;
+ margin-bottom:10px;
+}
+
+@media only screen and (orientation: portrait){
.main{
margin:auto;
- width:60%;
- }
- .search{
- padding:12px 20px 12px;
width:90%;
- border-radius:5px;
- margin-left:auto;
- margin-right:auto;
- margin-bottom:15em;
- color:#00558e;
- background-color:#eaefef;
- font-family:IBM Plex Mono;
- border-color:#00558e;
-
+ font-size:36px;
}
- pre code {
- background-color: #081417;
- border: 1px solid #999;
- display: block;
- overflow:scroll;
- padding: 20px;
+ li.topLink a{
+ font-size:36px;
+ }
+ .search{
+ font-size:36px;
}
.icon{
- font-size:200px;
- margin-top:10px;
- margin-bottom:10px;
- }
- @media only screen and (orientation: portrait){
- .main{
- margin:auto;
- width:90%;
- font-size:36px;
- }
- li.topLink a{
- font-size:36px;
- }
- .search{
- font-size:36px;
- }
- .icon{
- font-size:256px;
- }
+ font-size:256px;
}
} \ No newline at end of file
diff --git a/CSS/secondary.css b/CSS/secondary.css
deleted file mode 100644
index 8ad282c..0000000
--- a/CSS/secondary.css
+++ /dev/null
@@ -1,193 +0,0 @@
-@media (prefers-color-scheme: light) {
- /*
- * Color scheme
- * Background color: #eaefef
- * Code background: #d4d9d9
- * Main color: #00558e
- * Secondary color: #0b3075
- */
- @font-face{
- font-family:IBM Plex Mono;
- src: url(../fonts/IBMPlexMono-Regular.ttf);
- }
- body, html{
- height: calc(100% - 2em);
- }
- body{
- background-color:#eaefef;
- color:#00558e;
- font-family:IBM Plex Mono;
- }
- a{
- color: #00558e;
- }
- ul.topBar{
- text-transform:uppercase;
- margin:0;
- padding:0;
- overflow:hidden;
- background-color:#00558e;
- list-style-type:none;
- }
- li.topLink{
- float:left;
- }
- li.topLink a{
- display:block;
- color:#eaefef;
- text-align:center;
- padding:14px 16px;
- text-decoration:none;
- }
- li.topLink a:hover{
- background-color:#0b3075;
- }
- .main{
- margin:auto;
- width: 60%;
- }
- .search{
- padding:12px 20px 12px;
- width:90%;
- border-radius:5px;
- margin-left:auto;
- margin-right:auto;
- margin-bottom:15em;
- color:#00558e;
- background-color:#eaefef;
- font-family:IBM Plex Mono;
- border-color:#00558e;
-
- }
- pre code {
- background-color: #d4d9d9;
- border: 1px solid #999;
- overflow:scroll;
- display: block;
- padding: 20px;
- }
- .icon{
- font-size:200px;
- margin-top:10px;
- margin-bottom:10px;
- }
- @media only screen and (max-width: 838px){
- .main{
- margin:auto;
- width:90%;
- }
- }
- @media only screen and (min-height: 1440px){
- li a{
- font-size:36px;
- }
- .search{
- font-size:36px;
- }
- .icon{
- font-size:256px;
- }
- }
- @media only screen and (max-width: 1365px){
- .desktop{
- display:none;
- }
- }
-}
-
-@media (prefers-color-scheme: dark) {
- /*
- * Color scheme
- * Background color: #000000
- * Code background: #363636
- * Main color: #ffffff
- * Secondary color: #f5f5f5
- */
- @font-face{
- font-family:IBM Plex Mono;
- src: url(../fonts/IBMPlexMono-Regular.ttf);
- }
- body, html{
- height: calc(100% - 2em);
- }
- body{
- background-color:#000000;
- color:#ffffff;
- font-family:IBM Plex Mono;
- }
- a{
- color: #ffffff;
- }
- ul.topBar{
- text-transform:uppercase;
- margin:auto;
- overflow:hidden;
- background-color:#000;
- list-style-type:none;
- }
- li.topLink{
- float:left;
- }
- li.topLink a{
- display:block;
- color:#fff;
- text-align:center;
- padding:14px 16px;
- padding-right:16px;;
- text-decoration:none;
- }
- li.topLink a:hover{
- background-color:#363636;
- }
- .main{
- margin:auto;
- width: 60%;
- }
- .search{
- padding:12px 20px 12px;
- width:90%;
- border-radius:5px;
- margin-left:auto;
- margin-right:auto;
- margin-bottom:15em;
- color:#ffffff;
- background-color:#000000;
- font-family:IBM Plex Mono;
- border-color:#ffffff;
-
- }
- pre code {
- background-color: #363636;
- border: 1px solid #999;
- display: block;
- overflow:scroll;
- padding: 20px;
- }
- .icon{
- font-size:200px;
- margin-top:10px;
- margin-bottom:10px;
- }
- @media only screen and (max-width: 838px){
- .main{
- margin:auto;
- width:90%;
- }
- }
- @media only screen and (min-height: 1440px){
- li a{
- font-size:36px;
- }
- .search{
- font-size:36px;
- }
- .icon{
- font-size:256px;
- }
- }
- @media only screen and (max-width: 1365px){
- .desktop{
- display:none;
- }
- }
-} \ No newline at end of file
diff --git a/testPage.html b/testPage.html
index 449eb5c..18f0be8 100755
--- a/testPage.html
+++ b/testPage.html
@@ -22,8 +22,8 @@
<h2><a name="about">About</a></h2>
<p>I'm Jacob McDonnell. I have been interested in computers since I was young. My father has been in the technology field since before I was born, so I guess that interest came from him. <br><br> My interests, with respect to computers, are programming, UNIX/Plan9, and electronics/hardware. I know how to program in Java thanks to a high school course, and I like the language for somethings. Currently I am learning the C programming language with the hopes to write my own operating system one day. In my free time I like to play basketball, row, practice German and Russian, and play guitar. <br><br> I do not know what I will do with this website just yet, maybe I will write articles about projects that I am working on.</p>
<pre>
- <code>
-#include <stdio.h>
+ <code lang="c">
+#include &lt;stdio.h&gt;
int
main(void) {