File tree Expand file tree Collapse file tree 3 files changed +55
-1
lines changed
src/helix-ui/styles/modules Expand file tree Collapse file tree 3 files changed +55
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ <h3>Options</h3>
2929 </ div >
3030 < div class ="hxCol hxSpan-12-xs hxSpan-9-lg hxOrder-1-lg ">
3131 < h3 > Basic Box</ h3 >
32-
3332 < div class ="demo box-demo ">
3433 < div :class ="size.value ">
3534 < p >
Original file line number Diff line number Diff line change @@ -36,6 +36,30 @@ <h2 id="menu">Basic Menu</h2>
3636 {% endcode %}
3737 </ section >
3838
39+ < section >
40+ < h2 id ="cog-menu "> Cog Menu</ h2 >
41+ < div class ="demo ">
42+ < hx-disclosure class ="hxBtn hxCog " aria-controls ="cogmenuId ">
43+ < hx-icon type ="cog "> </ hx-icon >
44+ </ hx-disclosure >
45+ < hx-menu id ="cogmenuId ">
46+ < hx-menuitem > Action 1</ hx-menuitem >
47+ < hx-menuitem > Action 2</ hx-menuitem >
48+ < hx-menuitem > Action 3</ hx-menuitem >
49+ </ hx-menu >
50+ </ div >
51+ {% code 'html' %}
52+ < hx-disclosure class ="hxBtn hxCog " aria-controls ="cogmenuId ">
53+ < hx-icon type ="cog "> </ hx-icon >
54+ </ hx-disclosure >
55+ < hx-menu id ="cogmenuId ">
56+ < hx-menuitem > Action 1</ hx-menuitem >
57+ < hx-menuitem > Action 2</ hx-menuitem >
58+ < hx-menuitem > Action 3</ hx-menuitem >
59+ </ hx-menu >
60+ {% endcode %}
61+ </ section >
62+
3963 < section >
4064 < h2 id ="advanced-menu "> Advanced Menu</ h2 >
4165 < div class ="demo ">
Original file line number Diff line number Diff line change 163163 }
164164}// .hxBtnGroup
165165
166+ // COG BUTTON STYLES
167+ .hxBtn.hxCog {
168+ border : none ;
169+ padding : 0.25rem ;
170+
171+ hx- icon {
172+ color : @gray-900 ;
173+ height : 1rem ;
174+ width : 1rem ;
175+ }
176+
177+ & :hover , & :active {
178+ background-color : transparent ;
179+
180+ hx- icon {
181+ color : @gray-700 ;
182+ }
183+ }
184+
185+ & :focus {
186+ box-shadow : 0 0 4px 0 fade (@cyan-500 , 50% );
187+ outline : none ;
188+ }
189+
190+ & [disabled ] {
191+ hx- icon {
192+ color : @gray-500 ;
193+ }
194+ }
195+ }
196+
166197// DEPRECATED: Remove in v1.0.0
167198.hxBtn--primary {
168199 & :extend(.hxBtn.hxPrimary all );
You can’t perform that action at this time.
0 commit comments