diff --git a/.gitignore b/.gitignore
index 3ad75cd5324ba62d8bb28654017bf4a24ca392d7..190fac0aad4ae69e75b4f5ca4b96da448fcf861b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
/sass/.DS_Store
/.sass-cache
+
+/sass/.sass-cache/
diff --git a/less/buttons.less b/less/buttons.less
index 137893208c975431a8594054ca98a2f0395ab512..f00aa60802cd217898380df7b208be365338f462 100644
--- a/less/buttons.less
+++ b/less/buttons.less
@@ -1,32 +1,21 @@
.btn {
- background: #fff;
+ background: #999;
+ border-radius: 10px; /* rounded corners */
+ border: 0;
color: #fff;
+ cursor: pointer;
display: inline-block; /* Enables non-inline-block elements like
s to be buttons */
- font-size: 2.5em;
+ font-size: 2.5em;
+ margin: .2em .3em .2em 0;
padding: 15px 40px 16px;
- text-decoration: none;
- margin: .3em .2em 0 0;
- cursor: pointer;
- border: 0;
- outline: 0; /* when the button is focused, don't show an outline */
- border-radius: 10px; /* rounded corners */
}
.btn:hover {
- background: #eee;
+ background: #888;
}
.btn:active,.btn:focus {
- background: #ddd;
-}
-
-.btn:not([class*='btn-']) {
- color: #000;
- border: 2px solid;
- padding: 13px 38px 14px; /* This way we don't change the button size, as there's no border on other buttons */
- &.small-btn {
- padding: 8px 14px 9px; /* This padding is 2px smaller than the normal small-btn padding to account for the border */
- }
+ background: #777;
}
.btn-a {
@@ -60,8 +49,8 @@
}
}
-.small-btn {
- padding: 10px 15px 11px;
- font-size: .9em;
+.btn-sm {
border-radius: 4px; /* rounded corners */
+ font-size: .9em;
+ padding: 10px 15px 11px;
}
diff --git a/less/general.less b/less/general.less
index 313c3bed0628adcaa4c4c199a059843f79e78dc7..ed85c6b1aa730ec315522e1e32e3ea927d81ee79 100644
--- a/less/general.less
+++ b/less/general.less
@@ -1,18 +1,18 @@
body, textarea {
- font-family: Arial, sans-serif;
+ font: 16px Arial, sans-serif; /* Arial is used so that the navbar looks nice on iOS. */
margin: 0;
- font-size: 16px;
}
.smooth {
transition: all .2s;
}
-@media (max-width:870px) {
- .row column {
- width: 100%;
- margin: 1% auto;
- }
+.btn, .nav a {
+ text-decoration: none;
+}
+
+.btn, .nav {
+ outline: 0; /* when the button or navbar is focused, don't show an outline */
}
.container {
diff --git a/less/grid.less b/less/grid.less
index e9ecf75d3cfb4cf0d6da302e50855ad30b12cc6a..e0c019aa9362417c3bffa2709b809b8b14490b29 100644
--- a/less/grid.less
+++ b/less/grid.less
@@ -1,12 +1,14 @@
/* Grid system responsive code is in general.less */
-/* Since every column has 2% padding (1% on each side) its width is (((its number/12) * 100)-2) percent (truncated, to avoid spillage.) Thus, c12 has width 98%. */
+/*
+ Since every column has 2% padding (1% on each side) its width is (((its number/12) * 100)-2) percent (truncated, to avoid spillage.) Thus, c12 has width 98%.
+*/
.row {
- line-height: 2em;
margin-top: 2%;
- overflow: auto;
+ overflow: auto; /* required - without this, the page layout is screwed up */
}
+
column {
float: left;
margin: auto 1%;
@@ -50,3 +52,11 @@ column {
.c1 {
width: 6.33%;
}
+
+/* For smaller screens, change all columns to 100% width */
+@media (max-width:870px) {
+ .row column {
+ margin: 1% auto;
+ width: 100%;
+ }
+}
diff --git a/less/icons.less b/less/icons.less
index f6fc2b96a0ea0f57933d6c2aba9689ab1b039e97..3d28e3610c5aa7116ec7ad85a51c8a03677b99ce 100644
--- a/less/icons.less
+++ b/less/icons.less
@@ -1,4 +1,3 @@
ico {
- font-size: 2.04em;
- font-family: Arial Unicode MS, Lucida Sans Unicode, sans-serif; /* This combo of Unicode fonts means Min's icons support OSX 10.5+, Windows 98+, and Ubuntu. */
+ font: 2.04em Arial Unicode MS, Lucida Sans Unicode; /* This combo of Unicode fonts means Min's icons support OSX 10.5+, Windows 98+, and Ubuntu. */
}
diff --git a/less/inputs.less b/less/inputs.less
index 62812f071e14ef3942a5105dbcde23d7dc2c8f26..6395bc8007c8f2b5b7ccd78dd3d6a81b16e990ad 100644
--- a/less/inputs.less
+++ b/less/inputs.less
@@ -1,8 +1,13 @@
+textarea, input, .addon-front {
+ border: 1px solid #ccc;
+ font-size: .8em;
+}
+
textarea, input {
outline: 0;
padding: 6px;
&:focus {
- border: 1px solid #5ab;
+ border-color: #5ab;
}
}
@@ -11,12 +16,6 @@ textarea, input[type='text'] {
}
.addon-front {
- padding: 6px 11px 6px 10px;
- margin-right: -2px;
+ padding: 6px 11px;
border-right: 0;
}
-
-textarea, input, .addon-front {
- border: 1px solid #ccc;
- font-size: .8em;
-}
diff --git a/less/navbar.less b/less/navbar.less
index 2b196f93fc1593dd93e78c18783d1541a4f1ff2c..031386ea5821607fe576ccc9643e3983d7af8e4d 100644
--- a/less/navbar.less
+++ b/less/navbar.less
@@ -1,93 +1,70 @@
-nav {
+.nav, .nav-link:hover, .nav .pagename {
background: #000;
+ color: #fff;
}
-.navbar {
- color: #fff;
+.nav {
height: 1.5em;
padding: .7em 0 .95em;
- outline: 0;
-}
-
-.navbar a {
- text-decoration: none;
+ /* Uncomment for animations
+ max-height: 1.5em;
+ */
}
-.navbar-link {
+.nav a {
padding-right: 1em;
color: #aaa;
top: -1px;
- position: relative;
font-size: 14px;
- &:hover {
- color: #fff;
- }
+ position: relative;
}
-button.btn.close.small-btn {
+.btn.btn-close {
background: #000;
visibility: hidden;
float: right;
- margin-right: 4px;
- margin-top: -51px;
+ margin-top: -54px;
font-size: 25px;
- color: #fff;
- border: 0;
}
.current {
- color: #fff; /* make current page white */
+ color: #fff; /* make current page link white */
}
-.pagename {
- color: #fff;
+.nav .pagename {
font-size: 22px;
top: 1px;
- position: relative;
-}
-
-.navbar input, .navbar .btn {
- margin-top: -20px;
- /* This ensures that any buttons and inputs in the navbar will not mess up its vertical alignment */
-}
-
-/* Necessary for animations
-.navbar {
- max-height: 1.5em;
}
-*/
@media (max-width:500px) {
- button.btn.close.small-btn {
+ .btn.btn-close {
visibility: visible;
}
- .navbar {
+ .nav {
/* transition: max-height .5s ease-in-out, height .5s ease-in-out; */
overflow: hidden;
}
.pagename {
margin-top: -11px;
}
- .navbar:focus {
+ .nav:focus {
/* Necesary for animations
max-height: 500px;
height: 100%;
*/
height: auto;
}
- .navbar:before {
+ .nav div:before {
content: '_';
- font-weight: bold;
border-bottom: 10px double;
- line-height: 0;
float: right;
- font-size: 32px;
- margin-top: -10px;
+ top: 1px;
position: relative;
background: #000;
height: 21px;
+ font: bold 32px/0 sans-serif; /* bold, 32px sans-serif text with a line-height of zero */
}
- .navbar a {
+ .nav a {
padding: .5em 0;
width: 50%;
display: block;
diff --git a/sass/_button.scss b/sass/_button.scss
index f6cfd1a0efd71f734db6a97bd04ce396f5758642..af76f139a57eae626c03eb48767f5707526ce88e 100644
--- a/sass/_button.scss
+++ b/sass/_button.scss
@@ -15,36 +15,26 @@
}
+
@if $import-buttons == true {
//-------------------------------------------------------------------
// Button Styles & Classes
//-------------------------------------------------------------------
-
-
// Set Generic