Content-Length: 327418 | pFad | http://github.com/angular-robot/angular/commit/efb4783ca0bf1e7c8606eb27fb706c08542a965f

B1 docs(docs-infra): fix banner position on mobile & tablet (#62521) · angular-robot/angular@efb4783 · GitHub
Skip to content

Commit efb4783

Browse files
JeanMecheAndrewKushnir
authored andcommitted
docs(docs-infra): fix banner position on mobile & tablet (angular#62521)
angular#62509 PR Close angular#62521
1 parent 07336e7 commit efb4783

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

adev/src/app/features/home/components/home-animation/home-animation.component.scss

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,27 @@ $transition: 200ms linear;
7070
.adev-banner-container {
7171
display: flex;
7272
flex-direction: column;
73-
gap: .5rem;
73+
gap: 0.5rem;
7474
position: absolute;
7575
transition:
7676
background 0.3s ease,
7777
border 0.3s ease,
7878
transform $transition;
7979
top: var(--layout-padding);
8080
left: calc(var(--layout-padding) + var(--primary-nav-width));
81+
82+
@include mq.for-tablet-landscape-down {
83+
top: 6rem;
84+
left: var(--layout-padding);
85+
/* Assuming the container width is identical to the viewport width (mobile device). */
86+
max-width: calc(100% - var(--layout-padding) * 2);
87+
}
88+
89+
@include mq.for-phone-only {
90+
& {
91+
top: 5rem;
92+
}
93+
}
8194
}
8295

8396
.adev-banner {
@@ -93,21 +106,6 @@ $transition: 200ms linear;
93106
width: fit-content;
94107
box-sizing: border-box;
95108

96-
@include mq.for-tablet-landscape-down {
97-
& {
98-
top: 6rem;
99-
left: var(--layout-padding);
100-
/* Assuming the container width is identical to the viewport width (mobile device). */
101-
max-width: calc(100% - var(--layout-padding) * 2);
102-
}
103-
}
104-
105-
@include mq.for-phone-only {
106-
& {
107-
top: 5rem;
108-
}
109-
}
110-
111109
h1,
112110
p {
113111
display: inline;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular-robot/angular/commit/efb4783ca0bf1e7c8606eb27fb706c08542a965f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy