mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Co-authored-by: Gina Peter Banyard <girgias@php.net> Co-authored-by: Sergey Panteleev <sergey@php.net>
219 lines
3.4 KiB
CSS
219 lines
3.4 KiB
CSS
/* Home Page */
|
|
|
|
|
|
/* Hero */
|
|
|
|
#intro .container {
|
|
padding: 0 24px;
|
|
}
|
|
|
|
.hero {
|
|
width: 100%;
|
|
flex: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin: 32px 0;
|
|
}
|
|
|
|
.hero__logo {
|
|
width: 100%;
|
|
max-width: 240px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero__text {
|
|
margin-top: 0;
|
|
margin-bottom: 28px;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
.hero__text strong {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.hero__actions {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero__btn {
|
|
box-sizing: border-box;
|
|
padding: 16px 32px;
|
|
margin-bottom: 12px;
|
|
border-radius: 30px;
|
|
text-align: center;
|
|
display: inline-block;
|
|
border: none;
|
|
font-size: 20px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.hero__btn--primary {
|
|
background-color: var(--dark-blue-color);
|
|
color: #fff !important;
|
|
}
|
|
|
|
.hero__btn--primary:hover, .hero__btn--primary:focus {
|
|
background-color: var(--dark-magenta-color);
|
|
}
|
|
|
|
.hero__btn--secondary {
|
|
background-color: transparent;
|
|
color: #b8c0e9 !important;
|
|
border: 1px solid #6773ad;
|
|
}
|
|
|
|
.hero__btn--secondary:hover, .hero__btn--secondary:focus {
|
|
background-color: var(--dark-magenta-color);
|
|
border-color: var(--dark-magenta-color);
|
|
color: #fff !important;
|
|
}
|
|
|
|
.hero__versions {
|
|
margin: 0;
|
|
list-style:none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.hero__version {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.hero__versions a.notes {
|
|
font-size:.875rem;
|
|
white-space:nowrap;
|
|
}
|
|
|
|
.hero__versions a {
|
|
color: var(--background-text-color);
|
|
border:0;
|
|
}
|
|
|
|
.hero__versions a:hover,
|
|
.hero__versions a:focus {
|
|
border-bottom:1px dotted;
|
|
}
|
|
|
|
.hero__version-link {
|
|
color:#fff !important;
|
|
display: inline-block;
|
|
}
|
|
|
|
@media (min-width: 540px) {
|
|
.hero__actions {
|
|
flex-direction: row;
|
|
width: auto;
|
|
}
|
|
|
|
.hero__btn {
|
|
min-width: 188px;
|
|
}
|
|
|
|
.hero__btn--secondary {
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 992px) {
|
|
.hero {
|
|
margin: 60px 0;
|
|
}
|
|
|
|
.hero__versions {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.hero__version {
|
|
font-size: 1.125rem;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
.hero__version:not(:first-child) {
|
|
border-left: 1px dotted #666;
|
|
}
|
|
|
|
.hero__text {
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
|
|
|
|
/* Layout */
|
|
|
|
#layout-content {
|
|
border-right:.25rem solid #666;
|
|
}
|
|
.home .newsentry .newstitle a:after {
|
|
content:"\20 \00bb";
|
|
color:#666;
|
|
}
|
|
|
|
p.archive {
|
|
text-align: right;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
#intro .background,
|
|
aside.tips,
|
|
.layout-menu {
|
|
width: 25%;
|
|
}
|
|
|
|
#layout-content {
|
|
width: 75%;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) and (max-width: 784px) {
|
|
aside.tips {
|
|
width: 30%;
|
|
}
|
|
|
|
#layout-content {
|
|
width:70%;
|
|
}
|
|
}
|
|
|
|
/* Homepage mirror sponsor */
|
|
aside.tips .mirror-sponsor {
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
/* Social media buttons. */
|
|
aside.tips .social-media .icon-twitter {
|
|
font-size: 1.5em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Unheroic button */
|
|
.btn {
|
|
box-sizing: border-box;
|
|
padding: 0.5rem 1rem;
|
|
margin-bottom: 1rem;
|
|
border-radius: 2rem;
|
|
text-align: center;
|
|
display: inline-block;
|
|
border: none;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--dark-blue-color);
|
|
color: #fff !important;
|
|
}
|
|
|
|
.btn-primary:hover, .hero__btn--primary:focus {
|
|
background-color: var(--dark-magenta-color) !important;
|
|
border-color: var(--dark-magenta-color) !important;
|
|
}
|