blueskychan.dev/src/styles/globals.css

34 lines
765 B
CSS
Raw Normal View History

2023-12-22 13:59:04 +07:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2024-07-21 20:51:31 +07:00
body {
position: relative;
min-height: 100%;
color: #ffc6d7fc;
overflow: hidden;
2024-05-06 17:02:40 +00:00
2025-04-23 23:16:27 +07:00
--background-image: url("/api/random-background-picture");
background-image: var(--background-image);
2024-07-21 20:51:31 +07:00
2023-12-23 13:21:32 +07:00
background-repeat: no-repeat;
2023-12-27 22:35:11 +07:00
background-attachment: fixed;
2023-12-23 13:21:32 +07:00
background-size: cover;
2023-12-27 22:35:11 +07:00
background-position: center center;
2023-12-22 13:59:04 +07:00
}
2024-07-22 15:25:20 +07:00
@media only screen and (orientation: portrait) {
body {
--background-image: url("/mobile.png");
overflow: auto;
}
}
/* In case if device height is less than 900px */
/* Notice: This design for small screen and mobile devices, scroll bar still be shown, will fix in next commit! <3 */
@media only screen and (max-height: 900px) {
body {
overflow: auto;
2024-07-22 15:25:20 +07:00
}
}