1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:34:41 -05:00

responsive stuff

This commit is contained in:
ashley 2024-10-04 15:24:28 +00:00
parent 1403c2ab24
commit d4c24d7241

View file

@ -6,7 +6,6 @@
<link rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.json">
<link href="css/yt-ukraine.svg" rel="icon"> <link href="css/yt-ukraine.svg" rel="icon">
<title>Poke! Calendar</title> <title>Poke! Calendar</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="PokeCalendar" property="og:title"> <meta content="PokeCalendar" property="og:title">
<meta content="Worlds first no js web calendar :3" property="twitter:description"> <meta content="Worlds first no js web calendar :3" property="twitter:description">
<meta content="https://cdn.glitch.global/d68d17bb-f2c0-4bc3-993f-50902734f652/aa70111e-5bcd-4379-8b23-332a33012b78.image.png?v=1701898829884" property="og:image" /> <meta content="https://cdn.glitch.global/d68d17bb-f2c0-4bc3-993f-50902734f652/aa70111e-5bcd-4379-8b23-332a33012b78.image.png?v=1701898829884" property="og:image" />
@ -26,8 +25,8 @@
background-color: #333333; background-color: #333333;
padding: 10px; padding: 10px;
display: flex; display: flex;
justify-content: space-between; /* Aligns items on both ends */ flex-direction: column; /* Stack items vertically on small screens */
align-items: center; /* Centers items vertically */ align-items: center; /* Center items */
} }
.navbar h1 { .navbar h1 {
@ -39,6 +38,8 @@
color: #bb86fc; /* Year text color */ color: #bb86fc; /* Year text color */
display: flex; /* Use flexbox for alignment */ display: flex; /* Use flexbox for alignment */
gap: 20px; /* Space between year elements */ gap: 20px; /* Space between year elements */
flex-wrap: wrap; /* Allow wrapping on smaller screens */
justify-content: center; /* Center items */
} }
.container { .container {
@ -72,6 +73,7 @@
padding: 15px; padding: 15px;
text-align: center; text-align: center;
border: 1px solid #333333; border: 1px solid #333333;
font-size: 0.9em; /* Smaller font size for better fit */
} }
.calendar-table th { .calendar-table th {
@ -100,6 +102,30 @@
.button:hover { .button:hover {
background-color: #9c62f3; background-color: #9c62f3;
} }
/* Responsive styles */
@media (max-width: 768px) {
.navbar {
flex-direction: column; /* Stack navbar items vertically */
padding: 10px;
}
.calendar-table th, .calendar-table td {
padding: 10px; /* Reduced padding for smaller screens */
font-size: 0.8em; /* Smaller font size */
}
.month-title {
font-size: 1.2em; /* Smaller month title */
}
.button {
padding: 8px 15px; /* Smaller button size */
margin: 5px 0; /* Vertical spacing */
display: block; /* Stack buttons vertically */
width: 100%; /* Full width */
}
}
</style> </style>
</head> </head>
<body> <body>