docusaurus/website/src/pages/styles.module.css

246 lines
3.8 KiB
CSS

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.section {
padding: 40px 0;
}
.sectionAlt {
background-color: var(--ifm-color-emphasis-100);
}
.sectionInner {
margin: 0 auto;
}
.featureImage {
width: auto;
max-height: 128px;
margin: 0 auto;
}
.featureHeading {
font-size: var(--ifm-h3-font-size);
padding-top: 1rem;
}
.announcement {
font-weight: bold;
font-size: 24px;
padding: 48px;
margin: 0 auto;
text-align: center;
}
.announcementDark {
background-color: #20232a;
color: #fff;
/* Reapply the primary color, because it has been locally overridden as
* the dark theme color */
--ifm-link-color: var(--ifm-color-primary);
}
.announcementInner {
margin: 0 auto;
max-width: 768px;
}
.topBanner {
font-size: 20px;
padding: 30px 20px;
max-width: 900px;
margin: 0 auto;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.topBannerTitle {
font-size: 54px;
font-weight: bold;
margin-bottom: 0.4rem;
}
@media only screen and (max-width: 768px) {
.topBannerTitle {
font-size: 40px;
}
}
.topBannerTitleText {
background: linear-gradient(
90deg,
rgb(131 58 180 / 100%) 0%,
rgb(253 29 29 / 100%) 50%,
rgb(252 176 69 / 100%) 100%
);
background-clip: text;
-webkit-text-fill-color: transparent;
}
.topBannerTitleText:hover {
border-bottom: solid 2px;
border-color: rgb(152 0 255);
}
html[data-theme='dark'] .topBannerTitleText {
background: linear-gradient(
90deg,
rgb(152 0 255) 0%,
rgb(246 41 41) 50%,
rgb(255 169 8) 100%
);
background-clip: text;
-webkit-text-fill-color: transparent;
}
.topBannerDescription {
font-size: 20px;
}
@media only screen and (max-width: 768px) {
.topBannerDescription {
font-size: 16px;
white-space: normal;
}
}
.hero {
background-color: #2b3137;
padding: 48px;
}
.heroInner {
margin: 0 auto;
max-width: 1100px;
padding: 0 20px;
}
.heroProjectTagline {
color: #fff;
font-size: 60px;
margin: 0;
}
.heroTitleTextHtml b {
color: var(--ifm-color-primary);
}
@keyframes jack-in-the-box {
0% {
opacity: 0;
transform: scale(0.1) rotate(30deg);
transform-origin: center bottom;
}
50% {
transform: rotate(-10deg);
}
70% {
transform: rotate(3deg);
}
100% {
opacity: 1;
transform: scale(1);
}
}
.heroLogo {
animation-duration: 2s;
animation-name: jack-in-the-box;
float: right;
margin-top: 20px;
padding: 0 20px 20px;
height: auto;
}
.indexCtas {
--ifm-button-size-multiplier: 1.6;
display: flex;
flex-wrap: wrap;
align-items: center;
margin-top: 24px;
}
.indexCtas a,
.indexCtas a:hover {
color: black;
}
.indexCtas a:last-of-type {
margin: 20px 36px;
}
.indexCtasGitHubButtonWrapper {
display: flex;
}
.indexCtasGitHubButton {
overflow: hidden;
}
.indexCtaTryNowButton:hover {
color: var(--ifm-color-primary);
}
@media only screen and (max-width: 768px) {
.hero {
padding-left: 20px;
padding-right: 20px;
}
.heroInner {
padding: 0;
}
.heroProjectTagline {
font-size: 36px;
text-align: center;
}
.heroLogo {
display: block;
float: none;
margin: 0 auto;
}
.indexCtas {
justify-content: center;
}
.indexCtas a {
margin: 20px 36px;
}
.indexCtasGitHubButton {
display: none;
}
}
.tweetsSection > :global(.col) > * {
margin-bottom: 2rem;
}
@media (max-width: 996px) {
.tweetsSection > :global(.col:last-child) > *:last-child {
margin-bottom: 0;
}
}
@media (min-width: 997px) {
.tweetsSection > :global(.col) > *:last-child {
margin-bottom: 0;
}
}
/* Used to test CSS insertion order */
.test-marker-site-index-page {
content: 'site-index-page';
}