Skip to content

Commit eaa3171

Browse files
committed
refactor(layout): extract reset styles into dedicated file
* Delete rubycentral.css * Move typeface imports into typography file
1 parent 18c1cae commit eaa3171

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

src/css/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@import './components/back.css';
1212

1313
/* /1* Layout *1/ */
14+
@import './layout/reset.css';
1415
@import './layout/navigation.css';
1516
@import './layout/dropdown.css';
1617
/* @import './layout/header.css'; */
@@ -22,7 +23,6 @@
2223
@import './pages/support.css';
2324
@import './pages/conferences.css';
2425

25-
@import './rubycentral.css';
2626
@import './modern.css';
2727

2828
/* Vendor */

src/css/base/typography.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
2+
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
3+
14
body {
25
color: var(--text);
36
font-family: 'Inter', sans-serif;
47
font-size: 1rem;
5-
margin: 0;
6-
padding: 0;
78
}
89

910
h1,

src/css/layout/reset.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
* {
2+
box-sizing: border-box;
3+
-webkit-font-smoothing: antialiased;
4+
-moz-osx-font-smoothing: grayscale;
5+
}
6+
7+
html {
8+
scroll-behavior: smooth;
9+
}
10+
11+
body {
12+
margin: 0;
13+
padding: 0;
14+
}

src/css/rubycentral.css

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)