mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-28 02:34:29 +01:00
Docs: Revamp extensions site (#1260)
Co-authored-by: Nahiyan Khan <nahiyan@squareup.com>
This commit is contained in:
@@ -49,6 +49,25 @@
|
||||
--ifm-code-font-size: 95%;
|
||||
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
|
||||
|
||||
/* Additional Arcade color system variables */
|
||||
--background-app: var(--constant-white);
|
||||
--background-prominent: var(--grey-80);
|
||||
--background-standard: var(--grey-90);
|
||||
--background-subtle: var(--grey-95);
|
||||
|
||||
--border-divider: var(--grey-90);
|
||||
--border-inverse: var(--constant-white);
|
||||
--border-prominent: var(--grey-10);
|
||||
--border-standard: var(--grey-60);
|
||||
--border-subtle: var(--grey-90);
|
||||
|
||||
--icon-disabled: var(--grey-60);
|
||||
--icon-extra-subtle: var(--grey-60);
|
||||
--icon-inverse: var(--constant-white);
|
||||
--icon-prominent: var(--grey-10);
|
||||
--icon-standard: var(--grey-20);
|
||||
--icon-subtle: var(--grey-50);
|
||||
|
||||
/* arcade colors */
|
||||
--constant-white: #ffffff;
|
||||
--constant-black: #000000;
|
||||
@@ -162,8 +181,7 @@
|
||||
/* video adnomition */
|
||||
--ifm-color-video-alert-contrast-background: #336e62;
|
||||
--ifm-color-video-alert-contrast-foreground: rgb(216 251 216);
|
||||
--ifm-color-video-alert-border: #99d5c5
|
||||
;
|
||||
--ifm-color-video-alert-border: #99d5c5;
|
||||
}
|
||||
|
||||
/* overrides */
|
||||
@@ -255,13 +273,64 @@ html[data-theme="light"] .hide-in-light {
|
||||
}
|
||||
|
||||
.alert--video {
|
||||
--ifm-alert-background-color: var(--ifm-color-video-alert-contrast-background);
|
||||
--ifm-alert-background-color: var(
|
||||
--ifm-color-video-alert-contrast-background
|
||||
);
|
||||
--ifm-alert-background-color-highlight: rgba(84, 199, 236, 0.15);
|
||||
--ifm-alert-foreground-color: var(--ifm-color-video-alert-contrast-foreground);
|
||||
--ifm-alert-foreground-color: var(
|
||||
--ifm-color-video-alert-contrast-foreground
|
||||
);
|
||||
--ifm-alert-border-color: var(--ifm-color-video-alert-border);
|
||||
}
|
||||
|
||||
.aspect-ratio{
|
||||
aspect-ratio: 16 / 9;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar {
|
||||
border-bottom: 1px solid var(--border-divider);
|
||||
}
|
||||
|
||||
.navbar__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.iconExternalLink_nPIU {
|
||||
margin-left: 8px !important;
|
||||
}
|
||||
|
||||
.mx-auto {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media (min-width: 1536px) {
|
||||
.container {
|
||||
max-width: 1536px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1280px) {
|
||||
.container {
|
||||
max-width: 1280px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1024px) {
|
||||
.container {
|
||||
max-width: 1024px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
max-width: 768px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 640px) {
|
||||
.container {
|
||||
max-width: 640px;
|
||||
}
|
||||
}
|
||||
.container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
296
documentation/src/css/extensions.css
Normal file
296
documentation/src/css/extensions.css
Normal file
@@ -0,0 +1,296 @@
|
||||
/* Animation for card hover effect */
|
||||
@keyframes rotate {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Search styling */
|
||||
.search-container {
|
||||
position: relative;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
padding: 1rem 0;
|
||||
font-size: 1rem;
|
||||
color: var(--text-standard);
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
outline: none;
|
||||
border-bottom-color: var(--border-standard);
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: var(--text-placeholder);
|
||||
}
|
||||
|
||||
/* Card base styles */
|
||||
.server-card {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
padding: 2px;
|
||||
overflow: hidden;
|
||||
border-radius: 17px;
|
||||
background-color: var(--border-subtle);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.server-card.interactive:hover {
|
||||
background-color: transparent;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.server-card:hover .card-glow {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.card-glow {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
width: 600px;
|
||||
height: 600px;
|
||||
top: -150px;
|
||||
left: -50px;
|
||||
transform-origin: center;
|
||||
background: linear-gradient(45deg, #13bbaf, #ff4f00);
|
||||
animation: rotate 6s linear infinite;
|
||||
z-index: -1;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.card {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: var(--background-app);
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
||||
border: 1px solid var(--border-subtle);
|
||||
overflow: hidden;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
/* Card header styles */
|
||||
.card-header {
|
||||
padding: 1.5rem 1.5rem 0.75rem 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card-header-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Extension name and icon layout */
|
||||
.extension-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
text-decoration: none !important;
|
||||
color: var(--text-standard);
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.extension-title:hover {
|
||||
color: var(--text-prominent);
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.extension-icon {
|
||||
flex-shrink: 0;
|
||||
width: 13px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.home-page-server-name {
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.home-page-server-name:hover {
|
||||
color: var(--text-prominent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Card content layout */
|
||||
.card-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 0 1.5rem 1.5rem 1.5rem;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.card-description {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5;
|
||||
color: var(--text-standard);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Command section styles */
|
||||
.command-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 0.5rem 0;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-standard);
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.command-toggle:hover {
|
||||
color: var(--text-prominent);
|
||||
}
|
||||
|
||||
.command-toggle h4 {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.command-toggle svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.command-content {
|
||||
background-color: var(--background-subtle);
|
||||
padding: 0.75rem;
|
||||
border-radius: 0.375rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--text-standard);
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.command-content code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
||||
"Liberation Mono", "Courier New", monospace;
|
||||
font-size: 0.875rem;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Card footer */
|
||||
.card-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
/* GitHub stats link */
|
||||
.card-stats {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-subtle);
|
||||
transition: color 0.2s;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.card-stats:hover {
|
||||
color: var(--text-prominent);
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.card-stats svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
/* Card actions (Install button/Built-in badge) */
|
||||
.card-action {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.install-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--text-subtle);
|
||||
transition: all 0.2s ease;
|
||||
text-decoration: none !important;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.install-button:hover {
|
||||
color: var(--text-prominent);
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.install-button svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.install-button:hover svg {
|
||||
color: #fa5204;
|
||||
}
|
||||
|
||||
.built-in-badge {
|
||||
font-size: 0.75rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: 999px;
|
||||
background-color: var(--background-subtle);
|
||||
color: var(--text-subtle);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
/* Grid layout */
|
||||
.cards-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
||||
gap: 1.5rem;
|
||||
width: 100%;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.cards-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.cards-grid {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark mode adjustments */
|
||||
html[data-theme="dark"] .card {
|
||||
background-color: var(--background-app);
|
||||
border-color: var(--border-subtle);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .command-content {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .built-in-badge {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
75
documentation/src/css/tailwind.css
Normal file
75
documentation/src/css/tailwind.css
Normal file
@@ -0,0 +1,75 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
/* start arcade colors */
|
||||
--constant-white: #ffffff;
|
||||
--constant-black: #000000;
|
||||
--grey-10: #101010;
|
||||
--grey-20: #1e1e1e;
|
||||
--grey-50: #666666;
|
||||
--grey-60: #959595;
|
||||
--grey-80: #cccccc;
|
||||
--grey-85: #dadada;
|
||||
--grey-90: #e8e8e8;
|
||||
--grey-95: #f0f0f0;
|
||||
--dark-grey-15: #1a1a1a;
|
||||
--dark-grey-25: #232323;
|
||||
--dark-grey-30: #2a2a2a;
|
||||
--dark-grey-40: #333333;
|
||||
--dark-grey-45: #595959;
|
||||
--dark-grey-60: #878787;
|
||||
--dark-grey-90: #e1e1e1;
|
||||
|
||||
--background-app: var(--constant-white);
|
||||
--background-prominent: var(--grey-80);
|
||||
--background-standard: var(--grey-90);
|
||||
--background-subtle: var(--grey-95);
|
||||
|
||||
--border-divider: var(--grey-90);
|
||||
--border-inverse: var(--constant-white);
|
||||
--border-prominent: var(--grey-10);
|
||||
--border-standard: var(--grey-60);
|
||||
--border-subtle: var(--grey-90);
|
||||
|
||||
--icon-disabled: var(--grey-60);
|
||||
--icon-extra-subtle: var(--grey-60);
|
||||
--icon-inverse: var(--constant-white);
|
||||
--icon-prominent: var(--grey-10);
|
||||
--icon-standard: var(--grey-20);
|
||||
--icon-subtle: var(--grey-50);
|
||||
|
||||
--text-placeholder: var(--grey-60);
|
||||
--text-prominent: var(--grey-10);
|
||||
--text-standard: var(--grey-20);
|
||||
--text-subtle: var(--grey-50);
|
||||
|
||||
&.dark {
|
||||
--background-app: var(--constant-black);
|
||||
--background-prominent: var(--dark-grey-40);
|
||||
--background-standard: var(--dark-grey-25);
|
||||
--background-subtle: var(--dark-grey-15);
|
||||
|
||||
--border-divider: var(--dark-grey-25);
|
||||
--border-inverse: var(--constant-black);
|
||||
--border-prominent: var(--constant-white);
|
||||
--border-standard: var(--dark-grey-45);
|
||||
--border-subtle: var(--dark-grey-25);
|
||||
|
||||
--icon-disabled: var(--dark-grey-45);
|
||||
--icon-extra-subtle: var(--dark-grey-45);
|
||||
--icon-inverse: var(--constant-black);
|
||||
--icon-prominent: var(--constant-white);
|
||||
--icon-standard: var(--dark-grey-90);
|
||||
--icon-subtle: var(--dark-grey-60);
|
||||
|
||||
--text-placeholder: var(--dark-grey-45);
|
||||
--text-prominent: var(--constant-white);
|
||||
--text-standard: var(--dark-grey-90);
|
||||
--text-subtle: var(--dark-grey-60);
|
||||
}
|
||||
/* end arcade colors */
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user