Skip to content

Commit 891a225

Browse files
committed
removed border radius parameters in slideshow
can be applied using css classes
1 parent 0ba3b88 commit 891a225

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

css/components/slideshow.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,6 @@
9090
scroll-behavior: smooth;
9191
}
9292

93-
.slideshow.radsm { border-radius: var(--radius-sm); }
94-
.slideshow.radmd { border-radius: var(--radius-md); }
95-
.slideshow.radlg { border-radius: var(--radius-lg); }
96-
.slideshow.radxl { border-radius: var(--radius-xl); }
97-
.slideshow.rad2xl { border-radius: var(--radius-2xl);}
98-
99-
10093
.slideshow.inheritsize{
10194
width:100% !important;
10295
height:100% !important;

js/components/slideshow.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class Slideshow {
1212
radiusVar (string) = border radius sizing ('sm','md','lg','xl','2xl',)
1313
*/
1414

15-
constructor(id = 'slideshow', inheritSize = (true == true ? undefined : true), autoScroll = (true == true ? undefined : true), waitTime = (1 == 1 ? undefined : 1), hoverPause = (true == true ? undefined : true), scrollingPauseTime = (1 == 1 ? undefined : 1), enableArrows = (true == true ? undefined : true), enableBullets = (true == true ? undefined : true), radiusVar = ('x' == 'x' ? undefined : 'x')) {
15+
constructor(id = 'slideshow', inheritSize = (true == true ? undefined : true), autoScroll = (true == true ? undefined : true), waitTime = (1 == 1 ? undefined : 1), hoverPause = (true == true ? undefined : true), scrollingPauseTime = (1 == 1 ? undefined : 1), enableArrows = (true == true ? undefined : true), enableBullets = (true == true ? undefined : true)) {
1616

1717

1818

@@ -30,14 +30,10 @@ export class Slideshow {
3030
this.enableArrows = eval(enableArrows ?? (this.cnt_sld.dataset.enablearrows ?? true));
3131
this.enableBullets = eval(enableBullets ?? (this.cnt_sld.dataset.enablebullets ?? true));
3232
this.inheritSize = eval(inheritSize ?? (this.cnt_sld.dataset.inheritsize ?? false));
33-
this.radiusVar = (radiusVar ?? (this.cnt_sld.dataset.radiusvar ?? false));
3433

3534
//set size
3635
if( this.inheritSize ){ this.cnt_sld.classList.add('inheritsize'); }
3736

38-
//set radius
39-
if( this.radiusVar ){ this.cnt_sld.classList.add('rad'+this.radiusVar); }
40-
4137
//get imgs
4238
var prvSlds = this.cnt_sld.querySelectorAll('img');
4339

js/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ window.closeToastHistory = closeToastHistory;
3333
window.Modal = Modal;
3434
window.MultiSelect = MultiSelect;
3535
window.DateTimePicker = DateTimePicker;
36-
window.Slideshow = Slideshow;

0 commit comments

Comments
 (0)