-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename classes according to correct BEM
- Loading branch information
1 parent
4897b8c
commit 79aa365
Showing
3 changed files
with
105 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,111 @@ | ||
.chat-window { | ||
&__chat-window { | ||
flex: 1 1; | ||
background: url('/chat-background.png'); | ||
box-sizing: border-box; | ||
margin: 0 auto; | ||
flex: 1 1; | ||
background: url('/chat-background.png'); | ||
box-sizing: border-box; | ||
margin: 0 auto; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
|
||
&__messages { | ||
overflow-y: auto; | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
row-gap: 10px; | ||
padding: 10px 20px 10px; | ||
} | ||
|
||
&__messages { | ||
overflow-y: auto; | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
row-gap: 10px; | ||
padding: 10px 20px 10px; | ||
} | ||
|
||
&__message { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
flex: 0 0 auto; | ||
gap: 15px; | ||
&__bottom-part { | ||
padding: 0 20px; | ||
box-sizing: border-box; | ||
border-top: 1px solid #e4e4e4; | ||
background-color: #fff; | ||
width: 100%; | ||
} | ||
|
||
width: fit-content; | ||
height: min-content; | ||
min-width: 70px; | ||
min-height: 30px; | ||
background-color: #ffffff; | ||
border-radius: 20px; | ||
align-items: flex-start; | ||
box-sizing: border-box; | ||
padding: 10px 10px; | ||
align-items: end; | ||
&__input { | ||
display: block; | ||
padding: 4px 12px; | ||
width: 100%; | ||
height: 31px; | ||
line-height: 20px; | ||
overflow: hidden; | ||
outline: none; | ||
border: 1px solid #ced1d7; | ||
font-family: Inter; | ||
font-size: 16px; | ||
box-sizing: border-box; | ||
border-radius: 16px; | ||
resize: none; | ||
} | ||
|
||
max-width: 60%; | ||
overflow-wrap: anywhere; | ||
&__bottom-part { | ||
padding: 5px 10px; | ||
display: flex; | ||
gap: 10px; | ||
align-items: flex-end; | ||
} | ||
|
||
&__text { | ||
font-size: 17px; | ||
line-height: 24px; | ||
} | ||
&__send-button { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border: none; | ||
background-color: #0468ff; | ||
width: 32px; | ||
height: 32px; | ||
color: #fff; | ||
rotate: 90deg; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
&__time-wrapper { | ||
display: flex; | ||
align-items: end; | ||
flex: 1 0 auto; | ||
} | ||
.message { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
flex: 0 0 auto; | ||
gap: 15px; | ||
|
||
&__time { | ||
font-size: 12px; | ||
color: #15224266; | ||
flex: 1 0 auto; | ||
} | ||
width: fit-content; | ||
height: min-content; | ||
min-width: 70px; | ||
min-height: 30px; | ||
background-color: #ffffff; | ||
border-radius: 20px; | ||
align-items: flex-start; | ||
box-sizing: border-box; | ||
padding: 10px 10px; | ||
align-items: end; | ||
|
||
&--mine { | ||
margin-left: auto; | ||
color: #fff; | ||
background-color: #0468ff; | ||
.chat-window__chat-window__message__time { | ||
color: #fff; | ||
} | ||
} | ||
} | ||
max-width: 60%; | ||
overflow-wrap: anywhere; | ||
|
||
&__bottom-part { | ||
padding: 0 20px; | ||
box-sizing: border-box; | ||
border-top: 1px solid #e4e4e4; | ||
background-color: #fff; | ||
width: 100%; | ||
} | ||
&__text { | ||
font-size: 17px; | ||
line-height: 24px; | ||
} | ||
|
||
&__input { | ||
display: block; | ||
padding: 4px 12px; | ||
width: 100%; | ||
height: 31px; | ||
line-height: 20px; | ||
overflow: hidden; | ||
outline: none; | ||
border: 1px solid #ced1d7; | ||
font-family: Inter; | ||
font-size: 16px; | ||
box-sizing: border-box; | ||
border-radius: 16px; | ||
resize: none; | ||
} | ||
&__time-wrapper { | ||
display: flex; | ||
align-items: end; | ||
flex: 1 0 auto; | ||
} | ||
|
||
&__bottom-part { | ||
padding: 5px 10px; | ||
display: flex; | ||
gap: 10px; | ||
align-items: flex-end; | ||
} | ||
&__time { | ||
font-size: 12px; | ||
color: #15224266; | ||
flex: 1 0 auto; | ||
} | ||
|
||
&__send-button { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border: none; | ||
background-color: #0468ff; | ||
width: 32px; | ||
height: 32px; | ||
&--mine { | ||
margin-left: auto; | ||
color: #fff; | ||
background-color: #0468ff; | ||
.message__time { | ||
color: #fff; | ||
rotate: 90deg; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters