Skip to content

Commit

Permalink
feat: make the articles rounded
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Aug 1, 2024
1 parent 274cd36 commit 7aba105
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
6 changes: 2 additions & 4 deletions src/components/layout/content/content.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div></div>
<div class="main-container">
<main #mainContent (cdkObserveContent)="onContentChange($event)">
<div class="absolute top-0 right-0" *ngIf="canShare">
<div class="absolute top-0 right-0 sm:top-8 sm:right-8" *ngIf="canShare">
<button
class="p-2 m-2 mt-0 text-lg cursor-pointer"
[class.animate-pulse]="sharing"
Expand All @@ -12,10 +12,8 @@

<ng-content></ng-content>

<div class="h-10"></div>

<div
class="bg-primary/5 text-black overflow-hidden flex flex-row items-center relative">
class="bg-primary/5 text-black overflow-hidden flex flex-row items-center relative rounded-lg m-[32px]">
<div
class="bg-logoBlack w-16 ml-2 self-stretch bg-contain bg-no-repeat bg-center relative z-30 hidden md:block"></div>
<p class="m-4 relative z-30 max-w-md">
Expand Down
19 changes: 8 additions & 11 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -355,25 +355,17 @@ main {
position: relative;
}

@media (max-width: 599px) {
main {
margin: 0;
}
}

main article {
$preBgColor: #182122;

display: block;
overflow: hidden;
background-color: var(--color-content-bg);
border-radius: 3px;
box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.1);
padding: 32px;
}

main article {
$preBgColor: #182122;

margin: 32px;
border-radius: 8px; // match tailwind rounded-lg

code-block-variation,
> section > pre,
Expand Down Expand Up @@ -415,6 +407,11 @@ main article {
}
}

@media (max-width: 599px) {
margin: 0;
border-radius: 0px;
}

code-block-variation,
section > pre,
> pre {
Expand Down

0 comments on commit 7aba105

Please sign in to comment.