summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-02-05 17:41:17 -0500
committerDrew DeVault <sir@cmpwn.com>2017-02-05 17:41:17 -0500
commitfcbf809456de0ae0b39e5d6627b481f17e2638c9 (patch)
treebc05ef173b57ce57e489b9802c92f638f27b3089
parentee5e4ca498a6ecaf2e7e746ad2b457d6a0bfedf6 (diff)
Update SCSS to srht standard
-rw-r--r--.gitmodules3
-rw-r--r--Makefile11
m---------scss/bootstrap0
-rw-r--r--scss/main.scss138
4 files changed, 5 insertions, 147 deletions
diff --git a/.gitmodules b/.gitmodules
index 860ffa4..e69de29 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +0,0 @@
-[submodule "scss/bootstrap"]
- path = scss/bootstrap
- url = https://github.com/twbs/bootstrap.git
diff --git a/Makefile b/Makefile
index 81d8d60..04e4910 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,3 @@
-# Builds static assets
-# Depends on:
-# - scss
-# - coffeescript
-# - inotify-tools
# Run `make` to compile static assets
# Run `make watch` to recompile whenever a change is made
@@ -11,13 +6,15 @@
SCRIPTS+=$(patsubst js/%.js,static/%.js,$(wildcard js/*.js))
_STATIC:=$(patsubst _static/%,static/%,$(wildcard _static/*))
+SRHT_PATH?=/usr/lib/python3.6/site-packages/srht
+
static/%: _static/%
@mkdir -p static/
cp $< $@
-static/main.css: scss/*.scss
+static/main.css: scss/*.scss ${SRHT_PATH}/scss/*.scss
@mkdir -p static/
- scss scss/main.scss $@
+ sassc -I${SRHT_PATH}/scss scss/main.scss $@
static/%.js: js/%.js
@mkdir -p static/
diff --git a/scss/bootstrap b/scss/bootstrap
deleted file mode 160000
-Subproject 295c93846c154fb461f85b30e663102f7e17110
diff --git a/scss/main.scss b/scss/main.scss
index 63da406..3f0507f 100644
--- a/scss/main.scss
+++ b/scss/main.scss
@@ -1,140 +1,4 @@
-@import "bootstrap/scss/bootstrap";
-
-$base-font-size: 0.9rem;
-
-body {
- font-family: sans-serif;
- font-size: $base-font-size;
-}
-
-p {
- margin-bottom: 0.5rem;
-}
-
-label {
- margin-bottom: 0.25rem;
-}
-
-input[type="text"],
-input[type="email"],
-input[type="password"],
-textarea.form-control {
- border-radius: 0;
- border-color: #888;
- color: $gray-dark;
- padding: 0.25rem 0.375rem;
-
- &:active, &:focus {
- color: $gray-dark;
- }
-}
-
-h1, h2 {
- margin-top: 0;
-}
-
-h3 {
- font-size: 1.3rem;
- border-bottom: 1px solid $gray-lighter;
- padding-bottom: 0.25rem;
-
- small {
- @extend .text-muted;
- font-size: 1rem;
- margin-left: 1rem;
- }
-}
-
-h4 {
- margin-top: 1rem;
- font-size: 1.1rem;
-}
-
-section {
- padding-bottom: 0.5rem;
-}
-
-.container {
- margin: 0;
-}
-
-.btn {
- border-radius: 0;
- padding: 0.1rem 0.75rem;
-
- &.btn-default {
- transition: background 0.1s linear;
- background: $gray-lighter;
- border: $gray-dark 1px solid;
- font-size: 0.9rem;
- color: black;
-
- &:hover {
- background: $gray-lightest;
- }
- }
-
- &.btn-danger {
- border: $btn-danger-border 1px solid;
- font-size: 0.9rem;
- }
-
- &.btn-link {
- padding: 0;
- font-size: $base-font-size;
- margin-top: -0.1rem;
- }
-}
-
-.navbar {
- .navbar-brand {
- padding: 0 1rem 0 0;
- line-height: 1.8;
- }
-
- li {
- font-size: $base-font-size;
- line-height: 1.8;
- }
-
- .login {
- padding: 0.425rem 0;
- font-size: $base-font-size;
- line-height: 1.5;
- }
-}
-
-.nav-tabs {
- padding-left: 1rem;
- margin-bottom: 0.5rem;
- border-bottom: 3px #ddd solid;
-
- .nav-link {
- padding: 0 1rem;
- border-radius: 0;
- color: black;
- cursor: pointer;
-
- &.active, &.active:hover {
- color: black;
- background: #ddd;
- }
- }
-}
-
-.alert {
- padding: 0.5rem;
- border-radius: 0;
-
- .form-group & {
- margin-top: 1rem;
- }
-}
-
-.text-centered {
- text-align: center;
-}
-
+@import "base";
@import "cgit";
div#cgit {