Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit acd5061

Browse files
Some styling tweaks
1 parent ddffc97 commit acd5061

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

src/Symfony/Component/HttpKernel/Resources/welcome.html.php

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
h2 { font-size: 21px; margin-bottom: 1em; }
1414
a { color: <?= $darkColor(0.75); ?> }
1515
a:hover { text-decoration: none; }
16-
code { box-shadow: 0 0 45px -15px hsl(<?= $hue; ?>, 20%, 2%); position: relative; background: <?= $lightColor(); ?>; color: <?= $darkColor(); ?>; padding: 10px 20px 10px 7px; word-wrap: break-word; border-radius: 25px; z-index: 1; }
16+
code { border-radius: 25px; background: <?= $lightColor(); ?>; box-shadow: 0 0 45px -15px hsl(<?= $hue; ?>, 20%, 2%); color: <?= $darkColor(); ?>; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; padding: 10px 20px 10px 7px; position: relative; word-wrap: break-word; z-index: 1; }
1717
svg { overflow: hidden; vertical-align: text-bottom; }
1818
.wrapper { text-align: center; width: 100%; }
1919
.container { position: relative; background: radial-gradient(ellipse at bottom, <?= $darkColor(); ?> 0%, hsl(<?= $hue; ?>, 20%, 13%) 100%); background-attachment: fixed; color: <?= $lightColor(); ?>; }
@@ -23,27 +23,39 @@
2323
.container .logo svg { fill: hsl(<?= $hue; ?>, 20%, 26%); }
2424
.welcome-to { display: block; font-size: 85%; }
2525
.welcome { padding-top: 4em; margin-bottom: 4em; }
26-
.status { padding-bottom: 4em; }
26+
.status { padding-bottom: 2em; }
27+
.status code, .status .code-ready { display: none; }
2728
.version { font-size: 34px; }
28-
.check { display: inline-block; background: <?= $darkColor(); ?>; border-radius: 20px; width: 54px; }
29+
.check { display: inline-block; background: <?= $darkColor(); ?>; border-radius: 20px; margin: 0 10px; width: 54px; }
2930
.check svg { fill: <?= $lightColor(); ?>; }
3031
.code-ready { margin-top: 28px; }
3132
.next { position: relative; padding: 3.5em 0; background: <?= $lightColor(); ?>; }
32-
.next .row { margin-left: 50px; margin-right: 50px; display: flex; justify-content: space-around; }
33-
.doc svg { height: 64px; width: 64px; fill: <?= $darkColor(); ?>; margin-bottom: 5px; }
33+
.next .row { margin-left: 30px; margin-right: 30px; display: flex; justify-content: space-around; }
34+
.doc svg { height: 48px; width: 48px; fill: <?= $darkColor(); ?>; margin-bottom: 5px; }
3435
.doc p { margin-top: 5px; }
35-
.col { font-size: 22px; }
36-
.col div { margin-bottom: -5px; }
37-
.col a { font-size: 16px; }
36+
.col { padding: 0 10px; }
37+
.col h2 { font-size: 18px; font-weight: normal; margin-bottom: 5px; }
38+
.col a { display: block; font-size: 14px; lline-height: 1.2; }
3839
.footer { background: hsl(<?= $hue; ?>, 20%, 98%); }
3940
.footer .divider { pointer-events: none; background: <?= $lightColor(); ?>; fill: hsla(<?= $hue; ?>, 20%, 98%, 1); }
4041
.footer svg.logo { width: 35px; height: 35px; margin-right: 10px; fill:<?= $darkColor(); ?>; vertical-align: middle; }
41-
.footer p { font-size: 1vw; }
42+
.footer p { font-size: 16px; margin: 0 45px; }
4243

4344
@media (min-width: 768px) {
4445
@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
4546
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
4647
.sf-toolbar { opacity: 0; -webkit-animation: fade-in 1s .2s forwards; animation: fade-in 1s .2s forwards;}
48+
49+
.next .row { margin-left: 50px; margin-right: 50px; }
50+
51+
.status { padding-bottom: 4em; }
52+
.status code { display: inline-flex; }
53+
.status .code-ready { display: block; }
54+
55+
.doc svg { height: 64px; width: 64px; }
56+
57+
.col h2 { font-size: 22px; }
58+
.col a { font-size: 16px; margin-top: 0; }
4759
}
4860
</style>
4961
</head>
@@ -74,21 +86,21 @@
7486
<div class="row">
7587
<div class="doc col">
7688
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3z"/></svg>
77-
<div>Documentation</div>
89+
<h2>Documentation</h2>
7890
<a href="https://symfony.com/doc/<?= $docVersion; ?>/index.html">
7991
Guides, components, references
8092
</a>
8193
</div>
8294
<div class="doc col">
8395
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>
84-
<div>Tutorials</div>
96+
<h2>Tutorials</h2>
8597
<a href="https://symfony.com/doc/<?= $docVersion; ?>/page_creation.html">
8698
Create your first page
8799
</a>
88100
</div>
89101
<div class="doc col">
90102
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>
91-
<div>Community</div>
103+
<h2>Community</h2>
92104
<a href="https://symfony.com/community">
93105
Connect, get help, or contribute
94106
</a>

0 commit comments

Comments
 (0)