Skip to content

Commit a779835

Browse files
committed
initial commit
0 parents  commit a779835

62 files changed

Lines changed: 1153 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

6 KB
Binary file not shown.

mesto-project-ff/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Проектная работа Mesto
2+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.card__delete-button {
2+
width: 18px;
3+
height: 18px;
4+
background: transparent url('../../../images/delete-icon.svg') center no-repeat;
5+
/*Потом это будет из модификатора*/
6+
background-size: 18px 18px;
7+
border: none;
8+
cursor: pointer;
9+
position: absolute;
10+
top: 18px;
11+
right: 15px;
12+
padding: 0;
13+
margin: 0;
14+
-webkit-transition: 0.3s;
15+
-moz-transition: 0.3s;
16+
-ms-transition: 0.3s;
17+
-o-transition: 0.3s;
18+
transition: 0.3s;
19+
}
20+
21+
.card__delete-button:hover {
22+
opacity: 0.6;
23+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.card__description {
2+
display: flex;
3+
justify-content: space-between;
4+
align-items: center;
5+
background: #fff;
6+
padding: 25px 20px;
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.card__image {
2+
height: 282px;
3+
object-fit: cover;
4+
width: 100%;
5+
}
6+
7+
.card__image:hover {
8+
cursor: pointer;
9+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.card__like-button_is-active {
2+
background: transparent url('../../../../images/like-active.svg') no-repeat;
3+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.card__like-button {
2+
width: 21px;
3+
height: 18px;
4+
background: transparent url('../../../images/like-inactive.svg') no-repeat;
5+
6+
background-size: 21px 18px;
7+
border: none;
8+
cursor: pointer;
9+
padding: 0;
10+
margin: 0;
11+
-webkit-transition: 0.3s;
12+
-moz-transition: 0.3s;
13+
-ms-transition: 0.3s;
14+
-o-transition: 0.3s;
15+
transition: 0.3s;
16+
}
17+
18+
.card__like-button:hover {
19+
opacity: 0.6;
20+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.card__title {
2+
max-width: 220px;
3+
font-size: 24px;
4+
line-height: 29px;
5+
text-overflow: ellipsis;
6+
white-space: nowrap;
7+
overflow: hidden;
8+
/*Либо с точками из макета, либо этот набор свойств для эллипсиса текста в можно лучше*/
9+
margin: 0;
10+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@import url('./__description/card__description.css');
2+
@import url('./__image/card__image.css');
3+
@import url('./__like-button/card__like-button.css');
4+
@import url('./__like-button/_is-active/card__like-button_is-active.css');
5+
@import url('./__delete-button/card__delete-button.css');
6+
@import url('./__title/card__title.css');
7+
8+
.card {
9+
font-family: 'Inter', Arial, sans-serif;
10+
-webkit-border-radius: 10px;
11+
-moz-border-radius: 10px;
12+
border-radius: 10px;
13+
position: relative;
14+
overflow: hidden;
15+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.content {
2+
flex-shrink: 0;
3+
flex-grow: 1;
4+
}

0 commit comments

Comments
 (0)