Skip to content

Commit a894e22

Browse files
committed
Add Campaigns.components style
1 parent 31423ee commit a894e22

4 files changed

Lines changed: 113 additions & 2 deletions

File tree

src/Web/WebMVC/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<link rel="stylesheet" href="~/css/shared/components/identity/identity.css" />
1414
<link rel="stylesheet" href="~/css/shared/components/pager/pager.css" />
1515
<link rel="stylesheet" href="~/css/basket/basket.component.css" />
16+
<link rel="stylesheet" href="~/css/campaigns/campaigns.component.css" />
1617
<link rel="stylesheet" href="~/css/basket/basket-status/basket-status.component.css" />
1718
<link rel="stylesheet" href="~/css/catalog/catalog.component.css" />
1819
<link rel="stylesheet" href="~/css/orders/orders.component.css" />

src/Web/WebMVC/WebMVC.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@
99
<DockerComposeProjectPath>..\..\..\docker-compose.dcproj</DockerComposeProjectPath>
1010
</PropertyGroup>
1111

12+
<ItemGroup>
13+
<Content Remove="wwwroot/css\campaigns\catalog.component.css" />
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<Content Include="wwwroot\css\campaigns\campaigns.component.css" />
18+
<Content Include="wwwroot\css\campaigns\orders.component.css" />
19+
<Content Include="wwwroot\css\catalog\orders.component.css">
20+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
21+
</Content>
22+
</ItemGroup>
23+
1224
<!--<ItemGroup>
1325
<Compile Remove="wwwroot\lib\bootstrap\**" />
1426
<Content Remove="wwwroot\lib\bootstrap\**" />
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
.esh-campaigns-hero {
2+
background-image: url("../../images/main_banner.png");
3+
background-size: cover;
4+
height: 260px;
5+
width: 100%;
6+
}
7+
8+
.esh-campaigns-title {
9+
position: relative;
10+
top: 74.28571px;
11+
}
12+
13+
.esh-campaigns-label::before {
14+
color: rgba(255, 255, 255, 0.5);
15+
content: attr(data-title);
16+
font-size: 0.65rem;
17+
margin-top: 0.65rem;
18+
margin-left: 0.5rem;
19+
position: absolute;
20+
text-transform: uppercase;
21+
z-index: 1;
22+
}
23+
24+
.esh-campaigns-label::after {
25+
background-image: url("../../images/arrow-down.png");
26+
height: 7px;
27+
content: '';
28+
position: absolute;
29+
right: 1.5rem;
30+
top: 2.5rem;
31+
width: 10px;
32+
z-index: 1;
33+
}
34+
35+
.esh-campaigns-items {
36+
margin-top: 1rem;
37+
}
38+
39+
.esh-campaigns-item {
40+
text-align: center;
41+
margin-bottom: 1.5rem;
42+
width: 33%;
43+
display: inline-block;
44+
float: none !important;
45+
}
46+
47+
@media screen and (max-width: 1024px) {
48+
.esh-campaigns-item {
49+
width: 50%;
50+
}
51+
}
52+
53+
@media screen and (max-width: 768px) {
54+
.esh-campaigns-item {
55+
width: 100%;
56+
}
57+
}
58+
59+
.esh-campaigns-thumbnail {
60+
max-width: 370px;
61+
width: 100%;
62+
}
63+
64+
.esh-campaigns-button {
65+
background-color: #83D01B;
66+
border: none;
67+
color: #FFFFFF;
68+
cursor: pointer;
69+
font-size: 1rem;
70+
height: 3rem;
71+
margin-top: 1rem;
72+
transition: all 0.35s;
73+
width: 80%;
74+
}
75+
.esh-campaigns-button.is-disabled {
76+
opacity: .5;
77+
pointer-events: none;
78+
}
79+
80+
.esh-campaigns-button:hover {
81+
background-color: #4a760f;
82+
transition: all 0.35s;
83+
}
84+
85+
.esh-campaigns-name {
86+
font-size: 1rem;
87+
font-weight: 300;
88+
margin-top: .5rem;
89+
text-align: center;
90+
text-transform: uppercase;
91+
}
92+
93+
.esh-campaigns-description {
94+
text-align: center;
95+
font-weight: 300;
96+
font-size: 14px;
97+
}
98+

src/Web/WebMVC/wwwroot/css/shared/components/identity/identity.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
.esh-identity-drop {
3131
background: #FFFFFF;
32-
height: 0;
32+
height: 0rem;
3333
min-width: 14rem;
3434
right: 0;
3535
overflow: hidden;
@@ -41,7 +41,7 @@
4141

4242
.esh-identity:hover .esh-identity-drop {
4343
border: 1px solid #EEEEEE;
44-
height: 7rem;
44+
height: 9.5rem;
4545
transition: height 0.35s;
4646
}
4747

0 commit comments

Comments
 (0)