Skip to content

Commit

Permalink
Merge pull request #41 from yunu7067/develop
Browse files Browse the repository at this point in the history
update design
  • Loading branch information
yunu7067 authored Jul 4, 2022
2 parents e8161ae + a1847c2 commit 72be81a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 12 deletions.
2 changes: 1 addition & 1 deletion blog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/** @type {import('./src/types').BlogConfigType} */
const blogConfig = {
baseurl: 'https://yunu7067.github.io',
baseurl: 'https://example.com.github.io',
title: 'tololo://',
description: 'An example blog on Astro',
locale: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/AboutContainer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { author } = Astro.props as Props;
</main>
</article>
</div>
<div class="mb-1 text-right">
<div class="mb-3 text-right">
<a class={btn } href="/series/">
Series
<StackLine />
Expand Down
1 change: 1 addition & 0 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Head from '../components/Head.astro';
import AstroSeo, { AstroSeoProps } from '../components/AstroSeo';
import { BlogConfigType } from '../types';
import Footer from '../components/Footer';
// import '../styles/global.css';
export interface Props {
seo?: AstroSeoProps,
Expand Down
20 changes: 19 additions & 1 deletion src/styles/article.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
/* 다크 모드 */
html.dark {
main#article-container {
p a:not([data-footnote-backref]) {
color: rgb(83, 155, 245) ;
}
}
}

/* 라이트 모드 */
main#article-container {
/* Typography */
:is(h1, h2, h3, h4, h5, h6) {
Expand Down Expand Up @@ -40,13 +49,21 @@ main#article-container {
margin-bottom: 2em;
}

/* Anchor */
p a:not([data-footnote-backref]) {
color: rgb(9, 105, 218);
}
p a:not([data-footnote-backref]):hover {
text-decoration: underline;
}

/* Table */
table {
display: block;
width: 100%;
// white-space: nowrap;
// table-layout: auto;
overflow-x: scroll;
overflow-x: auto;
border-collapse: collapse;
border-spacing: 0;
padding-bottom: 1rem;
Expand Down Expand Up @@ -175,6 +192,7 @@ main#article-container {
}

blockquote {
background: lightblue;
font-size: 1.5rem;
--padding-block: 1rem;
--padding-inline: 1.25rem;
Expand Down
18 changes: 9 additions & 9 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
--theme-code-bg: var(--color-gray-700);
}

body {
/* body {
background: var(--theme-bg);
color: var(--theme-text);
}
} */

:root.theme-dark {
/* :root.theme-dark {
color-scheme: dark;
--theme-accent-opacity: 0.3;
--theme-divider: var(--color-gray-900);
Expand All @@ -68,7 +68,7 @@ body {
--theme-code-inline-bg: var(--color-gray-800);
--theme-code-text: var(--color-gray-200);
--theme-code-bg: var(--color-gray-900);
}
} */

::selection {
color: var(--theme-accent);
Expand All @@ -85,12 +85,12 @@ body {
--max-width: calc(100% - 2rem);
}

@media (min-width: 50em) {
/* @media (min-width: 50em) {
:root {
--max-width: 40em;
}
}

} */
/*
body {
font-family: var(--font-body);
font-size: 1rem;
Expand All @@ -110,7 +110,7 @@ small,
}
a {
/* color: var(--theme-accent); */
color: var(--theme-accent);
font-weight: 400;
text-underline-offset: 0.08em;
text-decoration: none;
Expand Down Expand Up @@ -151,4 +151,4 @@ a:focus {
strong {
font-weight: 600;
color: inherit;
}
} */

0 comments on commit 72be81a

Please sign in to comment.