s to be buttons */
- font-size: 2.5em;
- 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 */
+ 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;
+ margin: .2em .3em .2em 0;
+ padding: 15px 40px 16px;
}
.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 313c3be..ed85c6b 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 e9ecf75..e0c019a 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 f6fc2b9..3d28e36 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 62812f0..6395bc8 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 2b196f9..031386e 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;
+ /* Uncomment for animations
+ max-height: 1.5em;
+ */
}
-.navbar a {
- text-decoration: none;
-}
-
-.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 f6cfd1a..af76f13 100644
--- a/sass/_button.scss
+++ b/sass/_button.scss
@@ -15,36 +15,26 @@
}
+
@if $import-buttons == true {
//-------------------------------------------------------------------
// Button Styles & Classes
//-------------------------------------------------------------------
-
-
// Set Generic