mirror of
https://github.com/withastro/astro.git
synced 2025-09-26 07:25:30 +08:00
Clean up styling for framework-* examples (#1970)
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<pre>{{ count }}</pre>
|
||||
<button @click="add()">+</button>
|
||||
</div>
|
||||
<div class="children">
|
||||
<div class="counter-message">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
@ -25,3 +25,16 @@ export default {
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.counter {
|
||||
display: grid;
|
||||
font-size: 2em;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
margin-top: 2em;
|
||||
place-items: center;
|
||||
}
|
||||
.counter-message {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
@ -12,21 +12,13 @@ import Counter from '../components/Counter.vue'
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
<style>
|
||||
:global(:root) {
|
||||
html,
|
||||
body {
|
||||
font-family: system-ui;
|
||||
padding: 2em 0;
|
||||
margin: 0;
|
||||
}
|
||||
:global(.counter) {
|
||||
display: grid;
|
||||
font-size: 2em;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
margin-top: 2em;
|
||||
place-items: center;
|
||||
}
|
||||
:global(.children) {
|
||||
display: grid;
|
||||
margin-bottom: 2em;
|
||||
place-items: center;
|
||||
body {
|
||||
padding: 2rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
Reference in New Issue
Block a user