Skip to content

Commit d8a787f

Browse files
New Headers Implementation (#28)
1 parent 4ffe3a6 commit d8a787f

File tree

6 files changed

+333
-174
lines changed

6 files changed

+333
-174
lines changed
Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 8 additions & 1 deletion
Loading

src/app/data/icons/full_screen.svg

Lines changed: 5 additions & 0 deletions
Loading

src/app/data/icons/view_more.svg

Lines changed: 5 additions & 0 deletions
Loading

src/app/views/home/home-view.scss

Lines changed: 60 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@
2828

2929
.tab-container {
3030
width: 100%;
31-
min-height: 132px;
3231
overflow: hidden;
3332
flex-shrink: 0;
34-
padding: 16px;
3533
display: flex;
3634
flex-direction: row;
3735
justify-content: space-between;
3836
background-color: var(--ig-surface-500);
3937
box-sizing: border-box;
38+
4039
& a {
4140
text-decoration: none;
4241
display: block;
@@ -47,148 +46,107 @@
4746

4847
.tab-item-container {
4948
width: 100%;
50-
height: 100%;
49+
height: 72px;
5150
display: inline-flex;
5251
}
5352

5453
.tab-item {
54+
align-items: center;
5555
height: 100%;
5656
display: flex;
5757
flex-grow: 1;
5858
flex-basis: 0;
59-
flex-direction: column;
60-
justify-content: space-between;
59+
flex-direction: row;
60+
justify-content: center;
6161
gap: 8px;
6262
padding: 12px;
6363
cursor: pointer;
6464
user-select: none;
65-
border-bottom: 1px solid var(--ig-gray-300);
65+
color: black;
6666

6767
&--selected {
6868
border-bottom: 3px solid var(--ig-primary-500);
69+
color: var(--ig-primary-500);
6970
}
7071

7172
&:hover {
72-
background: hsl(from var(--ig-gray-100) h s l/0.5);
73+
background-color: var(--ig-gray-200);
7374
}
7475
}
7576

7677
.tab-header {
7778
display: flex;
7879
flex-direction: row;
7980
gap: 8px;
80-
color: var(--ig-gray-900);
81-
font-size: 20px;
81+
font-size: 16px;
8282
font-weight: 600;
83-
line-height: 24px;
83+
line-height: 20px;
8484
letter-spacing: 0.15px;
8585
--ig-size: var(--ig-size-medium);
86-
87-
&--disabled {
88-
color: var(--ig-gray-700) !important;
89-
}
9086
}
9187

92-
.tab-content {
88+
.current-tab-info {
9389
display: flex;
94-
flex-direction: column;
95-
gap: 4px;
96-
color: var(--ig-gray-900);
97-
font-size: 14px;
98-
font-weight: 400;
99-
font-family: "aktiv-grotesk", sans-serif;
100-
line-height: 20px;
101-
letter-spacing: 0.25px;
102-
103-
&--disabled {
104-
color: var(--ig-gray-700) !important;
105-
}
106-
}
107-
108-
.tab-actions {
109-
display: flex;
110-
flex-direction: row;
111-
align-items: center;
11290
justify-content: space-between;
113-
--ig-size: var(--ig-size-small);
114-
--disabled-icon-color: #ffffff;
115-
116-
igc-icon-button.button--disabled::part(base) {
117-
background-color: var(--ig-gray-600);
118-
color: #ffffff;
119-
&:hover {
120-
background-color: var(--ig-gray-800);
121-
}
91+
gap: 2rem;
92+
width: 100%;
93+
height: 90px;
94+
padding: 20px 24px;
95+
border: 1px solid #D6D6D6;
96+
97+
.sample-info {
98+
height: 58px;
99+
display: flex;
100+
flex-direction: column;
101+
row-gap: 8px;
122102
}
123103

124-
igc-icon-button.button--enabled::part(base) {
125-
background-color: #212121;
126-
color: #ffffff;
127-
&:hover {
128-
background-color: var(--ig-gray-600);
129-
}
104+
.tab-description {
105+
font-weight: 300;
106+
font-size: 12px;
107+
line-height: 100%;
108+
letter-spacing: 0%;
130109
}
131110

132-
.learn-text {
133-
text-decoration: none;
134-
color: var(--ig-primary-500);
111+
.sample-actions {
112+
display: flex;
113+
gap: 16px;
114+
align-items: center;
115+
line-height: 100%;
135116
font-size: 14px;
136-
font-weight: 700;
137-
font-family: "aktiv-grotesk", sans-serif;
138-
line-height: 20px;
139-
140-
width: unset;
141-
padding-bottom: 2px;
142-
transition: background-size 350ms;
143-
background: linear-gradient(0deg, var(--bg-color), var(--bg-color)) no-repeat right bottom / 0 var(--bg-h);
144-
--bg-h: 2px;
145-
--bg-color: var(--ig-primary-500);
146-
147-
&:where(:hover, :focus-visible) {
148-
background-size: 100% var(--bg-h);
149-
background-position-x: left;
117+
118+
.theme-info {
119+
display: flex;
120+
flex-direction: column;
121+
justify-content: center;
122+
font-weight: 600;
123+
letter-spacing: 0.15px;
124+
height: 40px;
125+
padding-right: 16px;
126+
border-right: 1px solid #D6D6D6;
150127
}
151128

152-
&.link--disabled {
153-
color: var(--ig-primary-200);
154-
--bg-color: var(--ig-primary-200);
129+
.action-buttons {
130+
display: flex;
131+
justify-content: space-between;
132+
gap: 16px;
133+
134+
.custom-button::part(base) {
135+
color: black;
136+
border-color: #D6D6D6;
137+
text-transform: unset;
155138

156-
&:hover {
157-
color: var(--ig-primary-500);
158-
--bg-color: var(--ig-primary-500);
139+
igc-icon::part(icon) {
140+
color: black;
141+
}
159142
}
160143
}
161144
}
162145
}
163146

164-
.tooltip {
165-
position: relative;
166-
display: inline-block;
167-
168-
& .tooltip--text {
169-
visibility: hidden;
170-
background: #85888fe6;
171-
box-shadow: rgba(36, 37, 44, 0.2) 0px 2px 2px 0px;
172-
color: white;
173-
padding: 4px 8px;
174-
font-size: .625rem;
175-
border-radius: 4px;
176-
min-height: 24px;
177-
top: 100%;
178-
left: 50%;
179-
width: 120px;
180-
transform: translateX(-50%) translateY(5px);
181-
text-align: center;
182-
position: absolute;
183-
z-index: 1;
184-
font-family: var(--ig-font-family);
185-
opacity: 0;
186-
transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
187-
}
188-
&:hover > .tooltip--text {
189-
opacity: 1;
190-
transform: translateX(-50%) translateY(0);
191-
visibility: visible;
192-
transition-delay: 1s;
193-
}
194-
}
147+
:-webkit-full-screen {
148+
width: 100vw;
149+
height: 100vh;
150+
overflow: auto;
151+
background: white;
152+
}

0 commit comments

Comments
 (0)