-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Card image border radius #1764
base: main
Are you sure you want to change the base?
Card image border radius #1764
Changes from all commits
ec78f7c
66d88da
e2d0cbc
57649ae
fd2f8d1
e8da4a6
73cb59b
2fbd2f4
dff7148
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1196,7 +1196,6 @@ summary::-webkit-details-marker { | |
display: block; | ||
background-color: rgba(var(--color-foreground), 0.1); | ||
position: relative; | ||
overflow: hidden; | ||
} | ||
|
||
.media--transparent { | ||
|
@@ -1221,26 +1220,28 @@ summary::-webkit-details-marker { | |
} | ||
|
||
.media--square { | ||
padding-bottom: 100%; | ||
padding-bottom: calc(100% - var(--media-border-width) * 2); | ||
} | ||
|
||
.media--portrait { | ||
padding-bottom: 125%; | ||
padding-bottom: calc(125% - var(--media-border-width) * 2); | ||
} | ||
|
||
.media--landscape { | ||
padding-bottom: 66.6%; | ||
padding-bottom: calc(66.6% - var(--media-border-width) * 2); | ||
} | ||
|
||
.media--cropped { | ||
padding-bottom: 56%; | ||
padding-bottom: calc(56% - var(--media-border-width) * 2); | ||
|
||
} | ||
|
||
.media--16-9 { | ||
padding-bottom: 56.25%; | ||
padding-bottom: calc(56.25% - var(--media-border-width) * 2); | ||
} | ||
|
||
.media--circle { | ||
left: calc(-1 * var(--button-size)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Curious to know what this was added for ? 🤔 |
||
padding-bottom: 100%; | ||
border-radius: 50%; | ||
} | ||
|
@@ -1251,7 +1252,7 @@ summary::-webkit-details-marker { | |
|
||
@media screen and (min-width: 990px) { | ||
.media--cropped { | ||
padding-bottom: 63%; | ||
padding-bottom: calc(63% - var(--media-border-width) * 2); | ||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,10 +200,23 @@ | |
box-sizing: border-box; | ||
} | ||
|
||
.multicolumn-card .multicolumn-card__image { | ||
border: var(--media-border-width) solid rgba(var(--color-foreground), var(--media-border-opacity)); | ||
border-radius: var(--media-radius); | ||
box-shadow: var(--media-shadow-horizontal-offset) | ||
var(--media-shadow-vertical-offset) | ||
var(--media-shadow-blur-radius) | ||
rgba(var(--color-shadow), var(--media-shadow-opacity)); | ||
} | ||
ludoboludo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.multicolumn-card .media--circle, | ||
.media--circle .multicolumn-card__image { | ||
border-radius: 50%; | ||
} | ||
|
||
.multicolumn-card > .multicolumn-card__image-wrapper--full-width:not(.multicolumn-card-spacing) { | ||
border-top-left-radius: calc(var(--text-boxes-radius) - var(--text-boxes-border-width)); | ||
border-top-right-radius: calc(var(--text-boxes-radius) - var(--text-boxes-border-width)); | ||
overflow: hidden; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder what situation it was needed for before 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea, I was wondering the same. I couldn't find anything. cc/ @tyleralsbury @martinamarien There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
} | ||
|
||
.multicolumn.background-none .multicolumn-card { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tend to get a little worried when removing properties that have impact on many elements. I see that we need to remove this in order for the shadow to come up for multicolumn but maybe instead of removing the property here we could overwrite it in the
section-multicolumn.css
file with something like:I feel like it's more "backward compatible".