compass_radix 2.0.1 → 3.0.0

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/stylesheets/_compass_radix.scss +3 -5
  3. data/stylesheets/compass_radix/_comment.scss +1 -1
  4. data/stylesheets/compass_radix/_form.scss +117 -64
  5. data/stylesheets/compass_radix/_layout.scss +3 -27
  6. data/stylesheets/compass_radix/_menu.scss +0 -187
  7. data/stylesheets/compass_radix/_mixin.scss +45 -45
  8. data/stylesheets/compass_radix/_node.scss +39 -41
  9. data/stylesheets/compass_radix/_panel.scss +17 -6
  10. data/stylesheets/compass_radix/_structure.scss +198 -50
  11. data/stylesheets/compass_radix/_variable.scss +523 -179
  12. data/stylesheets/fontawesome/_bordered-pulled.scss +16 -0
  13. data/stylesheets/fontawesome/_core.scss +9 -126
  14. data/stylesheets/fontawesome/_extras.scss +9 -58
  15. data/stylesheets/fontawesome/_fixed-width.scss +6 -0
  16. data/stylesheets/fontawesome/_icons.scss +410 -379
  17. data/stylesheets/fontawesome/_larger.scss +13 -0
  18. data/stylesheets/fontawesome/_list.scss +19 -0
  19. data/stylesheets/fontawesome/_mixins.scss +14 -42
  20. data/stylesheets/fontawesome/_path.scss +6 -6
  21. data/stylesheets/fontawesome/_rotated-flipped.scss +9 -0
  22. data/stylesheets/fontawesome/_spinning.scss +30 -0
  23. data/stylesheets/fontawesome/_stacked.scss +20 -0
  24. data/stylesheets/fontawesome/_variables.scss +377 -730
  25. data/stylesheets/fontawesome/font-awesome.scss +9 -25
  26. data/templates/project/_compass_radix.scss +0 -1
  27. data/templates/project/manifest.rb +0 -1
  28. metadata +12 -10
  29. data/stylesheets/_compass_radix_responsive.scss +0 -13
  30. data/stylesheets/compass_radix/_responsive_form.scss +0 -80
  31. data/stylesheets/compass_radix/_responsive_menu.scss +0 -75
  32. data/stylesheets/fontawesome/_bootstrap.scss +0 -84
  33. data/stylesheets/fontawesome/font-awesome-ie7.scss +0 -1953
@@ -14,8 +14,8 @@
14
14
  min-height: 20px;
15
15
  padding: 19px;
16
16
  margin-bottom: 20px;
17
- background-color: $wellBackground;
18
- border: 1px solid darken($wellBackground, 7%);
17
+ background-color: $well-bg;
18
+ border: 1px solid darken($well-bg, 7%);
19
19
  @include border-radius(4px);
20
20
  @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
21
21
  blockquote {
@@ -26,52 +26,52 @@
26
26
 
27
27
  @mixin btn() {
28
28
  display: inline-block;
29
- @include ctb-ie7-inline-block();
30
- padding: 4px 12px;
31
- margin-bottom: 0; // For input.btn
32
- font-size: $baseFontSize;
33
- line-height: $baseLineHeight;
34
- text-align: center;
35
- vertical-align: middle;
36
- cursor: pointer;
37
- @include ctb-buttonBackground($btnBackground, $btnBackgroundHighlight, $grayDark, 0 1px 1px rgba(255,255,255,.75));
38
- border: 1px solid $btnBorder;
39
- *border: 0; // Remove the border to prevent IE7's black border on input:focus
40
- border-bottom-color: darken($btnBorder, 10%);
41
- @include ctb-border-radius($baseBorderRadius);
42
- @include ctb-ie7-restore-left-whitespace(); // Give IE7 some love
43
- @include ctb-box-shadow(#{inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)});
44
-
45
- // Hover state
46
- &:hover {
47
- color: $grayDark;
48
- text-decoration: none;
49
- background-position: 0 -15px;
29
+ }
50
30
 
51
- // transition is only when going to hover, otherwise the background
52
- // behind the gradient (there for IE<=9 fallback) gets mismatched
53
- @include ctb-transition(background-position .1s linear);
31
+ /**
32
+ * Responsive mixin.
33
+ *
34
+ * - phone
35
+ * - tablet-portrait
36
+ * - tablet-landscape-desktop
37
+ * - large-desktop
38
+ *
39
+ * Additional parameters for tagetting retina and non-retina
40
+ * devices
41
+ *
42
+ * - retina
43
+ * - non-retina
44
+ *
45
+ * Moreover, a specific value in px can be passed which is
46
+ * used to generate a max-width media query.
47
+ */
48
+ @mixin respond-to($media) {
49
+ /* Landscape phones and down */
50
+ @if $media == phone {
51
+ @media (max-width: 480px) { @content; }
54
52
  }
55
-
56
- // Focus state for keyboard and accessibility
57
- &:focus {
58
- @include ctb-tab-focus();
53
+ /* Landscape phone to portrait tablet */
54
+ @else if $media == tablet-portrait {
55
+ @media (max-width: 767px) {@content; }
59
56
  }
60
-
61
- // Active state
62
- &.active,
63
- &:active {
64
- background-image: none;
65
- outline: 0;
66
- @include ctb-box-shadow(#{inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)});
57
+ /* Portrait tablet to landscape and desktop */
58
+ @else if $media == tablet-landscape-desktop {
59
+ @media (min-width: 768px) and (max-width: 979px) { @content; }
67
60
  }
68
-
69
- // Disabled state
70
- &.disabled,
71
- &[disabled] {
72
- cursor: default;
73
- background-image: none;
74
- @include ctb-opacity(65);
75
- @include ctb-box-shadow(none);
61
+ /* Large desktop */
62
+ @else if $media == large-desktop {
63
+ @media (min-width: 1200px) { @content; }
64
+ }
65
+ // Non-Retina
66
+ @else if $media == non-retina {
67
+ @media screen and (-webkit-max-device-pixel-ratio: 1) { @content; }
68
+ }
69
+ // Retina Only
70
+ @else if $media == retina {
71
+ @media screen and (-webkit-min-device-pixel-ratio: 2) { @content; }
76
72
  }
73
+ // Specific max width
74
+ @else {
75
+ @media only screen and (max-width: #{$media}px) { @content; }
76
+ }
77
77
  }
@@ -5,42 +5,6 @@
5
5
  // Miscellaneous
6
6
  // --------------------------------------------------
7
7
  .field {
8
- &.field-type-image {
9
- .field-item {
10
- border: 1px solid #DDD;
11
- padding: 5px;
12
- background: #FFFFFF;
13
- display: table;
14
- @include border-radius(4px 4px 4px 4px);
15
- @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.055));
16
- @include clearfix();
17
- margin-bottom: 10px;
18
- img {
19
- // width: 100%;
20
- // max-width: 100%;
21
- margin: 0;
22
- padding: 0;
23
- }
24
- }
25
- }
26
- &.field-type-long-text {
27
- img {
28
- border: 1px solid #DDD;
29
- padding: 5px;
30
- margin: 0;
31
- float: none !important;
32
- width: 100%;
33
- background: #FFFFFF;
34
- @include border-radius(4px 4px 4px 4px);
35
- @include box-shadow(0 1px 3px rgba(0, 0, 0, 0.055));
36
- &[style*="float:left"], &[style*="float: left"] {
37
- margin: 5px 15px 15px 0px;
38
- }
39
- &[style*="float:right"], &[style*="float: right"] {
40
- margin: 5px 0px 15px 15px;
41
- }
42
- }
43
- }
44
8
  img.panopoly-image-full,
45
9
  img.panopoly-image-half,
46
10
  img.panopoly-image-quarter {
@@ -61,11 +25,45 @@
61
25
  }
62
26
  }
63
27
 
64
- .field {
65
- ul, ol {
66
- list-style: inherit;
28
+ // Panopoly News
29
+ // --------------------------------------------------
30
+ .node-panopoly-page {
31
+ // Teaser
32
+ &.node-teaser {
33
+ .panel-pane {
34
+ margin: 0 0 10px 260px;
35
+ }
36
+ .pane-node-field-featured-image {
37
+ float: left;
38
+ margin-left: 0;
39
+ }
67
40
  }
68
- ol {
69
- list-style: decimal;
41
+ @media (max-width: $screen-xs-max) {
42
+ .panel-pane {
43
+ float: none !important;
44
+ margin: 0 0 10px !important;
45
+ }
46
+ }
47
+ }
48
+
49
+
50
+ // Panopoly News
51
+ // --------------------------------------------------
52
+ .node-panopoly-news-article {
53
+ // Teaser
54
+ &.node-teaser {
55
+ .panel-pane {
56
+ margin: 0 0 10px 260px;
57
+ }
58
+ .pane-node-field-featured-image {
59
+ float: left;
60
+ margin-left: 0;
61
+ }
62
+ }
63
+ @media (max-width: $screen-xs-max) {
64
+ .panel-pane {
65
+ float: none !important;
66
+ margin: 0 0 10px !important;
67
+ }
70
68
  }
71
69
  }
@@ -9,10 +9,17 @@
9
9
  margin-bottom: 20px;
10
10
  }
11
11
  }
12
+ .panel-flexible .panel-separator {
13
+ display: none;
14
+ }
12
15
 
13
16
  // IPE
14
17
  // --------------------------------------------------
15
- #panels-ipe-control-container {
18
+ div#panels-ipe-control-container {
19
+ width: auto;
20
+ left: 0;
21
+ right: 0;
22
+ @include box-shadow(none);
16
23
  .panels-ipe-button-container {
17
24
  text-align: center;
18
25
  .panels-ipe-pseudobutton-container {
@@ -41,9 +48,13 @@
41
48
  }
42
49
  }
43
50
 
44
- // General
45
- // --------------------------------------------------
46
- .modal-content .form-actions {
47
- padding-right: 0;
48
- padding-left: 0;
51
+ ul.panels-ipe-linkbar {
52
+ list-style: none outside none;
53
+ > li {
54
+ display: inline-block;
55
+ margin: 0 0 0 5px;
56
+ a {
57
+ margin: 0 !important;
58
+ }
59
+ }
49
60
  }
@@ -27,6 +27,25 @@
27
27
  }
28
28
  }
29
29
 
30
+ // Tabs
31
+ // --------------------------------------------------
32
+ .tabs, .nav-tabs {
33
+ margin: 0 0 18px;
34
+ }
35
+
36
+ // Action Links
37
+ // --------------------------------------------------
38
+ .action-links {
39
+ list-style: none outside none;
40
+ margin: 0 0 18px;
41
+ padding: 0;
42
+ @include clearfix();
43
+ > li {
44
+ float: left;
45
+ margin: 0 10px 0 0;
46
+ }
47
+ }
48
+
30
49
  // Vertical Tabs
31
50
  // --------------------------------------------------
32
51
  div.vertical-tabs {
@@ -53,12 +72,12 @@ div.vertical-tabs {
53
72
  outline: none !important;
54
73
  @include border-radius(4px 0 0 4px);
55
74
  &:hover {
56
- color: $white;
57
- background: $linkColor;
75
+ color: #fff;
76
+ background: $link-color;
58
77
  text-decoration: none;
59
78
  strong {
60
79
  text-decoration: none;
61
- color: $white;
80
+ color: #fff;
62
81
  }
63
82
  }
64
83
  }
@@ -69,37 +88,7 @@ div.vertical-tabs {
69
88
  }
70
89
  .form-type-textfield input {
71
90
  width: 90%;
72
- -moz-box-sizing: content-box;
73
- -webkit-box-sizing: content-box;
74
- box-sizing: content-box;
75
- }
76
- }
77
-
78
- // Messages
79
- // --------------------------------------------------
80
- div.messages {
81
- padding: 8px 35px 8px 14px;
82
- margin: 0 0 18px;
83
- color: #c09853;
84
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
85
- background-color: #fcf8e3;
86
- background-image: none;
87
- border: 1px solid #fbeed5;
88
- @include border-radius(4px);
89
- &.status {
90
- color: #468847;
91
- background-color: #dff0d8;
92
- border-color: #d6e9c6;
93
- }
94
- &.error {
95
- color: #b94a48;
96
- background-color: #f2dede;
97
- border-color: #eed3d7;
98
- }
99
- &.info {
100
- color: #3a87ad;
101
- background-color: #d9edf7;
102
- border-color: #bce8f1;
91
+ @include box-sizing(content-box);
103
92
  }
104
93
  }
105
94
 
@@ -107,15 +96,15 @@ div.messages {
107
96
  // --------------------------------------------------
108
97
  table {
109
98
  width: 100%;
110
- margin-bottom: $baseLineHeight;
99
+ margin-bottom: $line-height-base;
111
100
  // Cells
112
101
  th,
113
102
  td {
114
103
  padding: 8px;
115
- line-height: $baseLineHeight;
104
+ line-height: $line-height-base;
116
105
  text-align: left;
117
106
  vertical-align: top;
118
- border-top: 1px solid $tableBorder;
107
+ border-top: 1px solid $table-border-color;
119
108
  &.checkbox {
120
109
  text-align: center;
121
110
  input {
@@ -142,13 +131,15 @@ table {
142
131
  }
143
132
  // Account for multiple tbody instances
144
133
  tbody + tbody {
145
- border-top: 2px solid $tableBorder;
134
+ border-top: 2px solid $table-border-color;
146
135
  }
147
136
  }
148
137
 
149
138
  // Links
150
139
  // --------------------------------------------------
151
140
  ul.links {
141
+ padding: 0;
142
+ list-style: none outside none;
152
143
  &.inline {
153
144
  margin: 0;
154
145
  li {
@@ -181,7 +172,7 @@ ul.links {
181
172
  bottom: 0;
182
173
  left: 0;
183
174
  width: 100%;
184
- color: $white;
175
+ color: #fff;
185
176
  .field-slideshow-caption-text {
186
177
  display: block;
187
178
  padding: 20px;
@@ -204,7 +195,7 @@ ul.links {
204
195
  font-size: 60px;
205
196
  font-weight: 100;
206
197
  line-height: 30px;
207
- color: $white;
198
+ color: #fff;
208
199
  text-align: center;
209
200
  background: #222222;
210
201
  border: 3px solid #ffffff;
@@ -216,7 +207,7 @@ ul.links {
216
207
  left: auto;
217
208
  }
218
209
  &:hover {
219
- color: $white;
210
+ color: #fff;
220
211
  text-decoration: none;
221
212
  @include opacity(0.9);
222
213
  }
@@ -237,17 +228,17 @@ ul.links {
237
228
  width: 25px;
238
229
  height: 25px;
239
230
  line-height: 25px;
240
- color: $white;
231
+ color: #fff;
241
232
  text-decoration: none;
242
233
  @include border-radius(25px);
243
234
  @include opacity(0.5);
244
235
  &:hover {
245
- color: $white;
236
+ color: #fff;
246
237
  text-decoration: none;
247
238
  @include opacity(0.9);
248
239
  }
249
240
  &.activeSlide {
250
- background: $linkColor;
241
+ background: $link-color;
251
242
  @include opacity(0.9);
252
243
  }
253
244
  }
@@ -271,16 +262,24 @@ ul.links {
271
262
  .filled {
272
263
  height: 40px;
273
264
  @include border-radius(4px);
274
- @include ctb-gradient-striped($linkColor);
265
+ @include gradient-striped($link-color);
275
266
  @include background-size(40px 40px);
276
267
  @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
277
268
  @include box-sizing(border-box);
278
269
  @include transition(width .6s ease);
279
- -webkit-animation: progress-bar-stripes 2s linear infinite;
280
- -moz-animation: progress-bar-stripes 2s linear infinite;
281
- -ms-animation: progress-bar-stripes 2s linear infinite;
282
- -o-animation: progress-bar-stripes 2s linear infinite;
283
- animation: progress-bar-stripes 2s linear infinite;
270
+ @include animation(progress-bar-stripes 2s linear infinite);
271
+ }
272
+ }
273
+ }
274
+
275
+ // Pager
276
+ // --------------------------------------------------
277
+ .item-list {
278
+ ul.pagination {
279
+ margin: 20px 0;
280
+ > li {
281
+ margin: 0;
282
+ display: inline-block;
284
283
  }
285
284
  }
286
285
  }
@@ -299,3 +298,152 @@ ul.dropdown-menu,
299
298
  ul.dropdown-menu li {
300
299
  list-style: none outside none !important;
301
300
  }
301
+
302
+ // Drupal Navbar
303
+ // --------------------------------------------------
304
+ .drupal-navbar .navbar-bar,
305
+ .drupal-navbar .navbar-tray-vertical > .navbar-lining:before,
306
+ .drupal-navbar .navbar-tray-horizontal {
307
+ @include box-shadow(none);
308
+ }
309
+ .drupal-navbar .navbar-tray-vertical,
310
+ .drupal-navbar .navbar-tray-vertical > .navbar-lining:before {
311
+ bottom: 0;
312
+ width: 240px !important;
313
+ }
314
+ @media only screen and (min-width: 38.125em) {
315
+ body.navbar-tray-open.navbar-vertical {
316
+ margin-left: 240px !important;
317
+ }
318
+ }
319
+
320
+ // Navbar Styling for Panopoly.
321
+ // --------------------------------------------------
322
+ a#navbar-link-admin-panopoly {
323
+ &:before {
324
+ background-image: url("../images/icon/icon-panopoly.png");
325
+ }
326
+ &.active:before {
327
+ background-image: url("../images/icon/icon-panopoly-active.png");
328
+ }
329
+ }
330
+ a#navbar-link-admin-apps {
331
+ &:before {
332
+ background-image: url("../images/icon/icon-apps.png");
333
+ }
334
+ &.active:before {
335
+ background-image: url("../images/icon/icon-apps-active.png");
336
+ }
337
+ }
338
+
339
+ // Ctools Modal
340
+ // --------------------------------------------------
341
+ body.ctools-modal-open {
342
+ overflow: hidden;
343
+ }
344
+ #modalContent {
345
+ .modal-content {
346
+ width: 100%;
347
+ overflow: hidden;
348
+ @include box-shadow(none !important);
349
+ }
350
+ #modal-content {
351
+ overflow: auto;
352
+ width: 100% !important;
353
+ background: white;
354
+ }
355
+ .panels-add-content-modal {
356
+ background: none;
357
+ padding: 0;
358
+ height: 100%;
359
+ margin: -20px -20px 0;
360
+ width: 100%;
361
+ position: absolute;
362
+ }
363
+ }
364
+ #modalContent {
365
+ .panels-section-columns,
366
+ .panels-categories-description {
367
+ border: none;
368
+ }
369
+ .panels-section-column-categories {
370
+ margin-left: 0;
371
+ border-right: 1px solid #ccc;
372
+ height: 100%;
373
+ background: white;
374
+ overflow: auto;
375
+ padding-bottom: 20px;
376
+ .btn {
377
+ border: 1px solid $gray-light !important;
378
+ line-height: inherit;
379
+ margin: 0;
380
+ text-align: left;
381
+ }
382
+ }
383
+ .panels-categories-box {
384
+ border: 0;
385
+ a.btn {
386
+ padding: 5px 10px;
387
+ }
388
+ a.active {
389
+ background: $gray-lighter;
390
+ @include box-shadow(none);
391
+ }
392
+ }
393
+ .panels-root-content-box {
394
+ a.btn {
395
+ padding: 5px 10px;
396
+ }
397
+ }
398
+ .panels-categories-description {
399
+ padding: 20px;
400
+ }
401
+ .panels-section-columns {
402
+ padding-bottom: 20px;
403
+ }
404
+ }
405
+ #modal-content fieldset.widget-preview {
406
+ margin-top: 18px;
407
+ margin-bottom: 0;
408
+ position: static;
409
+ border: 1px solid #ddd;
410
+ .panel-heading {
411
+ position: relative;
412
+ .btn {
413
+ position: absolute;
414
+ right: 10px;
415
+ top: 5px;
416
+ }
417
+ }
418
+ }
419
+ #modal-content .ctools-auto-submit-full-form {
420
+ fieldset {
421
+ width: 48%;
422
+ display: block !important;
423
+ fieldset {
424
+ width: 100%;
425
+ }
426
+ &.widget-preview-single {
427
+ float: right;
428
+ margin-left: 1em;
429
+ margin-top: 0;
430
+ width: 48%;
431
+ max-width: 48% !important;
432
+ }
433
+ }
434
+ .form-actions {
435
+ float: right;
436
+ clear: right;
437
+ width: 48%;
438
+ max-width: 48%;
439
+ text-align: right;
440
+ }
441
+ }
442
+
443
+ // Custom modal form overrides.
444
+ #modal-content .form-item-view-settings {
445
+ display: block;
446
+ }
447
+ #modal-content .form-item-exposed-use-pager {
448
+ display: block;
449
+ }