File tree Expand file tree Collapse file tree 2 files changed +110
-41
lines changed
Expand file tree Collapse file tree 2 files changed +110
-41
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ function onToggle (event: Event) {
4545</template >
4646
4747<style lang="scss">
48- fieldset { padding : 0 0.625em }
49- fieldset .galc-facet {
50- display : inherit ;
48+ .galc-facet {
49+ padding : 0 0.625em ;
5150 border : none ;
51+ display : inherit ;
5252
5353 legend {
5454 position : absolute ;
Original file line number Diff line number Diff line change @@ -94,48 +94,117 @@ const liveMessage = computed(() => {
9494</template >
9595
9696<style lang="scss">
97+ div .galc-facets {
98+ .show-facets-button {
99+ display : none ;
100+ }
101+
102+ @media only screen and (min-width : 700px ) {
103+ margin-right : 1em ;
104+ // TODO: less hacky way to place this differently on desktop and mobile
105+ .galc-term-deselection {
106+ display : none ;
107+ }
108+ .show-facets-button {
109+ display : none ;
110+ }
111+ form .galc-facet-form {
112+ width : 150px ;
113+ }
114+ }
97115
98- .show-facets-button {
99- display : none ;
100- }
116+ @media only screen and (max-width : 700px ) {
117+ .show-facets-button {
118+ display : block ;
119+ font-size : 1rem ;
120+ line-height : 1.75rem ;
121+ font-weight : normal ;
122+ color : white ;
123+ background-color : #46535e ;
124+ padding : 2px 8px ;
125+ margin : 6px 16px 6px 0 ;
126+ width : fit-content ;
127+ cursor : pointer ;
128+ border : none ;
129+ border-radius : 4px ;
130+ height : 33px ;
131+
132+ img .show-facets-icon {
133+ height : 0.9rem ;
134+ width : 0.9rem ;
135+ filter : invert (100% );
136+ display : inline ;
137+ margin-bottom : -2px ;
138+ margin-left : 4px ;
139+ }
140+ }
141+ }
101142
102- @media only screen and (max-width : 700px ) {
103- .show-facets-button {
104- display : block ;
105- font-size : 1rem ;
106- line-height : 1.75rem ;
107- font-weight : normal ;
108- color : white ;
109- background-color : #46535e ;
110- padding : 2px 8px ;
111- margin : 6px 16px 6px 0 ;
112- width : fit-content ;
113- cursor : pointer ;
114- border : none ;
115- border-radius : 4px ;
116- height : 33px ;
117-
118- img .show-facets-icon {
119- height : 0.9rem ;
120- width : 0.9rem ;
121- filter : invert (100% );
122- display : inline ;
123- margin-bottom : -2px ;
124- margin-left : 4px ;
143+ form .galc-facet-form {
144+ display : grid ;
145+ grid-template-columns : 1fr ;
146+ align-items : center ;
147+ justify-items : start ;
148+
149+ // TODO: rationalize these measurements
150+ column-gap : 0.5rem ;
151+ row-gap : 0 ;
152+ margin-right : 2rem ;
153+
154+ .galc-facet-title {
155+ white-space : nowrap ;
156+ grid-column : 1 / 4 ;
157+ margin-bottom : 0.25em ;
158+ }
159+
160+ > fieldset {
161+ padding-bottom : 0 ;
162+ width : 100% ;
163+
164+ details {
165+ summary {
166+ grid-column : 1 / 4 ;
167+ }
168+
169+ input {
170+ grid-column : 1 ;
171+ }
172+
173+ label {
174+ grid-column : 2 / 4 ;
175+ }
176+
177+ fieldset {
178+
179+ input {
180+ grid-column : 1 ;
181+ }
182+
183+ label {
184+ grid-column : 2 / 4 ;
185+ }
186+ }
187+ }
188+
189+ & :not (:first-of-type ) {
190+ summary {
191+ margin-top : 0.25em ;
192+ }
193+ }
125194 }
126195 }
127- }
128- .sr-only {
129- position : absolute ;
130- width : 1px ;
131- height : 1px ;
132- padding : 0 ;
133- margin : -1px ;
134- overflow : hidden ;
135- clip : rect (0 , 0 , 0 , 0 );
136- white-space : nowrap ;
137- border-width : 0 ;
138- }
139196
197+ .sr-only {
198+ position : absolute ;
199+ width : 1px ;
200+ height : 1px ;
201+ padding : 0 ;
202+ margin : -1px ;
203+ overflow : hidden ;
204+ clip : rect (0 , 0 , 0 , 0 );
205+ white-space : nowrap ;
206+ border-width : 0 ;
207+ }
140208
209+ }
141210 </style >
You can’t perform that action at this time.
0 commit comments