ethosstyles 0.1.15 → 0.1.16

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +87 -0
  3. data/app/assets/stylesheets/_ethosstyles.scss +2 -0
  4. data/app/assets/stylesheets/components/_base.scss +4 -0
  5. data/app/assets/stylesheets/components/_blurbs.scss +96 -5
  6. data/app/assets/stylesheets/components/_buttons.scss +3 -2
  7. data/app/assets/stylesheets/components/_forms.scss +128 -3
  8. data/app/assets/stylesheets/components/_grid.scss +36 -3
  9. data/app/assets/stylesheets/components/_highlights.scss +17 -0
  10. data/app/assets/stylesheets/components/_icons.scss +1 -0
  11. data/app/assets/stylesheets/components/_list-groups.scss +32 -0
  12. data/app/assets/stylesheets/components/_lists.scss +28 -7
  13. data/app/assets/stylesheets/components/_logs.scss +15 -0
  14. data/app/assets/stylesheets/components/_notes.scss +43 -0
  15. data/app/assets/stylesheets/components/_notices.scss +19 -0
  16. data/app/assets/stylesheets/components/_panels.scss +35 -1
  17. data/app/assets/stylesheets/components/_tables.scss +68 -13
  18. data/app/assets/stylesheets/components/_tooltips.scss +18 -21
  19. data/app/assets/stylesheets/pages/_styleguide.scss +6 -0
  20. data/app/assets/stylesheets/utilities/_mixins.scss +7 -33
  21. data/app/assets/stylesheets/utilities/_utilities.scss +10 -1
  22. data/app/views/blurbs.php +31 -0
  23. data/app/views/forms.php +68 -0
  24. data/app/views/grid.php +19 -0
  25. data/app/views/index.php +56 -2
  26. data/app/views/list-groups.php +69 -8
  27. data/app/views/logs.php +12 -0
  28. data/app/views/notes.php +10 -0
  29. data/app/views/notices.php +11 -0
  30. data/app/views/panels.php +8 -0
  31. data/app/views/partial_tooltips.php +6 -16
  32. data/app/views/tables.php +102 -0
  33. data/app/views/tooltips.php +6 -10
  34. data/lib/ethosstyles/version.rb +1 -1
  35. metadata +13 -3
@@ -0,0 +1,12 @@
1
+ <p>Themed expandable area.</p>
2
+
3
+ <div id="build-logs-#" class="rf-logs js-project-logs">
4
+ <a class="rf-btn rf-btn--secondary rf-logs__btn" href="#">scroll to bottom</a>
5
+ <pre class="rf-logs__pre " >
6
+ -- Lorem ipsum dolor sit amet, consectetur adipiscing elit...<br>
7
+ -> Maecenas luctus ac tellus at faucibus...<br>
8
+ == Proin maximus fringilla erat, nec pharetra felis. Donec cursus condimentum velit quis volutpat. <br>
9
+ -- Quisque commodo sem vel est mattis aliquet. Fusce lobortis finibus metus, ut gravida justo elementum eget. Phasellus ac est et est tincidunt dapibus a in augue. <br >
10
+ == Donec auctor vulputate volutpat. <br>Ut non turpis et dui volutpat lacinia imperdiet ut mi. Donec nec tempor dolor. <br>
11
+ </pre>
12
+ </div>
@@ -0,0 +1,10 @@
1
+ <section class="rf-section">
2
+
3
+ <p>Notes should only be used to add numbers to existing elements.</p>
4
+
5
+ <h3><span class="rf-note rf-note--ongoing">3</span>H3 example</h3>
6
+
7
+ <a href="#" class="rf-btn rf-btn--primary"><span class="rf-note rf-note--error">1</span>Primary</a>
8
+ <a href="#" class="rf-btn rf-btn--secondary"><span class="rf-note rf-note--neutral">5</span>Secondary</a>
9
+
10
+ </section>
@@ -0,0 +1,11 @@
1
+ <div class="rf-notice rf-notice--info">
2
+ <p>
3
+ This is an <strong>INFO</strong> notice, typically these go at the bottom of the page.
4
+ </div>
5
+ </p>
6
+
7
+ <div class="rf-notice rf-notice--error rf-u-mb rf-u-mt">
8
+ <p>
9
+ This is an <strong>ERROR</strong> notice, typically these go at the bottom of the page.
10
+ </p>
11
+ </div>
@@ -0,0 +1,8 @@
1
+ <div class="rf-panel">
2
+ <div class="rf-panel__heading">
3
+ <h3>Panel Header</h3>
4
+ </div>
5
+ <div class="rf-panel__body">
6
+ <p>This is where you would put whatever you wanted to display. This is great for displaying expandable content like forms, logs, other in-depth info</p>
7
+ </div>
8
+ </div>
@@ -1,19 +1,9 @@
1
1
  <div class="rf-col rf-col--6 rf-col--grid">
2
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>
3
+ <div class="rf-btn-set">
4
+ <a class="rf-btn rf-btn--secondary" data-tooltip-custom-classes="rf-tooltip rf-tooltip--small <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="left">LEFT</a>
5
+ <a class="rf-btn rf-btn--secondary" data-tooltip-custom-classes="rf-tooltip <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="top">TOP</a>
6
+ <a class="rf-btn rf-btn--secondary" data-tooltip-custom-classes="rf-tooltip <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="bottom">BOTTOM</a>
7
+ <a class="rf-btn rf-btn--secondary" data-tooltip-custom-classes="rf-tooltip rf-tooltip--small <?php echo $tooltip_class ?>" data-toggle="tooltip" title="<?php echo $tooltip_class ?>" data-placement="right">RIGHT</a>
8
+ </div>
19
9
  </div>
@@ -0,0 +1,102 @@
1
+ <p>Notes</p>
2
+ <ul>
3
+ <li>Columnn widths are equal by default. Set column widths in header with <code>rf-col--*</code></li>
4
+ </ul>
5
+
6
+ <div class="rf-section">
7
+ <h2 class="rf-section__headline">Normal Table</h2>
8
+ <p>Note: Cells padded by default</p>
9
+ <table class="rf-table rf-col--6">
10
+ <tr class="rf-table__row rf-table__row--header">
11
+ <th class="rf-table__th">Column 1 Header</th>
12
+ <th class="rf-table__th">Column 2 Header</th>
13
+ <th class="rf-table__th">Column 3 Header</th>
14
+ </tr>
15
+ <tbody class="rf-table__body">
16
+ <tr class="rf-table__row">
17
+ <td class="rf-table__td">Row 1 Column 1</td>
18
+ <td class="rf-table__td">Row 1 Column 2</td>
19
+ <td class="rf-table__td">Row 1 Column 3</td>
20
+ </td>
21
+ </tr>
22
+ <tr class="rf-table__row">
23
+ <td class="rf-table__td">Row 2 Column 1</td>
24
+ <td class="rf-table__td">Row 2 Column 2</td>
25
+ <td class="rf-table__td">Row 2 Column 3</td>
26
+ </tr>
27
+ </tbody>
28
+ </table>
29
+ </div>
30
+
31
+ <div class="rf-section">
32
+ <h2 class="rf-section__headline">Condensed Table</h2>
33
+ <p>Note: condensed tables don't have padding</p>
34
+ <table class="rf-table rf-table--condensed">
35
+ <tr class="rf-table__row rf-table__row--header">
36
+ <th class="rf-table__th">Column 1 Header</th>
37
+ <th class="rf-table__th">Column 2 Header</th>
38
+ <th class="rf-table__th">Column 3 Header</th>
39
+ </tr>
40
+ <tbody class="rf-table__body">
41
+ <tr class="rf-table__row">
42
+ <td class="rf-table__td">Row 1 Column 1</td>
43
+ <td class="rf-table__td">Row 1 Column 2</td>
44
+ <td class="rf-table__td">Row 1 Column 3</td>
45
+ </td>
46
+ </tr>
47
+ <tr class="rf-table__row">
48
+ <td class="rf-table__td">Row 2 Column 1</td>
49
+ <td class="rf-table__td">Row 2 Column 2</td>
50
+ <td class="rf-table__td">Row 2 Column 3</td>
51
+ </tr>
52
+ </tbody>
53
+ </table>
54
+ </div>
55
+
56
+ <div class="rf-section">
57
+ <h2 class="rf-section__headline">Complex Table</h2>
58
+ <p>Note: Tables can be used to present lots of data. Including forms and lists</p>
59
+ <table class="rf-table">
60
+ <tr class="rf-table__row rf-table__row--header">
61
+ <th class="rf-table__th rf-col--2">Column 1 Header</th>
62
+ <th class="rf-table__th rf-col--4">Column 2 Header</th>
63
+ <th class="rf-table__th rf-col--3">Column 3 Header</th>
64
+ <th class="rf-table__th rf-col--actions rf-col--3">Actions</th>
65
+ </tr>
66
+ <tbody class="rf-table__body">
67
+ <tr class="rf-table__row rf-table__row--error">
68
+ <td class="rf-table__td">
69
+ Row heights scale depending on the size of the tallest cell.
70
+ The taller the cell, the taller the row.
71
+ </td>
72
+ <td class="rf-table__td">Row 1 Column 2</td>
73
+ <td class="rf-table__td">Row 1 Column 3</td>
74
+ <td class="rf-table__td rf-table__col--actions">
75
+ <input class="rf-btn rf-btn--primary rf-btn" type="submit" value="Delete">
76
+ <input class="rf-btn rf-btn--secondary rf-btn" type="submit" value="Submit">
77
+ </td>
78
+ </tr>
79
+ <tr class="rf-table__row rf-table__row--success">
80
+ <td class="rf-table__td">Content is pulled left by default. Use following classes to override.</td>
81
+ <td class="rf-table__td rf-table__col--centered"><code>rf-table__col--centered</code></td>
82
+ <td class="rf-table__td rf-table__col--right"><code>rf-table__col--right</code></td>
83
+ <td class="rf-table__td rf-table__col--actions">
84
+ <input class="rf-btn rf-btn--primary rf-btn" type="submit" value="Delete">
85
+ <input class="rf-btn rf-btn--secondary rf-btn" type="submit" value="Submit">
86
+ </td>
87
+ </tr>
88
+ <tr class="rf-table__row rf-table__row--aligntop">
89
+ <td class="rf-table__td">
90
+ By default content is centered vertically. This can be changed to pull content to the top of the cells.
91
+ This is useful when one cell is much taller than all the others, such as nested tables.
92
+ </td>
93
+ <td class="rf-table__td"><code>rf-table__row--aligntop</code></td>
94
+ <td class="rf-table__td">Content now at top of cell</td>
95
+ <td class="rf-table__td rf-table__col--actions">
96
+ <input class="rf-btn rf-btn--primary rf-btn" type="submit" value="Delete">
97
+ <input class="rf-btn rf-btn--secondary rf-btn" type="submit" value="Submit">
98
+ </td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
102
+ </div>
@@ -1,11 +1,7 @@
1
1
  <section class="rf-section">
2
2
  <h3>Status Tooltips</h3>
3
3
  <?php
4
- $tooltip_class = "rf-tooltip--valid";
5
- include 'partial_tooltips.php';
6
- ?>
7
- <?php
8
- $tooltip_class = "rf-tooltip--pending";
4
+ $tooltip_class = "rf-tooltip--success";
9
5
  include 'partial_tooltips.php';
10
6
  ?>
11
7
  <?php
@@ -17,11 +13,11 @@
17
13
  <section class="rf-section">
18
14
  <h3>Avatar Tooltips</h3>
19
15
  <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">
16
+ <div class="rf-avatar rf-avatar--med">
17
+ <div class="rf-avatar__nametag">
18
+ Display Name
24
19
  </div>
25
- </span>
20
+ <img class="rf-avatar__img" src="https://git.corp.adobe.com/avatars/u/25754?" alt="krevat" data-toggle="tooltip" data-tooltip-custom-classes="rf-tooltip" title="Github Username" data-placement="top">
21
+ </div>
26
22
  </div>
27
23
  </section>
@@ -1,3 +1,3 @@
1
1
  module Ethosstyles
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
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.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-25 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -88,12 +88,14 @@ files:
88
88
  - app/assets/stylesheets/components/_checks.scss
89
89
  - app/assets/stylesheets/components/_forms.scss
90
90
  - app/assets/stylesheets/components/_grid.scss
91
+ - app/assets/stylesheets/components/_highlights.scss
91
92
  - app/assets/stylesheets/components/_icons.scss
92
93
  - app/assets/stylesheets/components/_links.scss
93
94
  - app/assets/stylesheets/components/_list-groups.scss
94
95
  - app/assets/stylesheets/components/_lists.scss
95
96
  - app/assets/stylesheets/components/_logs.scss
96
97
  - app/assets/stylesheets/components/_modal.scss
98
+ - app/assets/stylesheets/components/_notes.scss
97
99
  - app/assets/stylesheets/components/_notices.scss
98
100
  - app/assets/stylesheets/components/_panels.scss
99
101
  - app/assets/stylesheets/components/_pills.scss
@@ -118,17 +120,25 @@ files:
118
120
  - app/assets/stylesheets/utilities/_shame.scss
119
121
  - app/assets/stylesheets/utilities/_utilities.scss
120
122
  - app/views/avatars.php
123
+ - app/views/blurbs.php
121
124
  - app/views/buttons.html
122
125
  - app/views/buttons.php
123
126
  - app/views/favicon.ico
127
+ - app/views/forms.php
128
+ - app/views/grid.php
124
129
  - app/views/icons.php
125
130
  - app/views/index.php
126
131
  - app/views/list-groups.php
132
+ - app/views/logs.php
127
133
  - app/views/modal_partial.php
128
134
  - app/views/modals.php
135
+ - app/views/notes.php
136
+ - app/views/notices.php
137
+ - app/views/panels.php
129
138
  - app/views/partial_avatars.php
130
139
  - app/views/partial_icons.php
131
140
  - app/views/partial_tooltips.php
141
+ - app/views/tables.php
132
142
  - app/views/tooltips.php
133
143
  - ethosstyles.gemspec
134
144
  - lib/ethosstyles.rb
@@ -154,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
164
  version: '0'
155
165
  requirements: []
156
166
  rubyforge_project: ethosstyles
157
- rubygems_version: 2.5.2
167
+ rubygems_version: 2.5.2.3
158
168
  signing_key:
159
169
  specification_version: 4
160
170
  summary: A design system for Ethos