Files
Openterface_assets/css/custom.css

1036 lines
21 KiB
CSS
Raw Normal View History

2025-04-20 06:27:16 +08:00
:root {
--md-accent-fg-color: #df4d3f;
--description-font-dark: #373737;
--description-font-light: hsl(0, 0%, 100%);
--button-hover-color: #ffffff;
--shared-padding: 2rem 4rem;
--shared-padding-mobile: 1rem 1rem;
--shared-padding-mobile-bottom: 2rem;
--shared-p-width: 680px;
}
.bold-text {
font-weight: bold;
}
.mdx-container {
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 1'><path d='M0,0 H1123' style='stroke: hsla(0, 0%, 100%, 1); stroke-width: 1'/></svg>") no-repeat bottom,
linear-gradient(to bottom, var(--md-primary-fg-color) 30%, transparent 100%, var(--md-default-bg-color) 100%);
padding-top: 1rem;
}
.mdx-hero {
color: var(--md-primary-bg-color);
margin: 0.8rem;
}
.mdx-hero h1 {
color: currentcolor;
font-weight: 700;
margin-bottom: 1rem;
}
.mdx-hero__content {
padding-bottom: 4rem;
text-align: left;
}
.mdx-hero .md-button {
color: #ffffff;
border-color: var(--md-accent-bg-color);
margin-right: .5rem;
margin-top: .5rem
}
.mdx-hero .md-button:focus, .mdx-hero .md-button:hover {
background-color: var(--md-accent-fg-color);
border-color: var(--md-accent-fg-color);
color: var(--md-accent-bg-color);
}
.mdx-hero .md-button--primary {
background-color: var(--md-primary-bg-color);
border-color: var(--md-primary-bg-color);
color: var(--md-primary-fg-color);
}
.mdx-hero .md-button:focus, .mdx-hero .md-button:hover {
background-color: var(--md-primary-fg-color);
border-color: var(--md-primary-fg-color);
color: var(--md-accent-bg-color);
}
.product-close-up {
padding-top: 1rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.product-close-up .product-video {
width: 100%;
height: auto;
max-width: 640px;
}
.product-close-up .product-close-up-content {
display: flex;
flex-direction: column-reverse;
align-items: center;
justify-content: center;
max-width: 1200px;
width: 100%;
margin-bottom: 2rem;
}
.product-close-up .product-image, .product-close-up .product-description {
flex-basis: 100%;
max-width: 100%;
}
.product-close-up .product-image img {
max-width: 100%;
height: auto;
}
.product-close-up .product-description {
padding: 1rem;
text-align: center;
}
.product-close-up .product-description p {
font-size: 1rem;
line-height: 1.6;
color: inherit;
}
.connection-row {
padding-top: 2rem;
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 1rem;
}
.connection-demo h2 {
text-align: center;
font-size: 2rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.connection-demo .connection-block {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.connection-demo img {
max-width: 100%;
height: auto;
}
.connection-demo p {
font-size: 0.8rem;
color: var(--description-font-dark);
}
.comparison-solution {
background: var(--md-default-bg-color);
padding: var(--shared-padding);
text-align: center;
color: var(--description-font-dark);
}
.comparison-solution h2 {
font-size: 2rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.comparison-solution p {
font-size: 1rem;
color: inherit;
margin-bottom: 1rem;
max-width: var(--shared-p-width);
text-align: center;
margin-left: auto;
margin-right: auto;
}
.comparison-solution .read-more-btn {
margin-top: 1rem;
float: right;
padding: 0.5rem 1rem;
text-decoration: none;
color: var(--md-primary-fg-color);
border: 1px solid var(--md-primary-fg-color);
border-radius: 0.25rem;
font-size: 0.8rem;
}
.comparison-solution .read-more-btn:hover {
background-color: var(--md-primary-fg-color);
color: var(--description-font-light);
border-color: var(--md-primary-fg-color);
}
.blog {
background: var(--md-primary-fg-color);
padding: var(--shared-padding);
text-align: center;
}
.blog h2 {
font-size: 2rem;
margin-bottom: 1rem;
color: var(--description-font-light);
}
.blog .blog-list .post{
margin-bottom: 1rem;
}
.blog .blog-list h3 {
font-size: 1.2rem;
color: var(--description-font-light);
}
.blog .blog-list .date {
font-size: 0.9rem;
color: var(--description-font-light);
margin-top: -1rem;
}
.blog .blog-list p {
font-size: 1rem;
color: var(--description-font-light);
max-width: var(--shared-p-width);
text-align: center;
margin-left: auto;
margin-right: auto;
}
.blog .read-more-btn {
margin-top: 1rem;
float: right;
padding: 0.5rem 1rem;
text-decoration: none;
border: 1px solid var(--md-primary-fg-color);
border-radius: 0.25rem;
font-size: 0.8rem;
background-color: var(--md-primary-fg-color);
color: var(--description-font-light);
border: 1px solid var(--description-font-light);
}
.blog .read-more-btn:hover {
background-color: var(--button-hover-color);
color: var(--md-primary-fg-color);
}
.use-cases {
background: var(--md-default-bg-color);
padding: var(--shared-padding);
text-align: center;
color: var(--description-font-dark);
}
.use-cases h2 {
font-size: 2rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.use-cases p {
font-size: 1rem;
color: inherit;
margin-bottom: 1rem;
max-width: var(--shared-p-width);
text-align: center;
margin-left: auto;
margin-right: auto;
}
.use-cases .read-more-btn {
margin-top: 1rem;
float: right;
padding: 0.5rem 1rem;
text-decoration: none;
color: var(--md-primary-fg-color);
border: 1px solid var(--md-primary-fg-color);
border-radius: 0.25rem;
font-size: 0.8rem;
}
.use-cases .read-more-btn:hover {
background-color: var(--md-primary-fg-color);
color: var(--description-font-light);
border-color: var(--md-primary-fg-color);
}
.feature-dev-test {
background: linear-gradient(to top, var(--md-primary-fg-color) 30%, transparent 100%, var(--md-default-bg-color) 100%);
padding: var(--shared-padding);
text-align: center;
}
.feature-dev-test h2 {
font-size: 2rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.feature-dev-test p {
font-size: 1rem;
color: inherit;
margin-bottom: 1rem;
max-width: var(--shared-p-width);
text-align: center;
margin-left: auto;
margin-right: auto;
}
.feature-dev-test .read-more-btn {
margin-top: 1rem;
float: right;
padding: 0.5rem 1rem;
text-decoration: none;
color: var(--md-primary-fg-color);
border: 1px solid var(--md-primary-fg-color);
border-radius: 0.25rem;
font-size: 0.8rem;
}
.feature-dev-test .read-more-btn:hover {
background-color: var(--md-primary-fg-color);
color: var(--description-font-light);
border-color: var(--md-primary-fg-color);
}
.videos-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.video-container {
position: relative;
width: 100%;
max-width: 560px;
margin-bottom: 20px;
}
.video-container:before {
content: "";
display: block;
padding-top: 56.25%;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-height: 315px;
}
#loadingMessage {
text-align: center;
font-size: 0.8rem;
color: var(--description-font-light)
}
.twitter-feed-section {
background: var(--md-primary-fg-color);
padding: var(--shared-padding);
text-align: center;
overflow-x: hidden;
display: none;
}
.twitter-feed-section .container {
max-width: 1200px;
margin: auto;
}
.twitter-feed-section h2 {
font-size: 2rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.twitter-feed-section .twitter-posts {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: flex-start;
margin-bottom: 2rem;
}
.twitter-feed-section .twitter-tweet {
flex-basis: 22%;
margin: 0.5rem;
min-width: 250px;
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
border-radius: 12px;
transition: box-shadow 0.3s ease;
display: none;
}
.twitter-tweet-loaded {
display: block;
}
.twitter-feed-section .twitter-tweet:hover {
box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3);
}
.twitter-feed-section .read-more-btn {
margin-top: 1rem;
float: right;
padding: 0.5rem 1rem;
text-decoration: none;
border: 1px solid var(--md-primary-fg-color);
border-radius: 0.25rem;
font-size: 0.8rem;
background-color: var(--md-primary-fg-color);
color: var(--description-font-light);
border: 1px solid var(--description-font-light);
}
.twitter-feed-section .read-more-btn:hover {
background-color: var(--button-hover-color);
color: var(--md-primary-fg-color);
}
.poster-section .container {
text-align: center;
padding: 20px 0;
}
.poster-image-shadow {
max-width: 780px;
width: 100%;
height: auto;
box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.25);
border-radius: 5px;
margin-bottom: 20px;
}
.poster-image {
max-width: 780px;
width: 100%;
height: auto;
}
.icon-section {
padding: var(--shared-padding);
text-align: center;
}
.icon-section h2 {
font-size: 2rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.icon-section p {
font-size: 1rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.icon-container {
text-align: center;
margin-top: 2rem;
}
.icon-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 1rem;
justify-content: center;
align-items: center;
max-width: 1000px;
margin: auto;
}
.icon-item {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.icon-item svg {
width: 50px;
height: 50px;
margin-bottom: 0.5rem;
}
.icon-item p {
margin-top: 0.5rem;
font-size: 1rem;
color: inherit;
}
.dialogue-section {
background: var(--md-primary-fg-color);
padding: var(--shared-padding);
text-align: center;
}
.dialogue-section-white {
padding: var(--shared-padding);
text-align: center;
}
.dialogue-section-white h2 {
font-size: 2rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.dialogue-section-white p {
font-size: 1rem;
line-height: 1.6;
margin-bottom: 1rem;
color: inherit;
}
.dialogue-bubble {
display: inline-block;
background-color: white;
border-radius: 20px;
padding: 1rem 1.5rem;
position: relative;
margin: 1rem;
box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
border: 1px solid #e7e7e7;
}
.dialogue-bubble p {
font-size: 1.5rem;
margin: 0;
color: var(--description-font-dark);
font-weight: bold;
}
#op-bubble {
position: relative;
align-items: center;
}
#op-bubble p {
margin-top: 0.5rem;
align-items: center;
margin-bottom: 1rem;
padding-left: 3rem;
}
.dialogue-bubble::after {
content: '';
position: absolute;
bottom: -32px;
left: 50%;
border-width: 16px;
border-style: solid;
border-color: white transparent transparent transparent;
transform: translateX(-50%);
}
.dialogue-bubble::before {
content: '';
position: absolute;
bottom: -38px;
left: 50%;
border-width: 16px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.25) transparent transparent transparent;
transform: translateX(-50%);
z-index: -1;
filter: blur(4px);
}
.callout-button-container {
text-align: center;
margin-top: 2rem;
}
#join-waitlist-button {
background-color: var(--button-hover-color);
color: var(--md-primary-fg-color);
margin-top: 1rem;
padding: 0.5rem 1rem;
text-decoration: none;
border: 2px solid var(--md-primary-fg-color);
border-radius: 1rem;
font-size: 1.2rem;
display: block;
}
#join-waitlist-button:hover {
color: var(--button-hover-color);
background-color: var(--md-primary-fg-color);
}
.avatar {
width: 50px;
height: 50px;
border-radius: 50%;
float: left;
margin-right: 10px;
}
@media screen and (min-width:76.25em) {
.mdx-hero__image {
transform: translateX(8rem);
}
.videos-wrapper {
flex-direction: row;
justify-content: space-around;
}
.video-container {
max-width: 45%;
margin-bottom: 0;
}
}
@media screen and (min-width:60em) {
.mdx-hero {
align-items: stretch;
display: flex;
}
.mdx-hero__content {
margin-top: 3.5rem;
max-width: 19rem;
padding-bottom: 14vw;
}
.mdx-hero__image {
order: 1;
transform: translateX(4rem);
width: 38rem;
}
.product-close-up .product-close-up-content {
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.product-close-up .product-image, .product-close-up .product-description {
flex-basis: 50%;
}
.product-close-up .product-description {
padding-left: 2rem;
text-align: left;
}
.product-close-up .reverse-layout {
flex-direction: row-reverse;
}
.product-close-up .reverse-layout .product-description {
padding-left: 0;
padding-right: 2rem;
}
.icon-item img {
height: 60px;
}
}
@media screen and (max-width:60em) {
.mdx-hero {
display: block;
}
.mdx-hero__content {
margin-top: 1rem;
max-width: none;
padding-bottom: 2rem;
text-align: center;
}
.mdx-hero__content .image-container {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
max-width: 90%;
margin: auto;
}
.mdx-hero__content img,
.mdx-hero__content p,
.mdx-hero__content a {
display: block;
margin: 0.2rem auto;
max-width: 100%;
font-size: 0.8rem;
}
.mdx-hero__image {
order: 0;
transform: none;
width: auto;
margin-bottom: 1rem;
padding-left: 3rem;
padding-right: 3rem;
}
.connection-row {
padding-bottom: 1rem;
}
.comparison-solution {
padding: var(--shared-padding-mobile);
padding-bottom: var(--shared-padding-mobile-bottom);
}
.comparison-solution .read-more-btn {
float: none;
display: block;
margin: 1rem auto 0;
}
.blog {
padding: var(--shared-padding-mobile);
padding-bottom: var(--shared-padding-mobile-bottom);
}
.blog .read-more-btn {
float: none;
display: block;
margin: 1rem auto 0;
}
.use-cases {
padding: var(--shared-padding-mobile);
padding-bottom: var(--shared-padding-mobile-bottom);
}
.use-cases .read-more-btn {
float: none;
display: block;
margin: 1rem auto 0;
}
.icon-section {
margin-left: 1rem;
margin-right: 1rem;
}
.feature-dev-test {
padding: var(--shared-padding-mobile);
padding-bottom: var(--shared-padding-mobile-bottom);
}
.feature-dev-test .read-more-btn {
float: none;
display: block;
margin: 1rem auto 0;
}
.twitter-feed-section {
padding-top: 1rem;
padding-bottom: 1rem;
padding-left: 0rem;
padding-right: 0rem;
overflow-x: auto;
}
.twitter-feed-section .twitter-posts {
display: flex;
flex-wrap: nowrap;
justify-content: normal;
overflow-x: auto;
scroll-snap-type: x proximity;
}
.twitter-feed-section .twitter-tweet {
flex: 0 0 80%;
scroll-snap-align: center;
margin-left: 10px;
}
.twitter-feed-section .twitter-posts::-webkit-scrollbar {
display: none;
}
.twitter-feed-section .read-more-btn {
float: none;
display: block;
margin: 1rem 1rem;
}
.icon-section {
padding: 2rem 0rem;
}
.dialogue-section {
padding: 0rem 0rem;
}
.dialogue-section-white {
margin-left: 1rem;
margin-right: 1rem;
padding: 0rem 0rem;
}
.avatar {
margin-right: 0px;
width: 32px;
height: 32px;
}
.callout-button-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0rem;
justify-content: center;
}
.dialogue-bubble {
padding: 0.5rem 1rem;
margin: 1rem;
}
.dialogue-bubble p {
font-size: 0.9rem;
}
.dialogue-bubble::after {
bottom: -22px;
border-width: 12px;
}
#op-bubble p {
padding-top: 6px;
margin-top: 0rem;
margin-bottom: 1rem;
}
#join-waitlist-button {
float: none;
display: block;
margin: 1rem auto 0;
font-size: 0.8rem;
margin-bottom: 0.5rem;
}
.icon-item img {
height: 40px;
}
}
/* Update the Twitter Feed Styles for Markdown Pages */
.twitter-feed-md {
width: 100%;
padding: 0 0 0 0;
overflow-x: hidden;
position: relative;
margin-bottom: -4rem !important;
}
.twitter-feed-md .container {
max-width: 100%;
margin: 0;
padding: 0 2rem 0rem 2rem;
}
.twitter-feed-md .twitter-posts {
display: flex;
flex-wrap: nowrap;
gap: 0rem;
overflow-x: hidden;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
padding-bottom: 0;
-webkit-overflow-scrolling: touch;
margin-bottom: 0 !important;
}
.twitter-feed-md .twitter-tweet {
flex: 0 0 auto;
width: 340px !important;
min-width: 340px !important;
transform: scale(0.85) !important;
transform-origin: 0 0;
margin: 0 !important;
scroll-snap-align: start;
margin-bottom: 0 !important;
}
/* Navigation Buttons */
.twitter-nav-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.8);
border: 1px solid #ddd;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 1;
transition: all 0.3s ease;
}
.twitter-nav-button:hover {
background: rgba(255, 255, 255, 1);
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.twitter-nav-prev {
left: 0;
}
.twitter-nav-next {
right: 0;
}
/* Arrow icons */
.twitter-nav-button::before {
content: '';
width: 10px;
height: 10px;
border-top: 2px solid #666;
border-right: 2px solid #666;
display: inline-block;
}
.twitter-nav-prev::before {
transform: rotate(-135deg);
}
.twitter-nav-next::before {
transform: rotate(45deg);
}
/* Hide scrollbar */
.twitter-feed-md .twitter-posts::-webkit-scrollbar {
display: none;
}
.twitter-feed-md .twitter-posts {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* Gibby Avatar and Dialogue Box */
.gibby-container {
position: fixed;
bottom: 30px;
left: 30px;
z-index: 1000;
}
.gibby-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
.gibby-avatar:hover {
transform: scale(1.1);
}
.gibby-dialogue {
display: none;
position: absolute;
bottom: 75px;
left: 20px;
background-color: var(--md-default-bg-color);
color: var(--md-default-fg-color);
padding: 16px;
border-radius: 15px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
max-width: 280px;
text-align: center;
animation: fadeIn 0.5s ease-in-out;
}
.gibby-dialogue p {
margin: 0;
font-size: 0.9rem;
}
.gibby-link {
color: var(--md-primary-fg-color);
text-decoration: none;
font-weight: 600;
}
.gibby-link:hover {
text-decoration: underline;
color: var(--md-accent-fg-color);
}
/* Animation for dialogue box appearance */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
.gibby-container {
bottom: 20px;
left: 20px;
}
.gibby-avatar {
width: 50px;
height: 50px;
}
.gibby-dialogue {
max-width: 240px;
bottom: 65px;
padding: 14px;
}
.gibby-dialogue p {
font-size: 0.85rem;
}
}
@media screen and (max-width: 480px) {
.gibby-container {
bottom: 15px;
left: 15px;
}
.gibby-avatar {
width: 40px;
height: 40px;
}
.gibby-dialogue {
max-width: 200px;
bottom: 60px;
padding: 12px;
}
.gibby-dialogue p {
font-size: 0.8rem;
}
}