mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
add styles to menu
This commit is contained in:
@@ -5,10 +5,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
#app {
|
#app, * {
|
||||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
font-family: Open-Sans, Helvetica, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #2c3e50;
|
}
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
24
src/assets/styles/buttons.css
Normal file
24
src/assets/styles/buttons.css
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
button.primary {
|
||||||
|
background: var(--color-accent);
|
||||||
|
border: 1px solid var(--color-accent-shade);
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-radius: var(--border-radius-big);
|
||||||
|
height: 36px;
|
||||||
|
padding: 0 12px;
|
||||||
|
min-width: 83px;
|
||||||
|
color: var(--color-text-white);
|
||||||
|
text-shadow: var(--shadow);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.primary:hover {
|
||||||
|
background: var(--color-accent-shade);
|
||||||
|
border: 1px solid var(--color-accent-shade);
|
||||||
|
color: var(--color-text-white);
|
||||||
|
text-shadow: var(--shadow);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -5,9 +5,10 @@
|
|||||||
--color-border-light: #DFE8F3;
|
--color-border-light: #DFE8F3;
|
||||||
--color-text-base: #506784;
|
--color-text-base: #506784;
|
||||||
--color-text-white: #ffffff;
|
--color-text-white: #ffffff;
|
||||||
--shadow: 0 1px 2px rgba(43, 63, 95, 0.7);
|
|
||||||
}
|
--shadow: 0 1px 2px rgba(42, 63, 95, 0.7);
|
||||||
body {
|
|
||||||
margin: 0;
|
--border-radius-big: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
<router-link to="/my-queries">My queries</router-link>
|
<router-link to="/my-queries">My queries</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button>Save</button>
|
<button class="primary">Save</button>
|
||||||
<button>Create</button>
|
<button class="primary">Create</button>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</template>
|
</template>
|
||||||
@@ -29,5 +29,19 @@ nav {
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
|
padding: 0 52px;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
font-size: 18px;
|
||||||
|
color: var(--color-text-base);
|
||||||
|
text-transform: none;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-right: 28px;
|
||||||
|
}
|
||||||
|
a.router-link-active {
|
||||||
|
color: var(--color-accent);
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
margin-left: 16px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import store from './store'
|
|||||||
import VueReact from 'vue-react'
|
import VueReact from 'vue-react'
|
||||||
import PlotlyEditor from 'react-chart-editor'
|
import PlotlyEditor from 'react-chart-editor'
|
||||||
|
|
||||||
import '@/assets/styles/colors.css'
|
import '@/assets/styles/variables.css'
|
||||||
|
import '@/assets/styles/buttons.css'
|
||||||
|
|
||||||
Vue.use(VueReact)
|
Vue.use(VueReact)
|
||||||
Vue.react('PlotlyEditor', PlotlyEditor)
|
Vue.react('PlotlyEditor', PlotlyEditor)
|
||||||
|
|||||||
Reference in New Issue
Block a user