mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
4466ba436b
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
103 lines
1.5 KiB
CSS
103 lines
1.5 KiB
CSS
*,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body,
|
|
html {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
|
color: #333;
|
|
line-height: 1.6;
|
|
background-color: #f4f4f4;
|
|
}
|
|
|
|
.widget {
|
|
background-color: #ffffff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
margin: 20px auto;
|
|
padding: 20px;
|
|
max-width: 600px;
|
|
text-align: center;
|
|
}
|
|
|
|
.pre-rendered-at,
|
|
.cache-state,
|
|
.stale-after {
|
|
font-size: 0.9em;
|
|
color: #666;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.cache-state.fresh {
|
|
color: #4caf50;
|
|
}
|
|
|
|
.cache-state.stale {
|
|
color: #f44336;
|
|
}
|
|
|
|
.revalidate-from {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.revalidate-from-button {
|
|
background-color: #008cba;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.revalidate-from-button:hover {
|
|
background-color: #005f73;
|
|
}
|
|
|
|
.revalidate-from-button:active {
|
|
transform: translateY(2px);
|
|
}
|
|
|
|
.revalidate-from-button[aria-disabled="true"] {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.footer,
|
|
.header {
|
|
padding: 10px;
|
|
position: relative;
|
|
place-items: center;
|
|
grid-auto-flow: column;
|
|
bottom: 0;
|
|
grid-gap: 20px;
|
|
width: 100%;
|
|
display: grid;
|
|
justify-content: center;
|
|
}
|
|
|
|
.link {
|
|
color: #09f;
|
|
text-decoration: none;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.link:hover {
|
|
color: #07c;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.widget {
|
|
width: 90%;
|
|
margin: 20px auto;
|
|
}
|
|
|
|
.footer {
|
|
padding: 20px;
|
|
}
|
|
}
|