diff --git a/card/card.css b/card/card.css new file mode 100644 index 0000000..d5301bf --- /dev/null +++ b/card/card.css @@ -0,0 +1,94 @@ +@import url(../style.css); +@import url(../badge/badge.css); + +.card { + display: flex; + flex-direction: column; + width: 15rem; + border: 1px solid black; + border-radius: .25rem; + background-color: var(--bg-cus); +} + +.card-title { + border-bottom: 1px solid black; + padding: 0.5rem; + font-weight: bold; + +} + +.card-body { + padding: 0.5rem; +} + +.card-title.dismiss { + display: flex; + align-items: center; +} + +.card-title.dismiss img { + width: 2rem; + margin-left: auto; +} + +.card-title.dismiss img:hover { + cursor: pointer; +} + +.card-with-image { + width: fit-content; +} + +.card-img img { + border-radius: .25rem; +} + +.card-with-image .card-title { + border: none; +} + +.horizontal { + display: flex; + flex-flow: row; +} + +.card-with-image.horizontal { + height: 150px; + width: 30rem; +} + +.card-side-body { + display: flex; + flex-direction: column; +} + +.vertical { + width: min-content; +} + +.text-overlay { + width: min-content; +} + +.text-overlay .card-title { + padding: 0; + margin: 0; +} + +.text-overlay .card-title { + position: relative; +} + +.text-overlay .card-overlay-title { + position: absolute; + bottom: 1rem; + padding: 0.5rem; +} + +.card-with-badge { + position: relative; +} + +.shadow { + filter: drop-shadow(0 0 0.25rem black); +} \ No newline at end of file diff --git a/card/card.html b/card/card.html new file mode 100644 index 0000000..c8071e4 --- /dev/null +++ b/card/card.html @@ -0,0 +1,159 @@ + + +
+ + + ++ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Expedita, dicta! +
++ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Expedita, dicta! +
++ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Expedita, dicta! +
+