Skip to content

Commit 4460649

Browse files
committed
add styles for hint & hint option for button, textarea, input
1 parent 8379eea commit 4460649

7 files changed

Lines changed: 32 additions & 32 deletions

File tree

projects/social_platform/src/app/office/projects/edit/shared/project-additional-step/project-additional-step.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130

131131
app-tooltip {
132132
position: absolute;
133-
bottom: 70%;
134133
right: -10%;
134+
bottom: 70%;
135135
}
136136
}
137137
}

projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116

117117
app-tooltip {
118118
position: absolute;
119-
bottom: 70%;
120119
right: -2%;
120+
bottom: 70%;
121121
}
122122
}
123123
}

projects/social_platform/src/app/ui/components/avatar-control/avatar-control.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@use "styles/responsive";
22

33
.control {
4-
border-radius: 50%;
54
position: relative;
5+
border-radius: 50%;
66

77
&__overlay {
88
position: absolute;
@@ -70,10 +70,10 @@
7070

7171
&__tooltip-wrapper {
7272
position: absolute;
73-
right: -10px;
7473
top: 10%;
75-
transform: translateY(-50%);
74+
right: -10px;
7675
z-index: 10;
76+
transform: translateY(-50%);
7777
}
7878
}
7979

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

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

33
.button {
4-
max-height: 52px;
4+
position: relative;
55
display: inline-flex;
66
align-items: center;
77
justify-content: center;
8+
max-height: 52px;
89
text-align: center;
910
cursor: pointer;
10-
transition: all 0.2s;
1111
border-radius: var(--rounded-xxl);
12-
position: relative;
12+
transition: all 0.2s;
1313

1414
&.button--inline {
1515
font-weight: 400;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@
7575

7676
&__tooltip-wrapper {
7777
position: absolute;
78-
right: 20px;
7978
top: 50%;
80-
transform: translateY(-50%);
79+
right: 20px;
8180
z-index: 10;
81+
transform: translateY(-50%);
8282

8383
&--small {
84-
right: -10px;
8584
top: 10%;
85+
right: -10px;
8686
}
8787
}
8888
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555

5656
&__tooltip-wrapper {
5757
position: absolute;
58-
right: 20px;
5958
top: 20%;
60-
transform: translateY(-50%);
59+
right: 20px;
6160
z-index: 10;
61+
transform: translateY(-50%);
6262
}
6363
}

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,70 +30,70 @@
3030
background-color: var(--white);
3131
border: 1px solid var(--dark-grey);
3232
border-radius: 15px;
33+
box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
3334
opacity: 0;
3435
transition: opacity 0.3s ease-in-out;
35-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
3636

3737
&--visible {
3838
display: block;
3939
opacity: 1;
4040
}
4141

4242
&--left {
43-
right: calc(100% + 8px);
4443
top: 50%;
44+
right: calc(100% + 8px);
45+
border-radius: 15px 15px 15px 0;
4546
transform: translateY(-50%);
46-
border-radius: 15px 15px 15px 0px;
4747

4848
&::after {
49-
content: '';
5049
position: absolute;
51-
left: 100%;
5250
top: 50%;
53-
transform: translateY(-50%);
51+
left: 100%;
52+
content: "";
5453
border-top: 8px solid transparent;
5554
border-bottom: 8px solid transparent;
5655
border-left: 8px solid var(--white);
56+
transform: translateY(-50%);
5757
}
5858

5959
&::before {
60-
content: '';
6160
position: absolute;
62-
left: calc(100% + 1px);
6361
top: 50%;
64-
transform: translateY(-50%);
62+
left: calc(100% + 1px);
63+
content: "";
6564
border-top: 9px solid transparent;
6665
border-bottom: 9px solid transparent;
6766
border-left: 9px solid var(--dark-grey);
67+
transform: translateY(-50%);
6868
}
6969
}
7070

7171
&--right {
72-
left: calc(100% + 8px);
7372
top: 50%;
73+
left: calc(100% + 8px);
74+
border-radius: 15px 15px 0;
7475
transform: translateY(-50%);
75-
border-radius: 15px 15px 0px 15px;
7676

7777
&::after {
78-
content: '';
7978
position: absolute;
80-
right: 100%;
8179
top: 50%;
82-
transform: translateY(-50%);
80+
right: 100%;
81+
content: "";
8382
border-top: 8px solid transparent;
84-
border-bottom: 8px solid transparent;
8583
border-right: 8px solid var(--white);
84+
border-bottom: 8px solid transparent;
85+
transform: translateY(-50%);
8686
}
8787

8888
&::before {
89-
content: '';
9089
position: absolute;
91-
right: calc(100% + 1px);
9290
top: 50%;
93-
transform: translateY(-50%);
91+
right: calc(100% + 1px);
92+
content: "";
9493
border-top: 9px solid transparent;
95-
border-bottom: 9px solid transparent;
9694
border-right: 9px solid var(--dark-grey);
95+
border-bottom: 9px solid transparent;
96+
transform: translateY(-50%);
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)