The repository for the Tophhie Cloud API web toolkit.
at main 2.6 kB view raw
1@import "tailwindcss"; 2 3/* Global variables */ 4:root { 5 --primary-h: #100235; 6 --bg-color: #100235; 7 --primary-color: #2563eb; 8 --secondary-color: #1e293b; 9 --success-color: #16a34a; 10 --error-color: #dc2626; 11 --font-family: 'Inter', sans-serif; 12 --content-background-color: #ffffff; 13 --button-hover: #f3f4f6; 14 --border-color: #e2e8f0; 15 --link-color: hsl(var(--primary-h), 73%, 59%); 16 --link-hover-color: #4338ca; 17} 18 19/* Global body styles */ 20body { 21 @apply bg-gray-100 text-gray-900 antialiased; 22 background-size: cover; 23 background-position: center; 24 background-image: url('https://blob.tophhie.cloud/tophhiecloud-resources/Logos/illustration.png'); 25 -webkit-backdrop-filter: blur(4px); 26 backdrop-filter: blur(4px); 27 font-family: var(--font-family); 28 -webkit-font-smoothing: antialiased; 29 -moz-osx-font-smoothing: grayscale; 30} 31 32/* Header */ 33header { 34 background: var(--primary-color); 35 color: white; 36 padding: 1rem; 37 text-align: center; 38 font-size: 1.5rem; 39} 40 41/* Footer */ 42footer { 43 text-align: center; 44 padding: 1rem; 45 font-size: 0.9rem; 46 color: #6b7280; 47} 48 49/* Status card container (basic fallback if needed) */ 50.status-card { 51 background: white; 52 border-radius: 8px; 53 padding: 1rem; 54 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); 55 text-align: center; 56 max-width: 50%; 57} 58 59/* Status colours */ 60.status-online { 61 color: var(--success-color); 62} 63 64.status-offline { 65 color: var(--error-color); 66} 67 68/* Mobile optimizations */ 69@media (max-width: 640px) { 70 /* Improve tap targets on mobile */ 71 a, button { 72 min-height: 44px; 73 min-width: 44px; 74 } 75 76 /* Prevent text from being too small */ 77 body { 78 font-size: 16px; /* Prevents iOS zoom on input focus */ 79 } 80 81 /* Better touch scrolling */ 82 * { 83 -webkit-overflow-scrolling: touch; 84 } 85} 86 87/* Ensure links are easily tappable */ 88a { 89 -webkit-tap-highlight-color: rgba(37, 99, 235, 0.3); 90} 91 92.button-group { 93 display: flex; 94 flex-direction: column; 95 gap: 0.8rem; 96 max-width: 100%; 97 padding-bottom: 15px; 98} 99 100.button { 101 background-color: red; 102 border: none; 103 color: white; 104 padding: 15px 32px; 105 text-align: center; 106 text-decoration: none; 107 display: inline-block; 108 font-size: 16px; 109 cursor: pointer; 110} 111 112.call-to-action { 113 display: block; 114 padding: 0.8rem; 115 font-size: 1rem; 116 font-weight: 600; 117 border-radius: 12px; 118 text-align: center; 119 text-decoration: none; 120 background: var(--content-background-color); 121 color: var(--link-color); 122 cursor: pointer; 123 border: 1px solid var(--border-color); 124 transition: all 0.2s ease; 125} 126 127.call-to-action:hover { 128 transform: translateY(-2px); 129 background-color: var(--button-hover); 130}