ethosstyles 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +9 -0
- data/Dockerfile +7 -0
- data/Gemfile +4 -0
- data/Makefile +15 -0
- data/README.md +32 -0
- data/Rakefile +9 -0
- data/app/assets/images/loader.svg +12 -0
- data/app/assets/stylesheets/_ethosstyles.scss +8 -1
- data/app/assets/stylesheets/components/_avatars.scss +59 -0
- data/app/assets/stylesheets/components/_blurbs.scss +14 -40
- data/app/assets/stylesheets/components/_buttons.scss +3 -5
- data/app/assets/stylesheets/components/_checks.scss +5 -7
- data/app/assets/stylesheets/components/_icons.scss +10 -54
- data/app/assets/stylesheets/components/_links.scss +3 -20
- data/app/assets/stylesheets/components/_modal.scss +14 -43
- data/app/assets/stylesheets/components/_pills.scss +0 -46
- data/app/assets/stylesheets/components/_tables.scss +0 -13
- data/app/assets/stylesheets/components/_tooltips.scss +55 -0
- data/app/assets/stylesheets/main.scss +0 -4
- data/app/assets/stylesheets/settings/_variables.scss +0 -25
- data/app/assets/stylesheets/utilities/_animations.scss +0 -22
- data/app/assets/stylesheets/utilities/_mixins.scss +12 -10
- data/app/views/avatars.php +31 -0
- data/app/views/buttons.html +105 -0
- data/app/views/buttons.php +105 -0
- data/app/views/favicon.ico +0 -0
- data/app/views/icons.php +129 -0
- data/app/views/index.php +66 -0
- data/app/views/list-groups.php +318 -0
- data/app/views/modal_partial.php +21 -0
- data/app/views/modals.php +20 -0
- data/app/views/partial_avatars.php +20 -0
- data/app/views/partial_icons.php +16 -0
- data/app/views/partial_tooltips.php +19 -0
- data/app/views/tooltips.php +27 -0
- data/ethosstyles.gemspec +28 -0
- data/lib/ethosstyles.rb +23 -2
- data/lib/ethosstyles/engine.rb +1 -0
- data/lib/ethosstyles/generator.rb +80 -0
- data/lib/ethosstyles/version.rb +1 -1
- metadata +61 -10
- data/app/assets/stylesheets/components/_tooltip.scss +0 -23
@@ -0,0 +1,21 @@
|
|
1
|
+
<div class="modal-dialog">
|
2
|
+
<div class="modal-content rf-modal rf-modal--<?php echo $modal_type; ?>" role="document">
|
3
|
+
<div class="modal-header rf-modal__header">
|
4
|
+
<span class="rf-icon rf-icon--xlarge"></span>
|
5
|
+
<h2 class="rf-modal__title">This is a <?php echo $modal_type; ?> modal.</h2>
|
6
|
+
</div>
|
7
|
+
<div class="modal-body rf-modal__body">
|
8
|
+
<ul>
|
9
|
+
<li>This is a list item.</li>
|
10
|
+
<li>This is a second list item.</li>
|
11
|
+
<li>
|
12
|
+
This is a third list item. It is a long item. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque metus odio, pellentesque non odio ut, aliquam rhoncus quam. Mauris vulputate aliquet massa rutrum bibendum. Etiam consectetur ex erat, in sollicitudin sapien convallis at. Ut quis ligula sed massa consectetur lacinia vel vitae libero.
|
13
|
+
</li>
|
14
|
+
</ul>
|
15
|
+
</div>
|
16
|
+
<div class="modal-footer rf-modal__footer">
|
17
|
+
<button class="rf-btn rf-btn--secondary">Cancel</button>
|
18
|
+
<button class="rf-btn rf-btn--primary">Continue</button>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?php
|
2
|
+
$modal_type = "";
|
3
|
+
include 'modal_partial.php';
|
4
|
+
?>
|
5
|
+
|
6
|
+
<?php
|
7
|
+
$modal_type = "warning";
|
8
|
+
include 'modal_partial.php';
|
9
|
+
?>
|
10
|
+
|
11
|
+
<?php
|
12
|
+
$modal_type = "error";
|
13
|
+
include 'modal_partial.php';
|
14
|
+
?>
|
15
|
+
|
16
|
+
<?php
|
17
|
+
$modal_type = "info";
|
18
|
+
include 'modal_partial.php';
|
19
|
+
?>
|
20
|
+
<br/>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="rf-col rf-col--6 rf-col--grid">
|
2
|
+
<div class="rf-avatar rf-avatar--med">
|
3
|
+
<?php if($avatar_overlay): ?>
|
4
|
+
<div class="rf-avatar__overlay rf-avatar__overlay--<?php echo $avatar_overlay?>"> </div>
|
5
|
+
<?php endif; ?>
|
6
|
+
<?php if($avatar_nametag): ?>
|
7
|
+
<div class="rf-avatar__nametag"> <?php echo $avatar_nametag?> </div>
|
8
|
+
<?php endif; ?>
|
9
|
+
<img class="rf-avatar__img" src="https://git.corp.adobe.com/avatars/u/25754?" alt="krevat">
|
10
|
+
</div>
|
11
|
+
<div class="rf-avatar rf-avatar--small">
|
12
|
+
<?php if($avatar_overlay): ?>
|
13
|
+
<div class="rf-avatar__overlay rf-avatar__overlay--<?php echo $avatar_overlay?>"> </div>
|
14
|
+
<?php endif; ?>
|
15
|
+
<?php if($avatar_nametag): ?>
|
16
|
+
<div class="rf-avatar__nametag"> <?php echo $avatar_nametag?> </div>
|
17
|
+
<?php endif; ?>
|
18
|
+
<img class="rf-avatar__img" src="https://git.corp.adobe.com/avatars/u/25754?" alt="krevat">
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="rf-col rf-col--6 rf-col--grid">
|
2
|
+
<h4><?php echo $icon_class ?></h4>
|
3
|
+
<p>
|
4
|
+
<span class="rf-icon <?php echo $icon_class ?> rf-icon--xlarge"></span>
|
5
|
+
<span class="rf-icon <?php echo $icon_class ?> rf-icon--large"></span>
|
6
|
+
<span class="rf-icon <?php echo $icon_class ?>"></span>
|
7
|
+
<span class="rf-icon <?php echo $icon_class ?> rf-icon--small"></span>
|
8
|
+
<span class="rf-icon <?php echo $icon_class ?> rf-icon--xsmall"></span>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<pre><span class="rf-icon <?php echo $icon_class ?> rf-icon--xlarge"></span>
|
12
|
+
<span class="rf-icon <?php echo $icon_class ?> rf-icon--large"></span>
|
13
|
+
<span class="rf-icon <?php echo $icon_class ?>"></span>
|
14
|
+
<span class="rf-icon <?php echo $icon_class ?> rf-icon--small"></span>
|
15
|
+
<span class="rf-icon <?php echo $icon_class ?> rf-icon--xsmall"></span>
|
16
|
+
</div>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="rf-col rf-col--6 rf-col--grid">
|
2
|
+
<h4><?php echo $tooltip_class ?></h4>
|
3
|
+
<p>
|
4
|
+
<div class="rf-btn-set">
|
5
|
+
<span class="rf-tooltip <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="left">
|
6
|
+
<a class="rf-btn rf-btn--secondary">LEFT</a>
|
7
|
+
</span>
|
8
|
+
<span class="rf-tooltip <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="top">
|
9
|
+
<a class="rf-btn rf-btn--secondary">TOP</a>
|
10
|
+
</span>
|
11
|
+
<span class="rf-tooltip <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="bottom">
|
12
|
+
<a class="rf-btn rf-btn--secondary">BOTTOM</a>
|
13
|
+
</span>
|
14
|
+
<span class="rf-tooltip <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="right">
|
15
|
+
<a class="rf-btn rf-btn--secondary">RIGHT</a>
|
16
|
+
</span>
|
17
|
+
</div>
|
18
|
+
</p>
|
19
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<section class="rf-section">
|
2
|
+
<h3>Status Tooltips</h3>
|
3
|
+
<?php
|
4
|
+
$tooltip_class = "rf-tooltip--valid";
|
5
|
+
include 'partial_tooltips.php';
|
6
|
+
?>
|
7
|
+
<?php
|
8
|
+
$tooltip_class = "rf-tooltip--pending";
|
9
|
+
include 'partial_tooltips.php';
|
10
|
+
?>
|
11
|
+
<?php
|
12
|
+
$tooltip_class = "rf-tooltip--danger";
|
13
|
+
include 'partial_tooltips.php';
|
14
|
+
?>
|
15
|
+
</section>
|
16
|
+
|
17
|
+
<section class="rf-section">
|
18
|
+
<h3>Avatar Tooltips</h3>
|
19
|
+
<div class="rf-col rf-col--6 rf-col--grid">
|
20
|
+
<span class="rf-tooltip" data-toggle="tooltip" title="Github Username" data-placement="top">
|
21
|
+
<div class="rf-avatar rf-avatar--med">
|
22
|
+
<div class="rf-avatar__nametag"> Display Name </div>
|
23
|
+
<img class="rf-avatar__img" src="https://git.corp.adobe.com/avatars/u/25754?" alt="krevat">
|
24
|
+
</div>
|
25
|
+
</span>
|
26
|
+
</div>
|
27
|
+
</section>
|
data/ethosstyles.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "ethosstyles/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "ethosstyles"
|
7
|
+
s.version = Ethosstyles::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Ethos"]
|
10
|
+
s.email = ["mabell@adobe.com"]
|
11
|
+
s.homepage = "https://git.corp.adobe.com/adobe-platform/stardust"
|
12
|
+
s.summary = "A design system for Ethos"
|
13
|
+
s.description = "A design system for Ethos"
|
14
|
+
|
15
|
+
s.rubyforge_project = "ethosstyles"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
|
23
|
+
s.add_dependency('sass', '~> 3.2')
|
24
|
+
s.add_dependency('thor')
|
25
|
+
|
26
|
+
s.add_development_dependency('aruba', '~> 0.4')
|
27
|
+
s.add_development_dependency('rake')
|
28
|
+
end
|
data/lib/ethosstyles.rb
CHANGED
@@ -1,6 +1,27 @@
|
|
1
|
-
|
1
|
+
# CodeKit needs relative paths
|
2
|
+
dir = File.dirname(__FILE__)
|
3
|
+
$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
|
2
4
|
|
3
|
-
require "ethosstyles/
|
5
|
+
require "ethosstyles/generator"
|
6
|
+
|
7
|
+
unless defined?(Sass)
|
8
|
+
require 'sass'
|
9
|
+
end
|
4
10
|
|
5
11
|
module Ethosstyles
|
12
|
+
if defined?(Rails) && defined?(Rails::Engine)
|
13
|
+
class Engine < ::Rails::Engine
|
14
|
+
require 'ethosstyles/engine'
|
15
|
+
end
|
16
|
+
|
17
|
+
module Rails
|
18
|
+
class Railtie < ::Rails::Railtie
|
19
|
+
rake_tasks do
|
20
|
+
load "tasks/install.rake"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
else
|
25
|
+
Sass.load_paths << File.expand_path("../../app/assets/stylesheets", __FILE__)
|
26
|
+
end
|
6
27
|
end
|
data/lib/ethosstyles/engine.rb
CHANGED
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'ethosstyles/version'
|
2
|
+
require "fileutils"
|
3
|
+
require 'thor'
|
4
|
+
|
5
|
+
module Ethosstyles
|
6
|
+
class Generator < Thor
|
7
|
+
map ['-v', '--version'] => :version
|
8
|
+
|
9
|
+
desc 'install', 'Install Ethosstyles into your project'
|
10
|
+
method_options :path => :string, :force => :boolean
|
11
|
+
def install
|
12
|
+
if ethosstyles_files_already_exist? && !options[:force]
|
13
|
+
puts "Ethosstyles files already installed, doing nothing."
|
14
|
+
else
|
15
|
+
install_files
|
16
|
+
puts "Ethosstyles files installed to #{install_path}/"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
desc 'update', 'Update Ethosstyles'
|
21
|
+
method_options :path => :string
|
22
|
+
def update
|
23
|
+
if ethosstyles_files_already_exist?
|
24
|
+
remove_ethosstyles_directory
|
25
|
+
install_files
|
26
|
+
puts "Ethosstyles files updated."
|
27
|
+
else
|
28
|
+
puts "No existing ethosstyles installation. Doing nothing."
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
desc 'version', 'Show Ethosstyles version'
|
33
|
+
def version
|
34
|
+
say "Ethosstyles #{Ethosstyles::VERSION}"
|
35
|
+
end
|
36
|
+
|
37
|
+
private
|
38
|
+
|
39
|
+
def ethosstyles_files_already_exist?
|
40
|
+
install_path.exist?
|
41
|
+
end
|
42
|
+
|
43
|
+
def install_path
|
44
|
+
@install_path ||= if options[:path]
|
45
|
+
Pathname.new(File.join(options[:path], 'ethosstyles'))
|
46
|
+
else
|
47
|
+
Pathname.new('ethosstyles')
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def install_files
|
52
|
+
make_install_directory
|
53
|
+
copy_in_scss_files
|
54
|
+
end
|
55
|
+
|
56
|
+
def remove_ethosstyles_directory
|
57
|
+
FileUtils.rm_rf("ethosstyles")
|
58
|
+
end
|
59
|
+
|
60
|
+
def make_install_directory
|
61
|
+
FileUtils.mkdir_p(install_path)
|
62
|
+
end
|
63
|
+
|
64
|
+
def copy_in_scss_files
|
65
|
+
FileUtils.cp_r(all_stylesheets, install_path)
|
66
|
+
end
|
67
|
+
|
68
|
+
def all_stylesheets
|
69
|
+
Dir["#{stylesheets_directory}/*"]
|
70
|
+
end
|
71
|
+
|
72
|
+
def stylesheets_directory
|
73
|
+
File.join(top_level_directory, "app", "assets", "stylesheets")
|
74
|
+
end
|
75
|
+
|
76
|
+
def top_level_directory
|
77
|
+
File.dirname(File.dirname(File.dirname(__FILE__)))
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
data/lib/ethosstyles/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ethosstyles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -25,27 +25,63 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: aruba
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.4'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
|
54
|
+
version: '0.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: A design system for Ethos
|
42
70
|
email:
|
43
71
|
- mabell@adobe.com
|
44
72
|
executables: []
|
45
73
|
extensions: []
|
46
74
|
extra_rdoc_files: []
|
47
75
|
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- Dockerfile
|
78
|
+
- Gemfile
|
79
|
+
- Makefile
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- app/assets/images/loader.svg
|
48
83
|
- app/assets/stylesheets/_ethosstyles.scss
|
84
|
+
- app/assets/stylesheets/components/_avatars.scss
|
49
85
|
- app/assets/stylesheets/components/_base.scss
|
50
86
|
- app/assets/stylesheets/components/_blurbs.scss
|
51
87
|
- app/assets/stylesheets/components/_buttons.scss
|
@@ -66,7 +102,7 @@ files:
|
|
66
102
|
- app/assets/stylesheets/components/_sliders.scss
|
67
103
|
- app/assets/stylesheets/components/_tables.scss
|
68
104
|
- app/assets/stylesheets/components/_timestamp.scss
|
69
|
-
- app/assets/stylesheets/components/
|
105
|
+
- app/assets/stylesheets/components/_tooltips.scss
|
70
106
|
- app/assets/stylesheets/components/_well.scss
|
71
107
|
- app/assets/stylesheets/lib/_normalize.scss
|
72
108
|
- app/assets/stylesheets/lib/fontawesome/scss/_variables.scss
|
@@ -81,8 +117,23 @@ files:
|
|
81
117
|
- app/assets/stylesheets/utilities/_mixins.scss
|
82
118
|
- app/assets/stylesheets/utilities/_shame.scss
|
83
119
|
- app/assets/stylesheets/utilities/_utilities.scss
|
120
|
+
- app/views/avatars.php
|
121
|
+
- app/views/buttons.html
|
122
|
+
- app/views/buttons.php
|
123
|
+
- app/views/favicon.ico
|
124
|
+
- app/views/icons.php
|
125
|
+
- app/views/index.php
|
126
|
+
- app/views/list-groups.php
|
127
|
+
- app/views/modal_partial.php
|
128
|
+
- app/views/modals.php
|
129
|
+
- app/views/partial_avatars.php
|
130
|
+
- app/views/partial_icons.php
|
131
|
+
- app/views/partial_tooltips.php
|
132
|
+
- app/views/tooltips.php
|
133
|
+
- ethosstyles.gemspec
|
84
134
|
- lib/ethosstyles.rb
|
85
135
|
- lib/ethosstyles/engine.rb
|
136
|
+
- lib/ethosstyles/generator.rb
|
86
137
|
- lib/ethosstyles/version.rb
|
87
138
|
homepage: https://git.corp.adobe.com/adobe-platform/stardust
|
88
139
|
licenses: []
|
@@ -102,8 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
153
|
- !ruby/object:Gem::Version
|
103
154
|
version: '0'
|
104
155
|
requirements: []
|
105
|
-
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
156
|
+
rubyforge_project: ethosstyles
|
157
|
+
rubygems_version: 2.5.2
|
107
158
|
signing_key:
|
108
159
|
specification_version: 4
|
109
160
|
summary: A design system for Ethos
|
@@ -1,23 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// TOOLTIP
|
3
|
-
//
|
4
|
-
// Format:
|
5
|
-
// <span class="rf-tooltip__trigger"
|
6
|
-
// data-toggle="tooltip"
|
7
|
-
// data-placement="top"
|
8
|
-
// title="This is the content of the tooltip."></span>
|
9
|
-
//
|
10
|
-
|
11
|
-
.tooltip {
|
12
|
-
white-space: normal;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rf-tooltip__trigger {
|
16
|
-
color: $blue-bright;
|
17
|
-
font-family: $font-icon-g;
|
18
|
-
font-size: 12px;
|
19
|
-
|
20
|
-
&:before {
|
21
|
-
content: "\e085";
|
22
|
-
}
|
23
|
-
}
|