55@use " partials/dark-mode.scss" as * ;
66@use " ../node_modules/select2/src/scss/core" ;
77@use ' ../node_modules/pretty-checkbox/src/pretty-checkbox.scss' ;
8+ @use ' ../node_modules/tiny-slider/dist/tiny-slider.css' ;
89
910// Fonts
1011@import url (" https://fonts.googleapis.com/css?family=Raleway:100,300,400,600" );
@@ -168,77 +169,78 @@ ul.breadcrumbs {
168169 width : 50px ;
169170 height : 24px ;
170171 margin : 0 ;
171- }
172-
173- /* Nasconde il checkbox */
174- .switch input {
175- opacity : 0 ;
176- width : 0 ;
177- height : 0 ;
178- }
179-
180- /* Stile per lo slider */
181- .slider {
182- position : absolute ;
183- cursor : pointer ;
184- top : 0 ;
185- left : 0 ;
186- right : 0 ;
187- bottom : 0 ;
188- background-color : #ccc ;
189- transition : .4s ;
190- border-radius : 24px ;
191- }
192-
193- .slider :before {
194- position : absolute ;
195- content : " " ;
196- height : 18px ;
197- width : 18px ;
198- left : 3px ;
199- bottom : 3px ;
200- background-color : white ;
201- transition : .4s ;
202- border-radius : 50% ;
203- }
204-
205- /* Colore quando è selezionato */
206- input :checked + .slider {
207- background-color : #2196F3 ;
208- }
209-
210- input :checked + .slider :before {
211- transform : translateX (26px );
212- }
213-
214- /* Effetto focus */
215- input :focus + .slider {
216- box-shadow : 0 0 1px #2196F3 ;
217- }
218-
219- /* Testo per lo stato On/Off */
220- .switch .slider ::after {
221- content : " OFF" ;
222- color : white ;
223- position : absolute ;
224- right : 10px ;
225- top : 50% ;
226- transform : translateY (-50% );
227- font-size : 10px ;
228- }
229-
230- input :checked + .slider ::after {
231- content : " ON" ;
232- left : 10px ;
233- right : auto ;
234- }
235-
172+
173+ & input {
174+ opacity : 0 ;
175+ width : 0 ;
176+ height : 0 ;
177+
178+ & :checked + .slider {
179+ background-color : #2196F3 ;
180+ }
181+
182+ & :checked + .slider :before {
183+ transform : translateX (26px );
184+ }
185+
186+ /* Effetto focus */
187+ & :focus + .slider {
188+ box-shadow : 0 0 1px #2196F3 ;
189+ }
190+
191+ & :checked + .slider ::after {
192+ content : " ON" ;
193+ left : 10px ;
194+ right : auto ;
195+ }
196+ }
197+
198+ .slider {
199+ position : absolute ;
200+ cursor : pointer ;
201+ top : 0 ;
202+ left : 0 ;
203+ right : 0 ;
204+ bottom : 0 ;
205+ background-color : #ccc ;
206+ transition : .4s ;
207+ border-radius : 24px ;
208+
209+ & :before {
210+ position : absolute ;
211+ content : " " ;
212+ height : 18px ;
213+ width : 18px ;
214+ left : 3px ;
215+ bottom : 3px ;
216+ background-color : white ;
217+ transition : .4s ;
218+ border-radius : 50% ;
219+ }
220+
221+ & ::after {
222+ content : " OFF" ;
223+ color : white ;
224+ position : absolute ;
225+ right : 10px ;
226+ top : 50% ;
227+ transform : translateY (-50% );
228+ font-size : 10px ;
229+ }
230+ }
231+ }
232+
236233.darkmode-switch {
237234 margin : 0 10px ;
238235 align-content : center ;
239236}
240237
241- .post-footer {
238+ .post_footer {
242239 display : flex ;
243240 justify-content : end ;
241+ }
242+
243+ .gallery {
244+ max-width : 100% ;
245+ overflow : scroll ;
244246}
0 commit comments