Skip to content
Browse files

Initial commit.

  • Loading branch information...
0 parents commit 0e5377fd0f741f3c94cd972133d5a0e6a249b27e @maxim committed
17 .gitignore
@@ -0,0 +1,17 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
4 Gemfile
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in bootswatch-rails.gemspec
+gemspec
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Maxim Chernyak
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 README.md
@@ -0,0 +1,29 @@
+# Bootswatch::Rails
+
+TODO: Write a gem description
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'bootswatch-rails'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install bootswatch-rails
+
+## Usage
+
+TODO: Write usage instructions here
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
2 Rakefile
@@ -0,0 +1,2 @@
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
16 bootswatch-rails.gemspec
@@ -0,0 +1,16 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/bootswatch-rails/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ["Maxim Chernyak"]
+ gem.email = ["max@bitsonnet.com"]
+ gem.description = %q{Bootswatches converted to SCSS ready to use in Rails 3 asset pipeline.}
+ gem.summary = %q{Bootswatches in your Rails asset pipeline}
+ gem.homepage = "http://github.com/maxim/bootswatch-rails"
+
+ gem.files = `git ls-files`.split($\)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.name = "bootswatch-rails"
+ gem.require_paths = ["lib"]
+ gem.version = Bootswatch::Rails::VERSION
+end
6 lib/bootswatch-rails.rb
@@ -0,0 +1,6 @@
+require "bootswatch-rails/version"
+
+module Bootswatch
+ module Rails
+ end
+end
5 lib/bootswatch-rails/version.rb
@@ -0,0 +1,5 @@
+module Bootswatch
+ module Rails
+ VERSION = "0.0.1"
+ end
+end
2 lib/bootswatch/rails.rb
@@ -0,0 +1,2 @@
+require 'bootswatch/rails/engine'
+require 'bootswatch/rails/version'
6 lib/bootswatch/rails/engine.rb
@@ -0,0 +1,6 @@
+module Bootswatch
+ module Rails
+ class Engine << ::Rails::Engine
+ end
+ end
+end
5 lib/bootswatch/rails/version.rb
@@ -0,0 +1,5 @@
+module Bootswatch
+ module Rails
+ VERSION = "0.0.1"
+ end
+end
126 vendor/assets/stylesheets/bootswatch/journal/_bootswatch.scss
@@ -0,0 +1,126 @@
+// Bootswatch.less
+// Swatch: Journal
+// Version: 2.0.2
+// -----------------------------------------------------
+
+// SCAFFOLDING
+// -----------------------------------------------------
+
+a {
+ text-decoration: underline;
+}
+
+.nav a, .navbar .brand, .subnav a, a.btn {
+ text-decoration: none;
+}
+
+// TYPOGRAPHY
+// -----------------------------------------------------
+
+@import url('http://fonts.googleapis.com/css?family=Open+Sans:400,700');
+
+h1, h2, h3, h4, h5, h6, .brand, .navbar, .subnav a, blockquote > p {
+ font-family: 'Open Sans', sans-serif;
+ color: $textColor;
+}
+
+h1, h2, h3, h4, h5, h6, .brand {
+ font-weight: 700;
+}
+
+// NAVBAR
+// -----------------------------------------------------
+
+.navbar .brand {
+ color: $navbarLinkColor;
+ text-shadow: none;
+ font-weight: bold;
+
+ &:hover {
+ background-color: #EEEEEE;
+ }
+}
+
+.navbar-inner {
+ border-top: 1px solid #E5E5E5;
+ $shadow: 0 2px 4px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
+ .box-shadow($shadow);
+}
+
+.navbar-inner, .navbar .dropdown-menu, div.subnav,
+div.subnav .nav > li:first-child > a, div.subnav .nav > li:first-child > a:hover {
+ .border-radius(0);
+}
+
+.navbar .nav > li > a {
+ text-shadow: none;
+}
+
+.navbar .nav .active > a,
+.navbar .nav .active > a:hover {
+ color: $navbarLinkColor;
+ background-color: rgba(0, 0, 0, 0);
+}
+
+.navbar .nav .active > a:hover,
+.navbar .nav > li > a:hover,
+.navbar .nav-collapse.in .nav li > a:hover {
+ background-color: #EEEEEE;
+}
+
+.dropdown.open .dropdown-toggle {
+ color: $textColor;
+}
+
+.navbar .nav .dropdown-toggle .caret,
+.navbar .nav .open.dropdown .caret {
+ border-top-color: $navbarLinkColor;
+ opacity: 1;
+}
+
+form.navbar-form, form.navbar-search {
+ border-top: 0px solid #eee;
+ border-bottom: 0px solid #eee;
+}
+
+.navbar-search .search-query,
+.navbar-search .search-query:hover {
+ border: 1px solid $grayLighter;
+ color: $textColor;
+ .placeholder($gray);
+}
+
+div.subnav {
+ background-color: $bodyBackground;
+ background-image: none;
+ $shadow: 0 1px 2px rgba(0,0,0,.25);
+ .box-shadow($shadow);
+}
+
+.navbar .nav-collapse.in .nav li > a,
+div.subnav .nav > li > a:hover,
+div.subnav .nav > .active > a,
+div.subnav .nav > .active > a:hover {
+ color: $textColor;
+ text-decoration: none;
+ font-weight: normal;
+}
+
+// BUTTONS
+// -----------------------------------------------------
+
+.btn-primary {
+ .buttonBackground(lighten($linkColor, 5%), $linkColor);
+}
+
+
+// MISC
+// -----------------------------------------------------
+
+code, pre, pre.prettyprint, .well, .form-actions {
+ background-color: $grayLighter;
+}
+
+.table-bordered, .well, .prettyprint {
+ .border-radius(0);
+}
203 vendor/assets/stylesheets/bootswatch/journal/_variables.scss
@@ -0,0 +1,203 @@
+// Variables.less
+// Variables to customize the look and feel of Bootstrap
+// Swatch: Journal
+// Version: 2.0.2
+// -----------------------------------------------------
+
+
+
+// GLOBAL VALUES
+// --------------------------------------------------
+
+
+// Grays
+// -------------------------
+$black: #000;
+$grayDarker: #222;
+$grayDark: #333;
+$gray: #888;
+$grayLight: #999;
+$grayLighter: #eee;
+$white: #fff;
+
+
+// Accent colors
+// -------------------------
+$blue: #369;
+$blueDark: darken($blue, 15%);
+$green: #22B24C;
+$red: #C00;
+$yellow: #FCFADB;
+$orange: #FF7F00;
+$pink: #CC99CC;
+$purple: #7a43b6;
+
+
+// Scaffolding
+// -------------------------
+$bodyBackground: #FCFBFD;
+$textColor: $grayDarker;
+
+
+// Links
+// -------------------------
+$linkColor: $textColor;
+$linkColorHover: $gray;
+
+
+// Typography
+// -------------------------
+$baseFontSize: 14px;
+$baseFontFamily: 'Open Sans', sans-serif;
+$baseLineHeight: 18px;
+$altFontFamily: Georgia, "Times New Roman", Times, serif;
+
+$headingsFontFamily: inherit; // empty to use BS default, $baseFontFamily
+$headingsFontWeight: bold; // instead of browser default, bold
+$headingsColor: inherit; // empty to use BS default, $textColor
+
+
+// Tables
+// -------------------------
+$tableBackground: transparent; // overall background-color
+$tableBackgroundAccent: $grayLighter; // for striping
+$tableBackgroundHover: #f5f5f5; // for hover
+$tableBorder: #ddd; // table and cell border
+
+
+// Buttons
+// -------------------------
+$btnBackground: $white;
+$btnBackgroundHighlight: darken($white, 10%);
+$btnBorder: darken($white, 20%);
+
+$btnPrimaryBackground: $linkColor;
+$btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%);
+
+$btnInfoBackground: #5bc0de;
+$btnInfoBackgroundHighlight: #2f96b4;
+
+$btnSuccessBackground: #62c462;
+$btnSuccessBackgroundHighlight: #51a351;
+
+$btnWarningBackground: lighten($orange, 15%);
+$btnWarningBackgroundHighlight: $orange;
+
+$btnDangerBackground: #ee5f5b;
+$btnDangerBackgroundHighlight: #bd362f;
+
+$btnInverseBackground: $gray;
+$btnInverseBackgroundHighlight: $grayDarker;
+
+
+// Forms
+// -------------------------
+$inputBackground: $white;
+$inputBorder: #ccc;
+$inputDisabledBackground: $grayLighter;
+
+
+// Dropdowns
+// -------------------------
+$dropdownBackground: $bodyBackground;
+$dropdownBorder: rgba(0,0,0,.2);
+$dropdownLinkColor: $textColor;
+$dropdownLinkColorHover: $textColor;
+$dropdownLinkBackgroundHover: #eee;
+
+
+
+
+// COMPONENT VARIABLES
+// --------------------------------------------------
+
+// Z-index master list
+// -------------------------
+// Used for a bird's eye view of components dependent on the z-axis
+// Try to avoid customizing these :)
+$zindexDropdown: 1000;
+$zindexPopover: 1010;
+$zindexTooltip: 1020;
+$zindexFixedNavbar: 1030;
+$zindexModalBackdrop: 1040;
+$zindexModal: 1050;
+
+
+// Sprite icons path
+// -------------------------
+$iconSpritePath: "../img/glyphicons-halflings.png";
+$iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
+
+
+// Input placeholder text color
+// -------------------------
+$placeholderText: $grayLight;
+
+
+// Hr border color
+// -------------------------
+$hrBorder: $grayLighter;
+
+
+// Navbar
+// -------------------------
+$navbarHeight: 40px;
+$navbarBackground: $bodyBackground;
+$navbarBackgroundHighlight: $bodyBackground;
+
+$navbarText: $textColor;
+$navbarLinkColor: $linkColor;
+$navbarLinkColorHover: $linkColor;
+$navbarLinkColorActive: $navbarLinkColorHover;
+$navbarLinkBackgroundHover: transparent;
+$navbarLinkBackgroundActive: $navbarBackground;
+
+$navbarSearchBackground: lighten($navbarBackground, 25%);
+$navbarSearchBackgroundFocus: $white;
+$navbarSearchBorder: darken($navbarSearchBackground, 30%);
+$navbarSearchPlaceholderColor: #ccc;
+
+
+// Hero unit
+// -------------------------
+$heroUnitBackground: $grayLighter;
+$heroUnitHeadingColor: inherit;
+$heroUnitLeadColor: inherit;
+
+
+// Form states and alerts
+// -------------------------
+$warningText: #c09853;
+$warningBackground: #fcf8e3;
+$warningBorder: darken(adjust-hue($warningBackground, -10), 3%);
+
+$errorText: #b94a48;
+$errorBackground: #f2dede;
+$errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
+
+$successText: #468847;
+$successBackground: #dff0d8;
+$successBorder: darken(adjust-hue($successBackground, -10), 5%);
+
+$infoText: #3a87ad;
+$infoBackground: #d9edf7;
+$infoBorder: darken(adjust-hue($infoBackground, -10), 7%);
+
+
+
+
+// GRID
+// --------------------------------------------------
+
+// Default 940px grid
+// -------------------------
+$gridColumns: 12;
+$gridColumnWidth: 60px;
+$gridGutterWidth: 20px;
+$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
+
+
+// Fluid grid
+// -------------------------
+$fluidGridColumnWidth: 6.382978723%;
+$fluidGridGutterWidth: 2.127659574%;

0 comments on commit 0e5377f

Please sign in to comment.
Something went wrong with that request. Please try again.