build common css into single css file
authorIan Kelling <ian@iankelling.org>
Mon, 3 Oct 2016 20:04:39 +0000 (13:04 -0700)
committerIan Kelling <ian@iankelling.org>
Mon, 3 Oct 2016 20:04:39 +0000 (13:04 -0700)
b.rb
css/gitweb-site.scss
css/main.scss
setup.sh

diff --git a/b.rb b/b.rb
index 6cc14ec..4611b5d 100644 (file)
--- a/b.rb
+++ b/b.rb
@@ -76,7 +76,6 @@ EOF
     <meta charset="utf-8">
     <title>#{title}</title>
     <link rel="stylesheet" href="/css/main.css">
-    <link rel="stylesheet" href="/css/common.css">
     <link rel="shortcut icon" href="/assets/favicon.png" />
     <meta name="description" content="#{o[:description] || DESCRIPTION}">
 #{o[:head]}
index 54bb033..11b81e2 100644 (file)
@@ -1,3 +1,4 @@
+@import 'common';
 
 .main-content-stripe {
     /* i don't like bright white. copy a gitweb color */
index 42eb841..375f7ec 100644 (file)
@@ -1,3 +1,5 @@
+@import 'common';
+
 #cc-by-sa {
     /* It sits too high by default. */
     vertical-align: middle;
index ee2d487..94dffe2 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -73,7 +73,6 @@ our @extra_breadcrumbs = (
 our \$home_link_str = 'git';
 our \$site_footer = '$PWD/_site/gitweb-footer.html';
 push @stylesheets, "/css/gitweb-site.css";
-push @stylesheets, "/css/common.css";
 our \$favicon = '/assets/favicon.png';
 # default is 25, cuts off descriptions.
 our \$projects_list_description_width = 40;