Refactor on CarouselDoc

pull/104/head
mertsincan 2019-10-22 16:15:09 +03:00
parent b7d4b542a5
commit 7dd6f294b9
1 changed files with 78 additions and 36 deletions

View File

@ -408,44 +408,86 @@ export default {
</CodeHighlight> </CodeHighlight>
<CodeHighlight lang="css"> <CodeHighlight lang="css">
.carousel-demo .car-details > .p-grid { .p-carousel {
border: 1px solid #b3c2ca; .p-carousel-content {
border-radius: 3px; .p-carousel-item {
margin: .3em; .car-details {
text-align: center; > .p-grid {
padding: 2em 0 2.25em 0; border: 1px solid #b3c2ca;
border-radius: 3px;
margin: .3em;
text-align: center;
padding: 2em 0 2.25em 0;
}
}
.car-data {
.car-title {
font-weight: 700;
font-size: 20px;
margin-top: 24px;
}
.car-subtitle {
margin: .25em 0 2em 0;
}
button {
margin-left: .5em;
&amp;:first-child {
margin-left: 0;
}
}
}
}
}
&amp;.custom-carousel {
.p-carousel-dot-icon {
width: 16px !important;
height: 16px !important;
border-radius: 50%;
}
}
&amp;.p-carousel-horizontal {
.p-carousel-content {
.p-carousel-item {
&amp;.p-carousel-item-start {
.car-details {
> .p-grid {
margin-left: .6em;
}
}
}
&amp;.p-carousel-item-end {
.car-details {
> .p-grid {
margin-right: .6em;
}
}
}
}
}
}
} }
.carousel-demo .car-data .car-title { /* Dark Theme such as luna-amber, luna-blue, luna-green and luna-pink */
font-weight: 700; .dark-theme {
font-size: 20px; .p-carousel {
margin-top: 24px; .p-carousel-content {
} .p-carousel-item {
.car-details {
.carousel-demo .car-data .car-subtitle { > .p-grid {
margin: .25em 0 2em 0; border: 1px solid #191919;
} background-color: #323232;
}
.carousel-demo .car-data button { }
margin-left: .5em; }
} }
}
.carousel-demo .car-data button:first-child {
margin-left: 0;
}
.carousel-demo .p-carousel.custom-carousel .p-carousel-dot-icon {
width: 16px !important;
height: 16px !important;
border-radius: 50%;
}
.carousel-demo .p-carousel.p-carousel-horizontal .p-carousel-content .p-carousel-item.p-carousel-item-start .car-details > .p-grid {
margin-left: .6em;
}
.carousel-demo .p-carousel.p-carousel-horizontal .p-carousel-content .p-carousel-item.p-carousel-item-end .car-details > .p-grid {
margin-right: .6em;
} }
</CodeHighlight> </CodeHighlight>
</TabPanel> </TabPanel>