Skip to content

Commit

Permalink
feat: Add default styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Andr-19 committed Feb 3, 2025
1 parent d74ffdf commit 9a8f3a6
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,43 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Базовое решение — Псевдоприватные кастомные свойства — Дока</title>

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap"
/>
<style>
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
color-scheme: dark;
}

body {
min-height: 100vh;
padding: 50px;
display: flex;
align-items: center;
justify-content: center;
background-color: #18191c;
color: #ffffff;
font-family: "Roboto", sans-serif;
}

@media (max-width: 768px) {
body {
padding: 30px;
}
}
</style>

<style>
* {
box-sizing: border-box;
Expand Down
37 changes: 37 additions & 0 deletions css/pseudo-private-custom-property/demos/products-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,43 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Решение с псевдоприватными свойствами — Псевдоприватные кастомные свойства — Дока</title>

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap"
/>
<style>
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
color-scheme: dark;
}

body {
min-height: 100vh;
padding: 50px;
display: flex;
align-items: center;
justify-content: center;
background-color: #18191c;
color: #ffffff;
font-family: "Roboto", sans-serif;
}

@media (max-width: 768px) {
body {
padding: 30px;
}
}
</style>

<style>
* {
box-sizing: border-box;
Expand Down

0 comments on commit 9a8f3a6

Please sign in to comment.