Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit d70bddb

Browse files
committed
🎨 move <style> to bottom of vue component files
1 parent e0c2eb0 commit d70bddb

File tree

4 files changed

+59
-59
lines changed

4 files changed

+59
-59
lines changed

template/app/src/renderer/App.vue

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,3 @@
1-
<style>
2-
@import url(https://fonts.googleapis.com/css?family=Lato:300);
3-
4-
* {
5-
margin: 0;
6-
padding: 0;
7-
}
8-
9-
html,
10-
body { height: 100%; }
11-
12-
body {
13-
align-items: center;
14-
background:
15-
radial-gradient(
16-
ellipse at center,
17-
rgba(255, 255, 255, 1) 0%,
18-
rgba(229, 229, 229, .85) 100%
19-
);
20-
background-position: center;
21-
display: flex;
22-
font-family: Lato, Helvetica, sans-serif;
23-
justify-content: center;
24-
text-align: center;
25-
}
26-
</style>
27-
281
<template>
292
<div id="#app">
303
{{#isEnabled plugins 'vue-router'}}
@@ -55,3 +28,30 @@
5528
{{/isEnabled}}
5629
}{{#if eslint}}{{#if_eq eslintConfig 'airbnb'}};{{/if_eq}}{{/if}}
5730
</script>
31+
32+
<style>
33+
@import url(https://fonts.googleapis.com/css?family=Lato:300);
34+
35+
* {
36+
margin: 0;
37+
padding: 0;
38+
}
39+
40+
html,
41+
body { height: 100%; }
42+
43+
body {
44+
align-items: center;
45+
background:
46+
radial-gradient(
47+
ellipse at center,
48+
rgba(255, 255, 255, 1) 0%,
49+
rgba(229, 229, 229, .85) 100%
50+
);
51+
background-position: center;
52+
display: flex;
53+
font-family: Lato, Helvetica, sans-serif;
54+
justify-content: center;
55+
text-align: center;
56+
}
57+
</style>

template/app/src/renderer/components/LandingPageView.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
<style scoped>
2-
img {
3-
margin-top: -25px;
4-
width: 450px;
5-
}
6-
</style>
7-
81
<template>
92
<div>
103
<img src="./LandingPageView/assets/logo.png" alt="electron-vue">
@@ -34,3 +27,10 @@
3427
name: 'landing-page'{{#if eslint}}{{#if_eq eslintConfig 'airbnb'}},{{/if_eq}}{{/if}}
3528
}{{#if eslint}}{{#if_eq eslintConfig 'airbnb'}};{{/if_eq}}{{/if}}
3629
</script>
30+
31+
<style scoped>
32+
img {
33+
margin-top: -25px;
34+
width: 450px;
35+
}
36+
</style>
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
<style scoped>
2-
code {
3-
background-color: rgba(40, 56, 76, .5);
4-
border-radius: 3px;
5-
color: #fff;
6-
font-weight: bold;
7-
padding: 3px 6px;
8-
margin: 0 3px;
9-
vertical-align: bottom;
10-
}
11-
12-
p { line-height: 24px; }
13-
</style>
14-
151
<template>
162
<p>
173
You are currently at <code>`\{{ $route.path }}`</code> on the <code>`\{{ $route.name }}`</code> view.
@@ -31,3 +17,17 @@
3117
}{{#if_eq eslintConfig 'airbnb'}},{{/if_eq}}
3218
}{{#if_eq eslintConfig 'airbnb'}};{{/if_eq}}
3319
</script>
20+
21+
<style scoped>
22+
code {
23+
background-color: rgba(40, 56, 76, .5);
24+
border-radius: 3px;
25+
color: #fff;
26+
font-weight: bold;
27+
padding: 3px 6px;
28+
margin: 0 3px;
29+
vertical-align: bottom;
30+
}
31+
32+
p { line-height: 24px; }
33+
</style>
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
<template>
2+
<ul>
3+
<li><a href="https://simulatedgreg.gitbooks.io/electron-vue/content/index.html">documentation</a></li> |
4+
<li><a href="http://electron.atom.io/">electron</a></li> |
5+
<li><a href="http://vuejs.org/">vue.js</a></li>
6+
</ul>
7+
</template>
8+
19
<style scoped>
210
a {
311
color: rgb(50, 174, 110);
412
text-decoration: none;
513
}
6-
7-
a:hover {
8-
color: rgb(40, 56, 76);
14+
15+
a:hover {
16+
color: rgb(40, 56, 76);
917
}
1018
1119
ul {
@@ -15,11 +23,3 @@
1523
1624
li { display: inline-block; }
1725
</style>
18-
19-
<template>
20-
<ul>
21-
<li><a href="https://simulatedgreg.gitbooks.io/electron-vue/content/index.html">documentation</a></li> |
22-
<li><a href="http://electron.atom.io/">electron</a></li> |
23-
<li><a href="http://vuejs.org/">vue.js</a></li>
24-
</ul>
25-
</template>

0 commit comments

Comments
 (0)