Skip to content
This repository was archived by the owner on Mar 25, 2020. It is now read-only.

Commit 7139338

Browse files
committed
スタイルシートを追加
1 parent 2700f3c commit 7139338

File tree

7 files changed

+35
-4
lines changed

7 files changed

+35
-4
lines changed

Diff for: package.json

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"author": "",
1212
"license": "MIT",
1313
"dependencies": {
14+
"bootstrap": "^4.0.0-alpha.5",
1415
"dexie": "^2.0.0-beta.6",
1516
"tslib": "^1.2.0",
1617
"vue": "^2.1.3",
@@ -20,8 +21,11 @@
2021
"vuex": "^2.0.0"
2122
},
2223
"devDependencies": {
24+
"css-loader": "^0.26.0",
2325
"extract-text-webpack-plugin": "^2.0.0-beta.4",
2426
"html-webpack-plugin": "^2.24.1",
27+
"node-sass": "^3.13.0",
28+
"sass-loader": "^4.0.2",
2529
"ts-loader": "^1.2.2",
2630
"typescript": "^2.1.1",
2731
"vue-template-compiler": "^2.1.3",

Diff for: src/Home/Home.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div>
22
<jumbotron></jumbotron>
3-
<div class="container">
3+
<div class="container page-container">
44
<h2>これまでに寄せられたメッセージ</h2>
55
<div class="card card-block" v-for="message in messages">
66
<div>{{ message.date | format }}</div>

Diff for: src/Links/Links.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container">
1+
<div class="container page-container">
22
<h1>リンク一覧</h1>
33
<ul>
44
<li v-for="link in links">

Diff for: src/Settings/Settings.template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="container">
1+
<div class="container page-container">
22
<h1>設定</h1>
33
<div>
44
<button class="btn btn-primary" @click="reset">メッセージを削除する</button>

Diff for: src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import router from './router'
55
import { mapActions } from 'vuex'
66
import store from './vuex/store'
77
import Navbar from './navbar/navbar'
8+
import './style.scss'
89

910
@Component(template<App>({
1011
components: {

Diff for: src/style.scss

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@import "~bootstrap/scss/bootstrap-reboot";
2+
@import "~bootstrap/scss/mixins";
3+
4+
// @import "~bootstrap/scss/grid";
5+
.container {
6+
@include make-container();
7+
@include make-container-max-widths();
8+
}
9+
10+
.page-container {
11+
margin-top: 2rem;
12+
}
13+
14+
// @import "~bootstrap/scss/utilities/background";
15+
.bg-faded {
16+
background-color: darken($body-bg, 3%);
17+
}
18+
19+
@import "~bootstrap/scss/buttons";
20+
@import "~bootstrap/scss/card";
21+
@import "~bootstrap/scss/close";
22+
@import "~bootstrap/scss/forms";
23+
@import "~bootstrap/scss/modal";
24+
@import "~bootstrap/scss/nav";
25+
@import "~bootstrap/scss/navbar";
26+
@import "~bootstrap/scss/type";
27+
@import "~bootstrap/scss/jumbotron";

Diff for: template.html

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Vue.jsとTypeScriptのサンプル2</title>
6-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" crossorigin="anonymous">
76
</head>
87
<body>
98
<div id="app"></div>

0 commit comments

Comments
 (0)