Skip to content

Commit 2e530f8

Browse files
committed
add styles for kanban task-deatail, create-tag-form, dropdown, tag components
1 parent d033e35 commit 2e530f8

7 files changed

Lines changed: 48 additions & 52 deletions

File tree

projects/social_platform/src/app/office/features/context-menu/context-menu.component.scss

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,39 @@
33
.context-menu {
44
position: fixed;
55
z-index: 9999;
6-
7-
background-color: white;
8-
border-radius: 8px;
9-
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
10-
116
padding: 8px 0;
127
margin: 0;
138
list-style: none;
14-
15-
transition: opacity 0.15s ease;
9+
background-color: white;
10+
border-radius: 8px;
1611
outline: none;
12+
box-shadow: 0 4px 16px rgb(0 0 0 / 12%);
13+
transition: opacity 0.15s ease;
1714

1815
&__item {
1916
padding: 10px 16px;
20-
cursor: pointer;
2117
white-space: nowrap;
18+
cursor: pointer;
2219
user-select: none;
2320
transition: background-color 0.15s ease;
2421

2522
&:hover {
26-
background-color: rgba(0, 0, 0, 0.04);
23+
background-color: rgb(0 0 0 / 4%);
2724
}
2825

2926
&:active {
30-
background-color: rgba(0, 0, 0, 0.08);
27+
background-color: rgb(0 0 0 / 8%);
3128
}
3229

3330
&--red {
3431
color: #f44336;
3532

3633
&:hover {
37-
background-color: rgba(244, 67, 54, 0.08);
34+
background-color: rgb(244 67 54 / 8%);
3835
}
3936

4037
&:active {
41-
background-color: rgba(244, 67, 54, 0.16);
38+
background-color: rgb(244 67 54 / 16%);
4239
}
4340
}
4441

@@ -47,15 +44,15 @@
4744
}
4845

4946
&--disabled {
50-
opacity: 0.5;
51-
cursor: not-allowed;
5247
pointer-events: none;
48+
cursor: not-allowed;
49+
opacity: 0.5;
5350
}
5451
}
5552

5653
&__divider {
5754
height: 1px;
5855
margin: 8px 0;
59-
background-color: rgba(0, 0, 0, 0.08);
56+
background-color: rgb(0 0 0 / 8%);
6057
}
6158
}

projects/social_platform/src/app/office/features/news-card/news-card.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
}
4141

4242
&__option {
43+
width: 120px;
4344
padding: 5px 20px;
45+
color: var(--grey-for-text);
4446
cursor: pointer;
45-
width: 120px;
4647
transition: background-color 0.2s;
47-
color: var(--grey-for-text);
4848

4949
&:hover {
5050
color: var(--accent);

projects/social_platform/src/app/office/projects/detail/kanban-board/kanban-board.component.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
.kanban {
42
&__wrapper {
53
position: relative;
@@ -33,8 +31,8 @@
3331
border-radius: var(--rounded-xl);
3432

3533
&--empty {
36-
cursor: pointer;
3734
justify-content: center;
35+
cursor: pointer;
3836
}
3937
}
4038

@@ -46,7 +44,8 @@
4644
margin-top: 20px;
4745
}
4846

49-
i, p {
47+
i,
48+
p {
5049
color: var(--accent);
5150
cursor: pointer;
5251
}

projects/social_platform/src/app/office/projects/detail/kanban-board/shared/create-tag-form/create-tag-form.component.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
.create-tag {
22
&__form {
33
display: flex;
4-
align-items: center;
54
gap: 5px;
5+
align-items: center;
66
}
77

88
&__pick-color {
9-
border-radius: var(--rounded-sm);
10-
height: 9px;
11-
width: 9px;
129
position: relative;
10+
width: 9px;
11+
height: 9px;
1312
cursor: pointer;
13+
border-radius: var(--rounded-sm);
1414
}
1515

1616
&__input {
@@ -29,17 +29,17 @@
2929

3030
&__colors {
3131
position: absolute;
32-
bottom: -25%;
3332
right: -12%;
33+
bottom: -25%;
3434
padding: 7px;
3535
background-color: var(--light-white);
36-
border-radius: var(--rounded-md);
3736
border: 0.5px solid var(--medium-grey-for-outline);
37+
border-radius: var(--rounded-md);
3838

3939
&-wrapper {
4040
display: grid;
41-
grid-template-columns: repeat(4, 1fr);
4241
grid-template-rows: repeat(2, 1fr);
42+
grid-template-columns: repeat(4, 1fr);
4343
gap: 3px;
4444
}
4545
}
@@ -48,13 +48,13 @@
4848
.field {
4949
&__option {
5050
display: flex;
51+
gap: 5px;
5152
align-items: center;
5253
justify-content: space-between;
5354
cursor: pointer;
54-
gap: 5px;
5555
transition: color 0.2s ease-in-out;
5656

57-
&--add-object {
57+
&--add-object {
5858
display: flex;
5959
align-items: center;
6060
justify-content: center;

projects/social_platform/src/app/office/projects/detail/kanban-board/shared/task/detail/task-detail.component.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@use "styles/typography";
22

33
.kanban {
4-
&__detail {
4+
&__detail {
55
position: absolute;
66
top: 0%;
77
right: 0%;
@@ -25,7 +25,9 @@
2525
}
2626
}
2727

28-
&-type, &-priority-wrapper, &-delete-wrapper {
28+
&-type,
29+
&-priority-wrapper,
30+
&-delete-wrapper {
2931
cursor: pointer;
3032
}
3133

@@ -34,7 +36,6 @@
3436
height: 15px;
3537
background-color: var(--green);
3638
border-radius: var(--rounded-xxl);
37-
3839
}
3940

4041
&-general {
@@ -65,18 +66,17 @@
6566

6667
::ng-deep {
6768
app-input {
68-
6969
.field {
7070
width: 44px !important;
7171
height: 23px !important;
7272
}
7373

7474
.field__input {
75-
border: 0;
75+
max-width: 44px;
76+
padding: 0;
7677
background: transparent;
78+
border: 0;
7779
border-radius: 0;
78-
padding: 0;
79-
max-width: 44px;
8080

8181
&:focus {
8282
border-color: 0;
@@ -136,8 +136,8 @@
136136
position: absolute;
137137
top: 50%;
138138
left: 50%;
139-
transform: translate(-50%, -50%);
140139
color: var(--light-white) !important;
140+
transform: translate(-50%, -50%);
141141
}
142142
}
143143

@@ -173,7 +173,7 @@
173173
}
174174

175175
&-description {
176-
margin: 12px 0px;
176+
margin: 12px 0;
177177

178178
::ng-deep {
179179
app-textarea {
@@ -338,7 +338,7 @@
338338
color: var(--accent);
339339
cursor: pointer;
340340
background-color: var(--accent);
341-
border-radius: var(--rounded-sm)
341+
border-radius: var(--rounded-sm);
342342
}
343343

344344
&__input {

projects/social_platform/src/app/ui/components/dropdown/dropdown.component.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
.field {
22
&__options {
3+
z-index: 1000;
4+
display: flex;
5+
flex-direction: column;
6+
gap: 5px;
7+
align-items: flex-start;
38
width: 100%;
49
max-height: 200px;
510
padding: 12px;
611
overflow-y: auto;
712
background-color: var(--light-white);
813
border: 0.5px solid var(--medium-grey-for-outline);
914
border-radius: var(--rounded-lg);
10-
z-index: 1000;
11-
display: flex;
12-
flex-direction: column;
13-
gap: 5px;
14-
align-items: flex-start;
1515
}
1616

1717
&__option {
1818
display: flex;
19+
gap: 5px;
1920
align-items: center;
2021
justify-content: space-between;
2122
cursor: pointer;
22-
gap: 5px;
2323
transition: color 0.2s ease-in-out;
2424

25-
&--add-object {
25+
&--add-object {
2626
display: flex;
2727
align-items: center;
2828
justify-content: center;
@@ -45,8 +45,8 @@
4545

4646
&--additional {
4747
display: flex;
48-
align-items: center;
4948
gap: 5px;
49+
align-items: center;
5050

5151
i {
5252
color: var(--accent);

projects/social_platform/src/app/ui/components/tag/tag.component.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/** @format */
22

33
.tag {
4+
position: relative;
45
display: flex;
56
align-items: center;
67
justify-content: center;
@@ -11,10 +12,9 @@
1112
text-overflow: ellipsis;
1213
white-space: nowrap;
1314
border-radius: var(--rounded-xxl);
14-
position: relative;
1515

1616
p {
17-
margin: 0px 10px;
17+
margin: 0 10px;
1818
}
1919

2020
&--inline {
@@ -96,13 +96,13 @@
9696
top: 30%;
9797
right: 5%;
9898
display: flex;
99-
align-items: center;
10099
flex-shrink: 0;
101100
gap: 3px;
101+
align-items: center;
102102

103103
i {
104-
opacity: 1;
105104
cursor: pointer;
105+
opacity: 1;
106106

107107
&:hover {
108108
opacity: 0.7;

0 commit comments

Comments
 (0)