Skip to content

Commit

Permalink
Design: box radius
Browse files Browse the repository at this point in the history
  • Loading branch information
gumgood committed Jun 12, 2024
1 parent ff4eb81 commit 2b27446
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion _sass/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ $nav-width: 15rem;
.Box {
background-color: var(--color-canvas-default);
border-color: var(--color-border-default);
border-radius: var(--borderRadius-medium);
border-radius: var(--borderRadius-large);
border-style: solid;
border-width: var(--borderWidth-thin);
}
Expand Down
4 changes: 3 additions & 1 deletion _sass/include/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ nav {
height: 7rem;
width: 7rem;
overflow: hidden;
border-radius: 50%;
border-radius: var(--borderRadius-full);
box-shadow: var(--color-avatar-border) 0 0 0 2px;
}


.profile-site-title {
width: min-content;
margin: 0 -0.5rem;
padding: 0.125rem 0.5rem;
font-weight: 600;
color: var(--color-fg-default);
border-radius: var(--borderRadius-medium);
}

.profile-site-description {
Expand Down
15 changes: 3 additions & 12 deletions _sass/pages/_index.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
.post-summaries {

.post-summaries__item {
margin-bottom: 1.25rem;

@media screen and (max-width: $break-small) {
margin-bottom: 1.5rem;
}

//box-shadow: var(--post-summaries-shadow);
border: 1px solid rgb(208, 215, 222);
border-radius: 0.5rem;
background-color: var(--post-summaries-bg);

&:hover {
box-shadow: rgba(104, 104, 104, 0.5) 0 2px 6px 0, rgba(211, 209, 209, 0.15) 0 0 0 1px;
Expand Down Expand Up @@ -79,8 +69,9 @@
display: flex;
flex-basis: 20rem;

border-radius: 0 0.5rem 0.5rem 0;

border-top-right-radius: var(--borderRadius-large);
border-bottom-right-radius: var(--borderRadius-large);

@media screen and (max-width: 640px) {
max-height: 10rem;
border-radius: 0.5rem 0.5rem 0 0;
Expand Down
3 changes: 3 additions & 0 deletions _sass/style/_light-typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
@mixin light-scheme {
// 230923
--borderWidth-thin: 0.0625rem;
--borderRadius-small: 0.1875rem;
--borderRadius-medium: 0.375rem;
--borderRadius-large: 0.75rem;
--borderRadius-full: 624.9375rem;

--color-accent-fg: rgb(9, 105, 218);
--color-avatar-border: var(--color-border-default);
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{%- for post in paginator.posts -%}
{% assign img_attributes = post.content | split: "<img" | slice: 1 | first | split: '/>' | first %}
<a class="link-muted" href="{{ post.url }}">
<div class="post-summaries__item">
<div class="post-summaries__item Box mb-4">
<div class="post-summaries-container">
{% if img_attributes %}
<div class="preview-img_wrapper flex-row">
Expand Down

0 comments on commit 2b27446

Please sign in to comment.