examples/angular-cli-17/src/app/carousel/carousel.scss
// The MIT License (MIT)
//
// Copyright (c) 2017-2024 Stefano Cappa (Ks89)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
:host {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
}
section {
width: 100%;
}
h2, h3, p {
margin-left: 20px;
}
$text-color: #fff;
$background: rgba(0, 0, 0, .7);
.my-app-custom-plain-container-row {
align-items: center;
display: flex;
flex-direction: row;
justify-content: flex-start;
.my-app-custom-image-row {
cursor: pointer;
height: auto;
margin-right: 2px;
width: 50px;
&.after {
border-top: 2px;
cursor: pointer;
display: none;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
}
}
.my-app-custom-plain-container-column {
align-items: center;
display: flex;
flex-direction: column;
justify-content: flex-start;
.my-app-custom-image-column {
cursor: pointer;
height: auto;
margin-right: 2px;
width: 50px;
&.after {
border-top: 2px;
cursor: pointer;
display: none;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
}
}
.my-app-custom-plain-container-with-desc {
align-items: center;
display: flex;
flex-direction: row;
justify-content: flex-start;
figure {
margin: 0;
position: relative;
img {
max-width: 100%;
height: auto;
cursor: pointer;
}
figcaption {
background: rgba(0, 0, 0, .5);
color: #fff;
font-size: 85%;
padding: 5px;
position: absolute;
bottom: 3px;
left: 0;
right: 0;
}
}
.description {
font-weight: bold;
text-align: center;
}
.my-app-custom-image-with-desc {
height: auto;
margin-right: 2px;
width: 200px;
align-self: start;
}
}
.more {
background: $background;
cursor: pointer;
color: $text-color;
padding-top: 4px;
height: 46px;
position: absolute;
text-align: center;
width: 50px;
}
.projected {
color: white;
font-weight: 600;
font-size: 24px;
text-align: center;
position: absolute;
top: 50%;
width: 100%;
pointer-events: none;
}
.title {
margin-top: 40px;
}