ryuu
Version:
Domo App Dev Studio CLI, The main tool used to create, edit, and publish app designs to Domo
249 lines (216 loc) • 4.12 kB
CSS
/* Reset and Base Styles */
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: #fbfbfb;
color: #333;
height: 100%;
}
#root {
min-height: 100vh;
display: flex;
flex-direction: column;
}
code {
background: #f0f0f0;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
font-size: 0.9em;
}
/* Loading State */
.loading {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
font-size: 18px;
color: #666;
}
.loading-spinner {
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Main Container */
.dev-container {
flex: 1;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Warning Messages */
.messages {
padding: 20px;
margin: 0 auto;
max-width: 60%;
text-align: center;
}
.warning-message {
background: #fff3cd;
border: 1px solid #ffc107;
border-radius: 6px;
padding: 16px 20px;
color: #856404;
font-size: 14px;
line-height: 1.6;
}
.warning-message strong {
font-weight: 600;
}
/* Controls */
.controls {
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
padding: 12px 20px;
border-radius: 8px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
gap: 12px;
}
.fullscreen-toggle {
display: flex;
align-items: center;
gap: 10px;
}
.fullscreen-toggle input[type='checkbox'] {
display: none;
}
.fullscreen-toggle label {
position: relative;
display: inline-block;
width: 50px;
height: 24px;
background: #ccc;
border-radius: 24px;
cursor: pointer;
transition: background 0.3s;
}
.fullscreen-toggle input[type='checkbox']:checked + label {
background: #4caf50;
}
.fullscreen-toggle input[type='checkbox']:disabled + label {
background: #e0e0e0;
cursor: not-allowed;
opacity: 0.6;
}
.toggle-slider {
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background: white;
border-radius: 50%;
transition: transform 0.3s;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.fullscreen-toggle input[type='checkbox']:checked + label .toggle-slider {
transform: translateX(26px);
}
.toggle-label {
font-size: 14px;
font-weight: 500;
color: #333;
user-select: none;
}
/* App Section */
.app-section {
flex: 1;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 40px 20px;
transition: padding 0.3s ease;
}
.app-wrapper {
display: flex;
flex-direction: column;
gap: 20px;
transition: all 0.3s ease;
max-width: 100%;
}
.app-header {
display: flex;
align-items: center;
gap: 20px;
}
.app-thumbnail {
width: 62px;
height: 62px;
border-radius: 8px;
object-fit: cover;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.app-title {
margin: 0;
font-size: 28px;
font-weight: 300;
color: #333;
}
.app-iframe {
border: 1px solid #e0e0e0;
border-radius: 8px;
background: #fff;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.app-size {
color: #999;
font-size: 12px;
text-align: center;
font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}
/* Footer */
.dev-footer {
padding: 16px 20px;
text-align: center;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
border-top: 1px solid #e0e0e0;
font-size: 13px;
color: #666;
}
.instance-info {
font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
}
/* Responsive */
@media (max-width: 768px) {
.messages {
max-width: 90%;
}
.controls {
top: 10px;
right: 10px;
padding: 8px 12px;
}
.app-section {
padding: 20px 10px;
}
.app-title {
font-size: 20px;
}
}