noteLoadFailed == false
"
type="button"
- class="btn btn-sm btn-outline-warning mx-1"
+ class="bttn"
@click="toggleEditMode"
>
- Edit
+ <b-icon icon="pencil-square"></b-icon> Edit
</button>
<!-- Delete -->
noteLoadFailed == false
"
type="button"
- class="btn btn-sm btn-outline-danger mx-1"
+ class="bttn"
@click="deleteNote"
>
- Delete
+ <b-icon icon="trash"></b-icon> Delete
</button>
<!-- Cancel -->
<button
v-if="currentView == views.note && editMode == true"
type="button"
- class="btn btn-sm btn-outline-secondary mx-1"
+ class="bttn"
@click="cancelNote"
>
- Cancel
+ <b-icon icon="arrow-return-left"></b-icon> Cancel
</button>
<!-- Save -->
<button
v-if="currentView == views.note && editMode == true"
type="button"
- class="btn btn-sm btn-outline-success mx-1"
+ class="bttn"
@click="saveNote"
>
- Save
+ <b-icon icon="check-square"></b-icon> Save
</button>
</div>
<template>
<div
- class="d-flex flex-column justify-content-center align-items-center flex-grow-1"
+ class="
+ d-flex
+ flex-column
+ justify-content-center
+ align-items-center
+ flex-grow-1
+ "
>
<!-- Logo -->
<div class="mb-3">
</div>
<!-- Button -->
- <button type="submit" class="btn btn-primary">Log In</button>
+ <button type="submit" class="bttn">
+ <b-icon icon="box-arrow-in-right"></b-icon> Log In
+ </button>
</form>
</div>
</template>
</div>
<div>
<!-- New Note -->
- <button
- type="button"
- class="btn btn-sm btn-outline-primary mx-1"
- @click="$emit('new-note')"
- >
- New Note
+ <button type="button" class="bttn" @click="$emit('new-note')">
+ <b-icon icon="plus-circle"></b-icon> New Note
</button>
<!-- Log Out -->
- <button
- type="button"
- class="btn btn-sm btn-outline-dark mx-1"
- @click="$emit('logout')"
- >
- Log Out
+ <button type="button" class="bttn" @click="$emit('logout')">
+ <b-icon icon="box-arrow-right"></b-icon> Log Out
</button>
<!-- Search -->
<button
type="button"
id="search-button"
- class="btn btn-sm btn-outline-dark mx-1"
+ class="bttn"
@click="$emit('search')"
v-b-tooltip.hover
title="Keyboard Shortcut: /"
>
- <BIconSearch />
+ <b-icon icon="search"></b-icon>
</button>
</div>
</div>
</style>
<script>
-import { BIconSearch } from "bootstrap-vue";
-
export default {
- components: {
- BIconSearch,
- },
-
props: {
showLogo: {
type: Boolean,
/>
<div class="input-group-append">
<button class="btn" type="submit">
- <BIconSearch />
+ <b-icon icon="search"></b-icon>
</button>
</div>
</div>
<script>
import EventBus from "../eventBus";
import * as constants from "../constants";
-import { BIconSearch } from "bootstrap-vue";
export default {
- components: {
- BIconSearch,
- },
-
data: function () {
return {
searchTermInput: null,
min-height: 190px;
}
+.bttn {
+ border: 0;
+ background-color: transparent;
+ border-radius: 4px;
+ padding: 4px 10px;
+ color: #6c757d;
+
+ svg {
+ margin-right: 4px;;
+ }
+}
+.bttn:hover {
+ background-color: rgba(0, 0, 0, 0.03);
+}
+
// Toast UI Overrides
.toastui-editor-contents {
font-family: "Inter", sans-serif;