Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions 03-lection1/01-button/button.css
Original file line number Diff line number Diff line change
@@ -1 +1,47 @@
/* Стилизация кнопки */

.button:disabled {
pointer-events: none;
opacity: 0.5;
}

.button {
height: 48px;
color: var(--white);
border-radius: 8px;
font-family: Roboto, sans-serif;
font-weight: 500;
font-size: 16px;
line-height: 100%;
padding: 15px 0 14px 0;
}

.button_primary {
background-color: var(--primary);
border: 1px solid var(--primary);
}

.button_secondary {
background-color: var(--secondary);
border: 1px solid var(--secondary);
transition: background 200ms ease-in-out;
}

.button_primary:hover {
background-color: var(--dark-blue);
}

.button_secondary:hover {
background-color: var(--dark-purple);
}

.button_alternate {
background-color: transparent;
border: 1px solid #ACB5BD;
color: var(--black);
}

.button_alternate:hover {
border: 1px solid var(--black);
color: var(--black);
}
24 changes: 17 additions & 7 deletions 03-lection1/01-button/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
<!DOCTYPE html>
<!-- Страница с кнопкой -->
<html lang="ru">
<head>
<link rel="stylesheet" href="../../assets/css/main.css">
<link rel="stylesheet" href="./button.css">
</head>
<body>

</body>
</html>
<head>
<link rel="stylesheet" href="../../assets/css/main.css">
<link rel="stylesheet" href="./button.css">
</head>

<body>
<div class="container">
<button class="button button_primary">Primary</button>
<button class="button button_primary" disabled>Primary</button>
<button class="button button_secondary">Secondary</button>
<button class="button button_secondary" disabled>Secondary</button>
<button class="button button_alternate">Alternate</button>
<button class="button button_alternate" disabled>Alternate</button>
</div>
</body>

</html>
7 changes: 5 additions & 2 deletions assets/css/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import 'normalize.css';
@import '../../components/content/content.css';
@import '../../components/container/container.css';
@import '../../components/footer/footer.css';
@import '../../components/header/header.css';
@import '../../components/page/page.css';
Expand All @@ -9,7 +10,9 @@
--black: #212429;
--pink: #F784AD;
--purple: #7048E8;
--blue: #374FC7;
--dark-purple: #5028C6;
--blue: #4263EB;
--dark-blue: #2342C0;
--red: #F03D3E;
--grey-1: #F8F9FA;
--grey-2: #DDE2E5;
Expand All @@ -22,5 +25,5 @@
}

* {
font-family: 'Roboto', sans-serif;
font-family: 'Inter', sans-serif;
}
1 change: 1 addition & 0 deletions assets/fonts/fonts.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.