Skip to content

Commit

Permalink
some css updates especially for mobile and ipad sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
flq committed Jun 23, 2024
1 parent a8d539f commit 1676e49
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
13 changes: 9 additions & 4 deletions src/components/mdx/Ai.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ interface Props {
const { inline = false } = Astro.props;
---
<style>
<style lang="scss">
@import "../../styles/imports.scss";
blockquote {
display: inline-block;
margin: 0;
Expand All @@ -26,18 +27,22 @@ const { inline = false } = Astro.props;
span {
position:relative;
font-style: normal;
border-bottom: 1px dashed rgba(0,0,0,0.1);
border-bottom: 1px dashed rgba(0,0,0,0.2);
}
span:before {
position: absolute;
top: -1.1rem;
top: -0.8rem;
font-size: small;
font-style: oblique;
color: rgba(0,0,0,0.3);
content: "AI";
padding-left: 0.2rem;
line-height: 1rem;
border-left: 2px solid rgba(0,0,0,0.1);
border-left: 2px solid rgba(0,0,0,0.2);

@media (min-width:$iPad) {
top: -1.1rem;
}
}

</style>
Expand Down
7 changes: 7 additions & 0 deletions src/layouts/main.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ const { meta = [], title: pageTitle, skipFooter } = Astro.props;
align-items: center;
}

body :global(ul) {
padding: 0 1rem;
@media (min-width:$iPad) {
padding: 0;
}
}

main {
padding: 5rem 0 1rem 0;
@include widths;
Expand Down
4 changes: 0 additions & 4 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ figcaption {
margin-bottom: 2em;
}

ul {
padding: 0;
}

img, video, .giphy-embed {
display: block;
margin: 20px auto;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/imports.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $largeDesktop: 2000px;
width: 100%;

@media (min-width:$iPad) {
width: 90%;
width: 85%;
}

@media (min-width:$desktop) {
Expand Down

0 comments on commit 1676e49

Please sign in to comment.