Skip to content

Commit b5ea8d8

Browse files
committed
Minor fixes
1 parent 18337b4 commit b5ea8d8

File tree

6 files changed

+33
-36
lines changed

6 files changed

+33
-36
lines changed

ux.symfony.com/assets/styles/app/_html.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ button:active {
4646
}
4747

4848
a.link {
49-
--color: #d9438e;
49+
--color: var(--bs-code-color);
5050
color: var(--color);
5151
position: relative;
5252
&:after {

ux.symfony.com/assets/styles/components/_Banner.scss

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
.Banner {
66
background: #0A0A0A;
7+
color: #fff;
78
}
89
.Banner + .App {
910
position: relative;
@@ -13,55 +14,57 @@
1314
display: none;
1415
}
1516

16-
.Banner .container-xxl {
17-
max-width: 1320px;
18-
margin: 0 auto;
19-
}
20-
2117
.BannerInner {
2218
display: flex;
2319
flex-direction: column;
24-
padding: 2rem 1rem;
20+
padding: 1rem 0;
2521
gap: 1rem;
2622
position: relative;
23+
max-width: 920px;
24+
margin: 0 auto;
2725
}
2826

2927
.BannerMedia {
3028
align-self: center;
3129
justify-self: center;
3230
}
3331
.BannerImage {
34-
width: 92px;
32+
width: max(10vw, 40px);
3533
height: auto;
36-
filter: drop-shadow(1px 1px 8px #000) drop-shadow(2px 2px 32px #970404);
34+
filter: drop-shadow(1px 1px .5rem #000) drop-shadow(2px 2px 2rem #970404);
3735
}
3836

3937
.BannerContent {
4038
flex: 1;
4139
display: flex;
4240
flex-direction: column;
4341
place-content: center;
44-
color: #fff;
45-
font-family: var(--font-family-text);
42+
gap: 0.5rem;
43+
text-wrap: balance;
4644
}
4745

4846
.BannerTitle {
4947
text-align: center;
50-
font-size: 1.5rem;
48+
font-size: 1.2em;
5149
font-family: var(--font-family-title);
50+
margin: 0;
51+
color: #fff;
5252
}
53-
.BannerTitle a {
53+
.BannerTitle a:hover {
5454
text-shadow: 0 0 1px 4px red;
55-
font-size: 1.05em;
5655
}
5756

5857
.BannerText {
59-
margin-block-end: 0.5rem;
58+
text-align: center;
59+
margin: 0;
60+
font-size: 0.85rem;
61+
line-height: 1.2;
62+
font-weight: 300;
63+
color: #fff;
6064
}
6165
.BannerText em {
6266
text-decoration: underline;
6367
text-underline-offset: .25rem;
64-
text-underline-style: double;
6568
}
6669

6770
.BannerAction {
@@ -73,20 +76,19 @@
7376
.BannerButton {
7477
display: flex;
7578
align-items: center;
76-
padding: .75rem 1.5rem;
79+
padding: .35em .75em;
7780
align-self: center;
7881
color: #fffc;
79-
font-size: 1.5rem;
82+
font-size: 1.1em;
8083
font-family: var(--font-family-title);
81-
gap: .5rem;
84+
gap: .5em;
8285
justify-content: center;
8386
background: linear-gradient(#000e, #000d) padding-box,
8487
linear-gradient(90deg, #D65831 0%, #D2D631 36.52%, #31D673 71.83%, #3aa3ff 100%) border-box;
85-
border-radius: 2rem;
86-
border: 4px solid transparent;
88+
border-radius: 2em;
89+
border: 2px solid transparent;
8790
transition: all 250ms linear;
8891
}
89-
9092
.BannerButton:hover {
9193
color: #fff;
9294
}
@@ -102,21 +104,16 @@
102104
color: currentColor;
103105
transition: all 250ms linear;
104106
}
105-
106107
.BannerButton:hover svg {
107108
transform: scale(1.1);
108109
}
109110

110111
@media screen and (min-width: 768px) {
111112
.BannerImage {
112-
width: 128px;
113+
width: 64px;
113114
}
114115
.BannerInner {
115116
flex-direction: row;
116-
padding: 2rem;
117-
gap: 4rem;
118-
}
119-
.BannerTitle {
120-
text-align: left;
117+
padding: 1rem 2rem;
121118
}
122119
}

ux.symfony.com/assets/styles/components/_DemoCard.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
transition: color 250ms ease-in-out, transform 750ms ease-in-out, box-shadow 750ms ease-in-out;
1616
transform: translateY(0);
1717
box-shadow: 0 0 0 transparent;
18+
background: var(--bs-body-bg);
1819
}
1920
.DemoCard:hover {
2021
transition: color 250ms ease-in-out, transform 250ms ease-in-out, box-shadow 250ms ease-in-out;
@@ -38,11 +39,10 @@
3839
max-height: 100%;
3940
width: 100%;
4041
display: block;
41-
border-radius: .25rem;
42-
opacity: .80;
42+
opacity: .90;
4343
}
4444
.DemoCard:hover .DemoCard__image {
45-
opacity: .90;
45+
opacity: .93;
4646
}
4747

4848
.DemoCard__content {

ux.symfony.com/templates/components/Demo/PrevNext.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<div style="display: flex; gap: 3rem; flex-wrap: wrap;" class="justify-content-center justify-content-lg-between">
44
{% set previous = this.previous(true) %}
55
{% if previous %}
6-
<div style="max-width: 360px;--bs-secondary-bg-subtle: var(--bs-dark-bg-subtle);">
6+
<div style="max-width: 380px;--bs-secondary-bg-subtle: var(--bs-dark-bg-subtle);">
77
<twig:Demo:DemoCard demo="{{ previous }}" />
88
</div>
99
{% endif %}
1010
{% set next = this.next(true) %}
1111
{% if next %}
12-
<div style="max-width: 360px;--bs-secondary-bg-subtle: var(--bs-dark-bg-subtle);">
12+
<div style="max-width: 380px;--bs-secondary-bg-subtle: var(--bs-dark-bg-subtle);">
1313
<twig:Demo:DemoCard demo="{{ next }}" />
1414
</div>
1515
{% endif %}

ux.symfony.com/templates/demos/live_demo.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
{% block demo_header %}
1313
<div class="hero">
14-
<div class="container-fluid container-xxl px-4 px-md-5 my-5">
14+
<div class="container-fluid container-xxl pt-4 px-4 px-md-5 my-5">
1515
<div class="text-center mt-md-0">
1616
<p class="eyebrows">
1717
<a href="{{ url('app_demos') }}">DEMOS</a> /

ux.symfony.com/templates/main/packages.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% block content %}
1010
<div class="hero">
1111
<div class="container-fluid container-xxl px-4 pt-4 px-md-5">
12-
<h1 class="text-center mt-5">Symfony UX Packages</h1>
12+
<h1 class="text-center mt-5">UX Packages</h1>
1313
<p class="text-center mt-2 mb-5">A treasure chest of bundles, components and packages</p>
1414
</div>
1515
</div>

0 commit comments

Comments
 (0)