Skip to content

Commit

Permalink
Merge pull request #1 from moevm/kharitonov
Browse files Browse the repository at this point in the history
Button: добавлена кнопка
  • Loading branch information
necitboss authored Oct 27, 2024
2 parents ef00887 + 9337d26 commit 366e247
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
19 changes: 19 additions & 0 deletions main/_front/src/html/btn.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="../scss/style.scss">
<script src="../js/main.js" defer></script>
</head>
<body>
<div class="section">
<div class="container">
<button class="btn" disabled>Кнопка</button>
</div>
</div>
</body>
</html>
5 changes: 5 additions & 0 deletions main/_front/src/scss/_base.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
body {
font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
font-size: 16px;
}

.container {
width: 100%;
max-width: 1170px;
Expand Down
5 changes: 5 additions & 0 deletions main/_front/src/scss/blocks/_section.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Это блок для обертки UI элементов, которые мы будем делать

.section {
margin-top: 30px;
}
27 changes: 27 additions & 0 deletions main/_front/src/scss/elems/_btn.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@import "../vars";

.btn {
display: inline-block;
background: $primary;
font-size: 18px;
line-height: 21px;
color: white;
font-weight: bold;
text-decoration: none;
border-radius: 8px;
min-width: 190px;
border: 1px solid $primary;
padding: 12px;
transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
&:hover {
background-color:#fff;
color: $primary;
}

&:disabled {
background: $primary;
color: white;
opacity: 0.4;
cursor: not-allowed;
}
}

0 comments on commit 366e247

Please sign in to comment.