BigW Consortium Gitlab

moved styles out of the component

added theme styles
parent 201afb0f
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
</div> </div>
</template> </template>
<template v-else> <template v-else>
<div class="context-header"> <div class="context-header ide-context-header">
<a <a
:href="currentProject.web_url" :href="currentProject.web_url"
> >
...@@ -76,7 +76,6 @@ export default { ...@@ -76,7 +76,6 @@ export default {
{{ currentProject.name }} {{ currentProject.name }}
</div> </div>
<div <div
v-if="currentBranchId !== ''"
class="sidebar-context-title ide-sidebar-branch-title" class="sidebar-context-title ide-sidebar-branch-title"
> >
<icon <icon
...@@ -96,15 +95,3 @@ export default { ...@@ -96,15 +95,3 @@ export default {
</div> </div>
</resizable-panel> </resizable-panel>
</template> </template>
<style>
.ide-sidebar-branch-title {
font-weight: normal;
}
.ide-sidebar-branch-title svg {
position: relative;
top: 3px;
margin-top: -1px;
}
</style>
...@@ -63,7 +63,7 @@ router.beforeEach((to, from, next) => { ...@@ -63,7 +63,7 @@ router.beforeEach((to, from, next) => {
const fullProjectId = `${to.params.namespace}/${to.params.project}`; const fullProjectId = `${to.params.namespace}/${to.params.project}`;
if (to.params.branch) { if (to.params.branch) {
store.commit('SET_CURRENT_BRANCH', to.params.branch); store.dispatch('setCurrentBranchId', to.params.branch);
store.dispatch('getBranchData', { store.dispatch('getBranchData', {
projectId: fullProjectId, projectId: fullProjectId,
......
...@@ -120,6 +120,10 @@ export const setEmptyStateSvgs = ({ commit }, svgs) => { ...@@ -120,6 +120,10 @@ export const setEmptyStateSvgs = ({ commit }, svgs) => {
commit(types.SET_EMPTY_STATE_SVGS, 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/tree';
export * from './actions/file'; export * from './actions/file';
export * from './actions/project'; export * from './actions/project';
......
...@@ -196,6 +196,10 @@ ...@@ -196,6 +196,10 @@
box-shadow: inset 3px 0 $color-700; box-shadow: inset 3px 0 $color-700;
} }
} }
.ide-context-header a {
color: $color-700;
}
} }
body { body {
......
...@@ -895,3 +895,13 @@ ...@@ -895,3 +895,13 @@
margin-left: auto; margin-left: auto;
} }
} }
.ide-sidebar-branch-title {
font-weight: $gl-font-weight-normal;
svg {
position: relative;
top: 3px;
margin-top: -1px;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment