lte-rails 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +37 -0
  3. data/.gitmodules +3 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +94 -0
  6. data/LICENSE +22 -0
  7. data/README.md +4 -0
  8. data/Rakefile +52 -0
  9. data/lib/lte/rails/engine.rb +13 -0
  10. data/lib/lte/rails/version.rb +7 -0
  11. data/lib/lte/rails.rb +7 -0
  12. data/lib/lte-rails.rb +1 -0
  13. data/lte-rails.gemspec +40 -0
  14. data/vendor/assets/stylesheets/AdminLTE/.csslintrc +23 -0
  15. data/vendor/assets/stylesheets/AdminLTE/404_500_errors.less +36 -0
  16. data/vendor/assets/stylesheets/AdminLTE/AdminLTE.less +68 -0
  17. data/vendor/assets/stylesheets/AdminLTE/alerts.less +44 -0
  18. data/vendor/assets/stylesheets/AdminLTE/bootstrap-social.less +114 -0
  19. data/vendor/assets/stylesheets/AdminLTE/boxes.less +483 -0
  20. data/vendor/assets/stylesheets/AdminLTE/buttons.less +159 -0
  21. data/vendor/assets/stylesheets/AdminLTE/callout.less +48 -0
  22. data/vendor/assets/stylesheets/AdminLTE/carousel.less +18 -0
  23. data/vendor/assets/stylesheets/AdminLTE/control-sidebar.less +280 -0
  24. data/vendor/assets/stylesheets/AdminLTE/core.less +171 -0
  25. data/vendor/assets/stylesheets/AdminLTE/direct-chat.less +172 -0
  26. data/vendor/assets/stylesheets/AdminLTE/dropdown.less +347 -0
  27. data/vendor/assets/stylesheets/AdminLTE/forms.less +94 -0
  28. data/vendor/assets/stylesheets/AdminLTE/fullcalendar.less +88 -0
  29. data/vendor/assets/stylesheets/AdminLTE/header.less +244 -0
  30. data/vendor/assets/stylesheets/AdminLTE/info-box.less +69 -0
  31. data/vendor/assets/stylesheets/AdminLTE/invoice.less +16 -0
  32. data/vendor/assets/stylesheets/AdminLTE/labels.less +23 -0
  33. data/vendor/assets/stylesheets/AdminLTE/lockscreen.less +68 -0
  34. data/vendor/assets/stylesheets/AdminLTE/login_and_register.less +50 -0
  35. data/vendor/assets/stylesheets/AdminLTE/mailbox.less +77 -0
  36. data/vendor/assets/stylesheets/AdminLTE/miscellaneous.less +529 -0
  37. data/vendor/assets/stylesheets/AdminLTE/mixins.less +302 -0
  38. data/vendor/assets/stylesheets/AdminLTE/modal.less +73 -0
  39. data/vendor/assets/stylesheets/AdminLTE/navs.less +182 -0
  40. data/vendor/assets/stylesheets/AdminLTE/print.less +48 -0
  41. data/vendor/assets/stylesheets/AdminLTE/products.less +44 -0
  42. data/vendor/assets/stylesheets/AdminLTE/profile.less +29 -0
  43. data/vendor/assets/stylesheets/AdminLTE/progress-bars.less +107 -0
  44. data/vendor/assets/stylesheets/AdminLTE/select2.less +102 -0
  45. data/vendor/assets/stylesheets/AdminLTE/sidebar-mini.less +138 -0
  46. data/vendor/assets/stylesheets/AdminLTE/sidebar.less +157 -0
  47. data/vendor/assets/stylesheets/AdminLTE/skins/_all-skins.less +13 -0
  48. data/vendor/assets/stylesheets/AdminLTE/skins/skin-black-light.less +64 -0
  49. data/vendor/assets/stylesheets/AdminLTE/skins/skin-black.less +64 -0
  50. data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue-light.less +61 -0
  51. data/vendor/assets/stylesheets/AdminLTE/skins/skin-blue.less +58 -0
  52. data/vendor/assets/stylesheets/AdminLTE/skins/skin-green-light.less +56 -0
  53. data/vendor/assets/stylesheets/AdminLTE/skins/skin-green.less +56 -0
  54. data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple-light.less +55 -0
  55. data/vendor/assets/stylesheets/AdminLTE/skins/skin-purple.less +55 -0
  56. data/vendor/assets/stylesheets/AdminLTE/skins/skin-red-light.less +55 -0
  57. data/vendor/assets/stylesheets/AdminLTE/skins/skin-red.less +55 -0
  58. data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow-light.less +55 -0
  59. data/vendor/assets/stylesheets/AdminLTE/skins/skin-yellow.less +55 -0
  60. data/vendor/assets/stylesheets/AdminLTE/small-box.less +89 -0
  61. data/vendor/assets/stylesheets/AdminLTE/social-widgets.less +78 -0
  62. data/vendor/assets/stylesheets/AdminLTE/table.less +71 -0
  63. data/vendor/assets/stylesheets/AdminLTE/timeline.less +111 -0
  64. data/vendor/assets/stylesheets/AdminLTE/users-list.less +39 -0
  65. data/vendor/assets/stylesheets/AdminLTE/variables.less +120 -0
  66. data/vendor/assets/stylesheets/lte-rails.less +1 -0
  67. metadata +200 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 00689d4136478568539c5326f36be78ef844e59a
4
+ data.tar.gz: fbfd88a2589307148db0eca0ad941a9c1601526d
5
+ SHA512:
6
+ metadata.gz: 296df989ac762eb381b4ffc75e2460eaeec453165656c8ec5b775136a09cdd97dd59f2bd13e9b972d997a19a0f55cdb2196fec5dd4ce476150bc056f12fb2990
7
+ data.tar.gz: eac660190e8e269cafab62c76d96c1a1b83c7702bd9452c8511ec49a3335bc353cacbb6841d18133beea2f0323cd288b6e66b1ac4ca0ed9e3b140dcdbbe71d9b
data/.gitignore ADDED
@@ -0,0 +1,37 @@
1
+ *.rbc
2
+ capybara-*.html
3
+ .rspec
4
+ /log
5
+ /tmp
6
+ /db/*.sqlite3
7
+ /db/*.sqlite3-journal
8
+ /public/system
9
+ /coverage/
10
+ /spec/tmp
11
+ **.orig
12
+ rerun.txt
13
+ pickle-email-*.html
14
+
15
+ # TODO Comment out these rules if you are OK with secrets being uploaded to the repo
16
+ config/initializers/secret_token.rb
17
+ config/secrets.yml
18
+
19
+ ## Environment normalisation:
20
+ /.bundle
21
+ /vendor/bundle
22
+
23
+ # these should all be checked in to normalise the environment:
24
+ # Gemfile.lock, .ruby-version, .ruby-gemset
25
+
26
+ *.gem
27
+
28
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
29
+ .rvmrc
30
+
31
+ # if using bower-rails ignore default bower_components path bower.json files
32
+ /vendor/assets/bower_components
33
+ *.bowerrc
34
+ bower.json
35
+
36
+ # Ignore pow environment settings
37
+ .powenv
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "AdminLTE"]
2
+ path = AdminLTE
3
+ url = git@github.com:almasaeed2010/AdminLTE.git
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify gem's dependencies in lte-rails.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,94 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ lte-rails (0.0.1)
5
+ less-rails (~> 2.6)
6
+ less-rails-bootstrap (~> 3.3)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (4.2.4)
12
+ actionview (= 4.2.4)
13
+ activesupport (= 4.2.4)
14
+ rack (~> 1.6)
15
+ rack-test (~> 0.6.2)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
+ actionview (4.2.4)
19
+ activesupport (= 4.2.4)
20
+ builder (~> 3.1)
21
+ erubis (~> 2.7.0)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ activesupport (4.2.4)
25
+ i18n (~> 0.7)
26
+ json (~> 1.7, >= 1.7.7)
27
+ minitest (~> 5.1)
28
+ thread_safe (~> 0.3, >= 0.3.4)
29
+ tzinfo (~> 1.1)
30
+ builder (3.2.2)
31
+ commonjs (0.2.7)
32
+ diff-lcs (1.2.5)
33
+ erubis (2.7.0)
34
+ i18n (0.7.0)
35
+ json (1.8.3)
36
+ less (2.6.0)
37
+ commonjs (~> 0.2.7)
38
+ less-rails (2.7.0)
39
+ actionpack (>= 4.0)
40
+ less (~> 2.6.0)
41
+ sprockets (> 2, < 4)
42
+ tilt
43
+ less-rails-bootstrap (3.3.5.0)
44
+ less-rails (>= 2.6, <= 2.8)
45
+ loofah (2.0.3)
46
+ nokogiri (>= 1.5.9)
47
+ mini_portile (0.6.2)
48
+ minitest (5.8.1)
49
+ nokogiri (1.6.6.2)
50
+ mini_portile (~> 0.6.0)
51
+ rack (1.6.4)
52
+ rack-test (0.6.3)
53
+ rack (>= 1.0)
54
+ rails-deprecated_sanitizer (1.0.3)
55
+ activesupport (>= 4.2.0.alpha)
56
+ rails-dom-testing (1.0.7)
57
+ activesupport (>= 4.2.0.beta, < 5.0)
58
+ nokogiri (~> 1.6.0)
59
+ rails-deprecated_sanitizer (>= 1.0.1)
60
+ rails-html-sanitizer (1.0.2)
61
+ loofah (~> 2.0)
62
+ rake (10.4.2)
63
+ rspec (3.2.0)
64
+ rspec-core (~> 3.2.0)
65
+ rspec-expectations (~> 3.2.0)
66
+ rspec-mocks (~> 3.2.0)
67
+ rspec-core (3.2.0)
68
+ rspec-support (~> 3.2.0)
69
+ rspec-expectations (3.2.0)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.2.0)
72
+ rspec-mocks (3.2.0)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.2.0)
75
+ rspec-support (3.2.1)
76
+ sprockets (3.4.0)
77
+ rack (> 1, < 3)
78
+ thread_safe (0.3.5)
79
+ tilt (2.0.1)
80
+ tzinfo (1.2.2)
81
+ thread_safe (~> 0.1)
82
+
83
+ PLATFORMS
84
+ ruby
85
+
86
+ DEPENDENCIES
87
+ bundler (~> 1.10)
88
+ less (~> 2.6.0, ~> 2.6)
89
+ lte-rails!
90
+ rake (~> 10.0)
91
+ rspec (~> 3)
92
+
93
+ BUNDLED WITH
94
+ 1.10.5
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 RacketLogger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # admin-lte-rails
2
+ Admin LTE gem for use in Rails
3
+
4
+ Using AdminLTE 2.3.0
data/Rakefile ADDED
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler"
3
+ require "bundler/gem_tasks"
4
+
5
+ VERSION = Lte::Rails::VERSION
6
+
7
+ Bundler::GemHelper.install_tasks
8
+
9
+ TARGET_DIR = 'vendor/assets/stylesheets'
10
+ FULL_DIR = File.join(TARGET_DIR, "AdminLTE")
11
+
12
+ desc "Bundle the gem"
13
+ task :bundle => [:bundle_install, :build_files] do
14
+ sh 'gem build *.gemspec'
15
+ end
16
+
17
+ desc "Install the gem"
18
+ task :install => [:bundle] do
19
+ sh 'gem install *.gem'
20
+ sh 'rm *.gem'
21
+ end
22
+
23
+
24
+ desc "Runs bundle install"
25
+ task :bundle_install do
26
+ sh 'bundle install'
27
+ end
28
+
29
+ desc "Pushes the latest gem to rubygems"
30
+ task :push_gem => [:build] do
31
+ sh "gem push pkg/lte-rails-#{VERSION}.gem"
32
+ end
33
+
34
+ desc "Copy the stylesheets from the sources"
35
+ task :build_files => [:clean] do
36
+ FileUtils.cp_r "AdminLTE/build/less/", TARGET_DIR, preserve: true
37
+ Dir.chdir TARGET_DIR do
38
+ FileUtils.mv 'less', "AdminLTE"
39
+ file = "AdminLTE/AdminLTE.less"
40
+ text = File.read(file)
41
+ repl = text.gsub(/\.\.\/bootstrap-less\//, 'twitter/bootstrap/')
42
+ File.open(file, 'w') { |f| f << repl }
43
+ end
44
+ end
45
+
46
+ desc "Clean the assets"
47
+ task :clean do
48
+ FileUtils.rm_rf FULL_DIR
49
+ end
50
+
51
+ task(:default).clear
52
+ task :default => :bundle
@@ -0,0 +1,13 @@
1
+ module Lte
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ #initializer 'admin-lte-rails.setup',
5
+ # :after => 'less-rails.after.load_config_initializers',
6
+ # :group => :all do |app|
7
+ # if defined?(Less)
8
+ # app.config.less.paths << File.join(config.root, 'vendor', 'toolkit')
9
+ # end
10
+ # end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ module Lte
2
+ module Rails
3
+ # NOTE: this needs to be changed in the Makefile at the same time!
4
+ VERSION = "0.0.1"
5
+ ADMIN_LTE_VERSION = "2.3.0"
6
+ end
7
+ end
data/lib/lte/rails.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'lte/rails/engine'
2
+ require 'lte/rails/version'
3
+
4
+ module Lte
5
+ module Rails
6
+ end
7
+ end
data/lib/lte-rails.rb ADDED
@@ -0,0 +1 @@
1
+ require 'lte/rails'
data/lte-rails.gemspec ADDED
@@ -0,0 +1,40 @@
1
+ # coding: utf-8
2
+ require File.expand_path('../lib/lte/rails/version', __FILE__)
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "lte-rails"
6
+ spec.version = Lte::Rails::VERSION
7
+ spec.authors = ["Carlos Puchol"]
8
+ spec.email = ["cpg+git at racketlogger.com"]
9
+
10
+ spec.summary = %q{ Provides Admin LTE assets}
11
+ spec.description = %q{ This gem provides all the assets for Admin LTE for use in a rails project}
12
+ spec.homepage = "https://github.com/racketlogger/admin-lte-rails"
13
+ spec.license = "MIT"
14
+
15
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
16
+ # delete this section to allow pushing this gem to any host.
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
19
+ else
20
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
21
+ end
22
+
23
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
25
+
26
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
+ spec.require_path = 'lib'
28
+
29
+ #spec.add_dependency 'less-rails', '~> 2.4'
30
+
31
+ spec.add_development_dependency "bundler", "~> 1.10"
32
+ spec.add_development_dependency "rake", "~> 10.0"
33
+ spec.add_development_dependency "rspec", "~> 3"
34
+
35
+ spec.add_development_dependency 'less', '~> 2.6', '~> 2.6.0'
36
+
37
+ spec.add_runtime_dependency 'less-rails-bootstrap', '~> 3.3'
38
+ spec.add_runtime_dependency 'less-rails', '~> 2.6'
39
+
40
+ end
@@ -0,0 +1,23 @@
1
+ {
2
+ "adjoining-classes": false,
3
+ "box-sizing": false,
4
+ "box-model": false,
5
+ "compatible-vendor-prefixes": false,
6
+ "floats": false,
7
+ "font-sizes": false,
8
+ "gradients": false,
9
+ "important": false,
10
+ "known-properties": false,
11
+ "outline-none": false,
12
+ "qualified-headings": false,
13
+ "regex-selectors": false,
14
+ "shorthand": false,
15
+ "text-indent": false,
16
+ "unique-headings": false,
17
+ "universal-selector": false,
18
+ "unqualified-attributes": false,
19
+ "ids": false,
20
+ "fallback-colors": false,
21
+ "vendor-prefix": false,
22
+ "import": false
23
+ }
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Page: 400 and 500 error pages
3
+ * ------------------------------
4
+ */
5
+ .error-page {
6
+ width: 600px;
7
+ margin: 20px auto 0 auto;
8
+ @media (max-width: @screen-sm-max) {
9
+ width: 100%;
10
+ }
11
+ //For the error number e.g: 404
12
+ > .headline {
13
+ float: left;
14
+ font-size: 100px;
15
+ font-weight: 300;
16
+ @media (max-width: @screen-sm-max) {
17
+ float: none;
18
+ text-align: center;
19
+ }
20
+ }
21
+ //For the message
22
+ > .error-content {
23
+ margin-left: 190px;
24
+ @media (max-width: @screen-sm-max) {
25
+ margin-left: 0;
26
+ }
27
+ > h3 {
28
+ font-weight: 300;
29
+ font-size: 25px;
30
+ @media(max-width: @screen-sm-max) {
31
+ text-align: center;
32
+ }
33
+ }
34
+ display: block;
35
+ }
36
+ }
@@ -0,0 +1,68 @@
1
+ /*!
2
+ * AdminLTE v2.3.0
3
+ * Author: Almsaeed Studio
4
+ * Website: Almsaeed Studio <http://almsaeedstudio.com>
5
+ * License: Open source - MIT
6
+ * Please visit http://opensource.org/licenses/MIT for more information
7
+ !*/
8
+
9
+ //google fonts
10
+ @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic);
11
+
12
+ //Bootstrap Variables & Mixins
13
+ //The core bootstrap code have not been modified. These files
14
+ //are included only for reference.
15
+ @import (reference) "twitter/bootstrap/mixins.less";
16
+ @import (reference) "twitter/bootstrap/variables.less";
17
+
18
+ //MISC
19
+ //----
20
+ @import "core.less";
21
+ @import "variables.less";
22
+ @import "mixins.less";
23
+
24
+ //COMPONENTS
25
+ //-----------
26
+ @import "header.less";
27
+ @import "sidebar.less";
28
+ @import "sidebar-mini.less";
29
+ @import "control-sidebar.less";
30
+ @import "dropdown.less";
31
+ @import "forms.less";
32
+ @import "progress-bars.less";
33
+ @import "small-box.less";
34
+ @import "boxes.less";
35
+ @import "info-box.less";
36
+ @import "timeline.less";
37
+ @import "buttons.less";
38
+ @import "callout.less";
39
+ @import "alerts.less";
40
+ @import "navs.less";
41
+ @import "products.less";
42
+ @import "table.less";
43
+ @import "labels.less";
44
+ @import "direct-chat.less";
45
+ @import "users-list.less";
46
+ @import "carousel.less";
47
+ @import "modal.less";
48
+ @import "social-widgets.less";
49
+
50
+ //PAGES
51
+ //------
52
+ @import "mailbox.less";
53
+ @import "lockscreen.less";
54
+ @import "login_and_register.less";
55
+ @import "404_500_errors.less";
56
+ @import "invoice.less";
57
+ @import "profile";
58
+
59
+ //Plugins
60
+ //--------
61
+ @import "bootstrap-social.less";
62
+ @import "fullcalendar.less";
63
+ @import "select2.less";
64
+
65
+ //Miscellaneous
66
+ //-------------
67
+ @import "miscellaneous.less";
68
+ @import "print.less";
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Component: alert
3
+ * ----------------
4
+ */
5
+
6
+ .alert {
7
+ .border-radius(3px);
8
+ h4 {
9
+ font-weight: 600;
10
+ }
11
+ .icon {
12
+ margin-right: 10px;
13
+ }
14
+ .close {
15
+ color: #000;
16
+ .opacity(.2);
17
+ &:hover {
18
+ .opacity(.5);
19
+ }
20
+ }
21
+ a {
22
+ color: #fff;
23
+ text-decoration: underline;
24
+ }
25
+ }
26
+
27
+ //Alert Variants
28
+ .alert-success {
29
+ &:extend(.bg-green);
30
+ border-color: darken(@green, 5%);
31
+ }
32
+ .alert-danger,
33
+ .alert-error {
34
+ &:extend(.bg-red);
35
+ border-color: darken(@red, 5%);
36
+ }
37
+ .alert-warning {
38
+ &:extend(.bg-yellow);
39
+ border-color: darken(@yellow, 5%);
40
+ }
41
+ .alert-info {
42
+ &:extend(.bg-aqua);
43
+ border-color: darken(@aqua, 5%);
44
+ }
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Social Buttons for Bootstrap
3
+ *
4
+ * Copyright 2013-2015 Panayiotis Lipiridis
5
+ * Licensed under the MIT License
6
+ *
7
+ * https://github.com/lipis/bootstrap-social
8
+ */
9
+
10
+ @bs-height-base: (@line-height-computed + @padding-base-vertical * 2);
11
+ @bs-height-lg: (floor(@font-size-large * @line-height-base) + @padding-large-vertical * 2);
12
+ @bs-height-sm: (floor(@font-size-small * 1.5) + @padding-small-vertical * 2);
13
+ @bs-height-xs: (floor(@font-size-small * 1.2) + @padding-small-vertical + 1);
14
+
15
+ .btn-social {
16
+ position: relative;
17
+ padding-left: (@bs-height-base + @padding-base-horizontal);
18
+ text-align: left;
19
+ white-space: nowrap;
20
+ overflow: hidden;
21
+ text-overflow: ellipsis;
22
+ > :first-child {
23
+ position: absolute;
24
+ left: 0;
25
+ top: 0;
26
+ bottom: 0;
27
+ width: @bs-height-base;
28
+ line-height: (@bs-height-base + 2);
29
+ font-size: 1.6em;
30
+ text-align: center;
31
+ border-right: 1px solid rgba(0, 0, 0, 0.2);
32
+ }
33
+ &.btn-lg {
34
+ padding-left: (@bs-height-lg + @padding-large-horizontal);
35
+ > :first-child {
36
+ line-height: @bs-height-lg;
37
+ width: @bs-height-lg;
38
+ font-size: 1.8em;
39
+ }
40
+ }
41
+ &.btn-sm {
42
+ padding-left: (@bs-height-sm + @padding-small-horizontal);
43
+ > :first-child {
44
+ line-height: @bs-height-sm;
45
+ width: @bs-height-sm;
46
+ font-size: 1.4em;
47
+ }
48
+ }
49
+ &.btn-xs {
50
+ padding-left: (@bs-height-xs + @padding-small-horizontal);
51
+ > :first-child {
52
+ line-height: @bs-height-xs;
53
+ width: @bs-height-xs;
54
+ font-size: 1.2em;
55
+ }
56
+ }
57
+ }
58
+
59
+ .btn-social-icon {
60
+ .btn-social;
61
+ height: (@bs-height-base + 2);
62
+ width: (@bs-height-base + 2);
63
+ padding: 0;
64
+ > :first-child {
65
+ border: none;
66
+ text-align: center;
67
+ width: 100%;
68
+ }
69
+ &.btn-lg {
70
+ height: @bs-height-lg;
71
+ width: @bs-height-lg;
72
+ padding-left: 0;
73
+ padding-right: 0;
74
+ }
75
+ &.btn-sm {
76
+ height: (@bs-height-sm + 2);
77
+ width: (@bs-height-sm + 2);
78
+ padding-left: 0;
79
+ padding-right: 0;
80
+ }
81
+ &.btn-xs {
82
+ height: (@bs-height-xs + 2);
83
+ width: (@bs-height-xs + 2);
84
+ padding-left: 0;
85
+ padding-right: 0;
86
+ }
87
+ }
88
+
89
+ .btn-social(@color-bg, @color: #fff) {
90
+ background-color: @color-bg;
91
+ .button-variant(@color, @color-bg, rgba(0,0,0,.2));
92
+ }
93
+
94
+
95
+ .btn-adn { .btn-social(#d87a68); }
96
+ .btn-bitbucket { .btn-social(#205081); }
97
+ .btn-dropbox { .btn-social(#1087dd); }
98
+ .btn-facebook { .btn-social(#3b5998); }
99
+ .btn-flickr { .btn-social(#ff0084); }
100
+ .btn-foursquare { .btn-social(#f94877); }
101
+ .btn-github { .btn-social(#444444); }
102
+ .btn-google { .btn-social(#dd4b39); }
103
+ .btn-instagram { .btn-social(#3f729b); }
104
+ .btn-linkedin { .btn-social(#007bb6); }
105
+ .btn-microsoft { .btn-social(#2672ec); }
106
+ .btn-openid { .btn-social(#f7931e); }
107
+ .btn-pinterest { .btn-social(#cb2027); }
108
+ .btn-reddit { .btn-social(#eff7ff, #000); }
109
+ .btn-soundcloud { .btn-social(#ff5500); }
110
+ .btn-tumblr { .btn-social(#2c4762); }
111
+ .btn-twitter { .btn-social(#55acee); }
112
+ .btn-vimeo { .btn-social(#1ab7ea); }
113
+ .btn-vk { .btn-social(#587ea3); }
114
+ .btn-yahoo { .btn-social(#720e9e); }