|
108 | 108 | * } |
109 | 109 | * } |
110 | 110 | */ |
| 111 | +/* |
| 112 | + Main utility for generating utility classes with different viewports, delimiters, base class names, etc. |
| 113 | + Example: .sm\:hover\:u-text-blue:hover { ... } |
| 114 | + |
| 115 | + @class-prefix {string} [config.$utility-prefix] - prefix used for generated classes. This is the first section of the class name. Can be empty. |
| 116 | + @delimiter {string} [config.$delimiter] - delimiter used in class name body but not for separating psuedos. Can be empty. |
| 117 | + @base-class-name {string} - the root of the class name. For the utility class above, 'blue' is the base class name |
| 118 | + @class-value-pairs {map<string, any>[]} - list of mappings that maps the variant name (e.g. 'blue') to a map of CSS properties to values |
| 119 | + @variants {string[]} [()] - list of strings specifying which variants to generate styles for. Possible values: |
| 120 | + - 'responsive', |
| 121 | + - 'dark', 'light', |
| 122 | + - 'reduce-motion', |
| 123 | + - 'first-of-type', |
| 124 | + - 'last-of-type', |
| 125 | + - 'portrait', 'landscape', |
| 126 | + - 'hover', 'group-hover', |
| 127 | + - 'focus', 'group-focus', 'focus-visible', 'focus-within', |
| 128 | + - 'active', |
| 129 | + - 'visited', |
| 130 | + - 'checked', |
| 131 | + - 'disabled' |
| 132 | + |
| 133 | + @variant-delimiter {string} [config.$variant-delimiter] - delimiter used to separate the variant portion of the class. Can be empty but not advisable. |
| 134 | + @override {string} [config.$override] - override for CSS properties, like '!important' |
| 135 | +*/ |
| 136 | +/** |
| 137 | + * Convert a string to a proper class selector. |
| 138 | + * @param: {String} $selector |
| 139 | + * @return: {Selector} Returns the class selector. |
| 140 | + */ |
| 141 | +/* |
| 142 | + Utility to use when generating classes with your own series of SCSS rules. This is typically used with the inline-class-generator mixin. |
| 143 | + |
| 144 | + @delimiter {string} [config.$delimiter] - delimiter used in class name body but not for separating psuedos. Can be empty. |
| 145 | + @variants {string[]} [()] - list of strings specifying which variants to generate styles for. Possible values: |
| 146 | + - 'responsive', |
| 147 | + - 'dark', 'light', |
| 148 | + - 'reduce-motion', |
| 149 | + - 'first-of-type', |
| 150 | + - 'last-of-type', |
| 151 | + - 'portrait', 'landscape', |
| 152 | + - 'hover', 'group-hover', |
| 153 | + - 'focus', 'group-focus', 'focus-visible', 'focus-within', |
| 154 | + - 'active', |
| 155 | + - 'visited', |
| 156 | + - 'checked', |
| 157 | + - 'disabled' |
| 158 | + |
| 159 | + @variant-delimiter {string} [config.$variant-delimiter] - delimiter used to separate the variant portion of the class. Can be empty but not advisable. |
| 160 | + @override {string} [config.$override] - override for CSS properties, like '!important' |
| 161 | +*/ |
111 | 162 | /* BASE STYLING + RESET FOR CIRRUS */ |
112 | 163 | :root { |
113 | 164 | /* v1 Colors */ |
@@ -465,36 +516,6 @@ fieldset legend { |
465 | 516 | animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; |
466 | 517 | } |
467 | 518 |
|
468 | | -/* |
469 | | - Main utility for generating utility classes with different viewports, delimiters, base class names, etc. |
470 | | - Example: .sm\:hover\:u-text-blue:hover { ... } |
471 | | - |
472 | | - @class-prefix {string} [cofig.$utility-prefix] - prefix used for generated classes. This is the first section of the class name |
473 | | - @delimiter {string} [config.$delimiter] - delimiter used in class name body but not for separating psuedos |
474 | | - @base-class-name {string} - the root of the class name. For the utility class above, 'blue' is the base class name |
475 | | - @class-value-pairs {map<string, any>[]} - list of mappings that maps the variant name (e.g. 'blue') to a map of CSS properties to values |
476 | | - @variants {string[]} [()] - list of strings specifying which variants to generate styles for. Possible values: |
477 | | - - 'responsive', |
478 | | - - 'dark', 'light', |
479 | | - - 'reduce-motion', |
480 | | - - 'first-of-type', |
481 | | - - 'last-of-type', |
482 | | - - 'portrait', 'landscape', |
483 | | - - 'hover', 'group-hover', |
484 | | - - 'focus', 'group-focus', 'focus-visible', 'focus-within', |
485 | | - - 'active', |
486 | | - - 'visited', |
487 | | - - 'checked', |
488 | | - - 'disabled' |
489 | | - |
490 | | - @variant-delimiter {string} [config.$variant-delimiter] - delimiter used to separate the variant portion of the class |
491 | | - @override {string} [config.$override] - override for CSS properties, like '!important' |
492 | | -*/ |
493 | | -/** |
494 | | - * Convert a string to a proper class selector. |
495 | | - * @param: {String} $selector |
496 | | - * @return: {Selector} Returns the class selector. |
497 | | - */ |
498 | 519 | /* FONT */ |
499 | 520 | /* Constants */ |
500 | 521 | /* Headers */ |
|
0 commit comments