1
0
Files
OpenWall/dashboard/src/renderer/src/index.sass

131 lines
3.3 KiB
Sass

// Global Styles - Light Mode with Waterfall Background
// Reset and base styles
*
margin: 0
padding: 0
box-sizing: border-box
// Improve touch interactions
-webkit-tap-highlight-color: transparent
-webkit-touch-callout: none
-webkit-user-select: none
-khtml-user-select: none
-moz-user-select: none
-ms-user-select: none
user-select: none
html, body
height: 100vh
width: 100vw
overflow: hidden
// Prevent scrolling and bouncing on touch devices
-webkit-overflow-scrolling: touch
overscroll-behavior: none
body
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif
background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3)), url('https://cdn.pixabay.com/photo/2024/07/16/23/33/waterfall-8900207_1280.png')
background-size: cover
background-position: center
background-attachment: fixed
color: #1e293b
font-weight: 400
letter-spacing: -0.01em
line-height: 1.5
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
// Prevent pull-to-refresh and other touch gestures
overscroll-behavior-y: none
-webkit-user-select: none
#root
height: 100vh
width: 100vw
display: flex
flex-direction: column
// Prevent touch scrolling
touch-action: none
// App Layout Styles
.app
height: 100vh
width: 100vw
display: flex
flex-direction: column
// Prevent touch scrolling
touch-action: none
&__main
flex: 1
padding-top: 5rem
display: flex
align-items: center
justify-content: center
&__content
text-align: center
backdrop-filter: blur(40px) saturate(180%)
background: rgba(255, 255, 255, 0.25)
padding: 4rem
border-radius: 32px
border: 1px solid rgba(255, 255, 255, 0.3)
box-shadow: 0 16px 64px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.4)
max-width: 600px
margin: 0 auto
h1
font-size: 3rem
font-weight: 800
margin-bottom: 1.5rem
background: linear-gradient(135deg, #1e293b, #475569, #0f766e)
-webkit-background-clip: text
-webkit-text-fill-color: transparent
background-clip: text
line-height: 1.2
p
font-size: 1.25rem
color: rgba(30, 41, 59, 0.8)
font-weight: 500
line-height: 1.6
// Touch-friendly interactive elements
button, a, [role="button"], .interactive
// Improve touch target size
min-height: 44px
min-width: 44px
// Add touch feedback
transition: all 0.2s ease
cursor: pointer
&:hover, &:focus
transform: scale(1.05)
&:active
transform: scale(0.95)
opacity: 0.8
// Prevent text selection on interactive elements
button, a, [role="button"], .nav-item, .interactive
-webkit-user-select: none
-moz-user-select: none
-ms-user-select: none
user-select: none
// Allow text selection on input fields and content areas
input, textarea, [contenteditable], .selectable
-webkit-user-select: text
-moz-user-select: text
-ms-user-select: text
user-select: text
// Re-enable touch actions for inputs
touch-action: manipulation
// Fullscreen specific styles
@media (display-mode: fullscreen)
body
background-attachment: fixed
.app
// Ensure content fits fullscreen properly
min-height: 100vh
max-height: 100vh