moved styles out of the component

added theme styles
This commit is contained in:
Phil Hughes 2018-04-17 16:41:18 +01:00
parent 201afb0f85
commit fda4128ad0
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F
5 changed files with 20 additions and 15 deletions

View file

@ -49,7 +49,7 @@ export default {
</div>
</template>
<template v-else>
<div class="context-header">
<div class="context-header ide-context-header">
<a
:href="currentProject.web_url"
>
@ -76,7 +76,6 @@ export default {
{{ currentProject.name }}
</div>
<div
v-if="currentBranchId !== ''"
class="sidebar-context-title ide-sidebar-branch-title"
>
<icon
@ -96,15 +95,3 @@ export default {
</div>
</resizable-panel>
</template>
<style>
.ide-sidebar-branch-title {
font-weight: normal;
}
.ide-sidebar-branch-title svg {
position: relative;
top: 3px;
margin-top: -1px;
}
</style>

View file

@ -63,7 +63,7 @@ router.beforeEach((to, from, next) => {
const fullProjectId = `${to.params.namespace}/${to.params.project}`;
if (to.params.branch) {
store.commit('SET_CURRENT_BRANCH', to.params.branch);
store.dispatch('setCurrentBranchId', to.params.branch);
store.dispatch('getBranchData', {
projectId: fullProjectId,

View file

@ -120,6 +120,10 @@ export const setEmptyStateSvgs = ({ commit }, svgs) => {
commit(types.SET_EMPTY_STATE_SVGS, svgs);
};
export const setCurrentBranchId = ({ commit }, currentBranchId) => {
commit(types.SET_CURRENT_BRANCH, currentBranchId);
};
export * from './actions/tree';
export * from './actions/file';
export * from './actions/project';

View file

@ -196,6 +196,10 @@
box-shadow: inset 3px 0 $color-700;
}
}
.ide-context-header a {
color: $color-700;
}
}
body {

View file

@ -895,3 +895,13 @@
margin-left: auto;
}
}
.ide-sidebar-branch-title {
font-weight: $gl-font-weight-normal;
svg {
position: relative;
top: 3px;
margin-top: -1px;
}
}