Skip to content

Commit c4a9317

Browse files
mesosadmh
authored andcommitted
[FEATURE] add options for each slide to have a transparent background (#425)
1 parent e954219 commit c4a9317

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

Configuration/ContentElements/Slider.pagets

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ TCEFORM.tt_content.pi_flexform.contentElementSlider.sDEF.captionAlign {
2929
}
3030

3131
# This is for adding options in the selectbox in each slide.
32-
# TCEFORM.sys_file_reference.tx_themet3kit_slide_appearance {
33-
# addItems {
34-
# --div-- = Slider slide appearances:
35-
# 10 = Light text and right aligned text area
36-
# 20 = Dark text and centered aligned text area
37-
# }
38-
# }
32+
TCEFORM.sys_file_reference.tx_themet3kit_slide_appearance {
33+
addItems {
34+
--div-- = Slider slide appearances:
35+
10 = Light transparent background
36+
20 = Dark transparent background
37+
}
38+
}

Configuration/ContentElements/Slider.setupts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ tt_content {
2020
}
2121
settings {
2222
defaultWidth = 1920c
23-
# appearance {
24-
# # Extend appearance for each slide for this element
25-
# 10 = example-class
26-
# 20 = example-class
27-
# }
23+
appearance {
24+
# Extend appearance for each slide for this element
25+
10 = _light-transparent-bg
26+
20 = _dark-transparent-bg
27+
}
2828
}
2929
}
3030
}

felayout_t3kit/dev/styles/main/contentElements/slider.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@
9494
background: @carousel-control-color;
9595
}
9696

97+
._light-transparent-bg .img-slider__caption {
98+
background: rgba(255, 255, 255, 0.3);
99+
}
100+
101+
._dark-transparent-bg .img-slider__caption {
102+
background: rgba(0, 0, 0, 0.3);
103+
}
104+
97105
@media (min-width: @screen-sm-min) {
98106
.img-slider__caption {
99107
padding: 30px 50px;

0 commit comments

Comments
 (0)