mirror of
https://github.com/anatolykopyl/scrollable-cards.git
synced 2026-03-26 09:44:30 +00:00
60 lines
1.0 KiB
CSS
60 lines
1.0 KiB
CSS
* {
|
|
margin: 0;
|
|
text-align: center;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
color: rgb(41, 41, 41)
|
|
}
|
|
|
|
body {
|
|
background-color: rgb(241, 241, 241);
|
|
}
|
|
|
|
#cardholder {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
overflow-x: auto;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
#scroll_btn {
|
|
background-color: white;
|
|
margin: auto;
|
|
font-size: xx-large;
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
width: 1.5em;
|
|
height: 1.5em;
|
|
box-shadow: 1px 1px 10px rgba(71, 71, 71, 0.397);
|
|
-webkit-touch-callout: none;
|
|
/* iOS Safari */
|
|
-webkit-user-select: none;
|
|
/* Safari */
|
|
-khtml-user-select: none;
|
|
/* Konqueror HTML */
|
|
-moz-user-select: none;
|
|
/* Old versions of Firefox */
|
|
-ms-user-select: none;
|
|
/* Internet Explorer/Edge */
|
|
user-select: none;
|
|
}
|
|
|
|
.card {
|
|
background-color: white;
|
|
padding: 1em;
|
|
margin: 1em;
|
|
width: 400px;
|
|
flex: 0 0 auto;
|
|
border-radius: 12px;
|
|
box-shadow: 1px 1px 10px rgba(71, 71, 71, 0.397);
|
|
}
|
|
|
|
.card img {
|
|
max-width: 100%;
|
|
border-radius: 7px;
|
|
}
|
|
|
|
.card p {
|
|
width: 90%;
|
|
margin: 1em auto 0 auto;
|
|
} |