File tree 3 files changed +67
-6
lines changed
3 files changed +67
-6
lines changed Original file line number Diff line number Diff line change 1
- @use " sass:list" ;
2
- @use " sass:map" ;
3
- @use " sass:meta" ;
1
+ @use ' sass:list' ;
2
+ @use ' sass:map' ;
3
+ @use ' sass:meta' ;
4
4
/// /
5
5
/// @group site.config
6
6
/// /
Original file line number Diff line number Diff line change 69
69
@mixin link () {
70
70
@include css-map (get (' links' ));
71
71
}
72
+
73
+ // ----------------------------------------------------------------------------
74
+ // Control Resets
75
+ // ----------------------------------------------------------------------------
76
+
77
+ /// Resets the appearance of controls with some opinionated defaults (see source or
78
+ /// output for details). Typically used as part of restyling a component.
79
+
80
+ @function reset-control ($overrides : ()) {
81
+ @return flat-merge (
82
+ (
83
+ appearance : none ,
84
+ box-sizing : border-box ,
85
+ position : relative ,
86
+ outline : none ,
87
+ border : none ,
88
+ white-space : nowrap ,
89
+ background-color : transparent ,
90
+ font-size : get (' controls.base.font-size' ),
91
+ font-family : get (' controls.base.font-family' ),
92
+ font-weight : get (' controls.base.font-weight' ),
93
+ ),
94
+ $overrides
95
+ );
96
+ }
97
+
98
+ @mixin reset-control ($overrides : ()) {
99
+ @include css-map (reset-control ($overrides ));
100
+ }
101
+
102
+ /// Resets the style of control much more aggressively than regular control-reset. Really cleans
103
+ /// things out!
104
+
105
+ @function reset-control-hard ($overrides : ()) {
106
+ @return flat-merge (
107
+ (
108
+ appearance : none ,
109
+ display : block ,
110
+ outline : none ,
111
+ border : none ,
112
+ border-radius : 0 ,
113
+ background : none transparent ,
114
+ padding : 0 ,
115
+ width : auto ,
116
+ height : auto ,
117
+ border-spacing : 0 ,
118
+ text-align : left ,
119
+ text-indent : 0 ,
120
+ line-height : initial ,
121
+ color : initial ,
122
+ font-family : initial ,
123
+ font-size : initial ,
124
+ ),
125
+ $overrides
126
+ );
127
+ }
128
+
129
+ @mixin reset-control-hard ($overrides : ()) {
130
+ @include css-map (control-reset-hard ($overrides ));
131
+ }
Original file line number Diff line number Diff line change 1
- @use " sass:color" ;
2
- @use " sass:list" ;
3
- @use " sass:map" ;
1
+ @use ' sass:color' ;
2
+ @use ' sass:list' ;
3
+ @use ' sass:map' ;
4
4
/// /
5
5
/// @group site.variables
6
6
/// /
135
135
/// ```scss
136
136
/// @@use 'variables' as * with (
137
137
/// $-config: (
138
+ ///
138
139
/// vars-prefix: 'theme',
139
140
/// vars: (
140
141
/// page-bg-hsla: white,
You can’t perform that action at this time.
0 commit comments