Skip to content

Commit

Permalink
Update runtime app & usermenu styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Sep 2, 2021
1 parent d764b03 commit 6942367
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
33 changes: 13 additions & 20 deletions packages/web-runtime/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
</skip-to>
<div
v-if="user.isAuthenticated && !user.userReady"
class="loading-overlay"
class="loading-overlay uk-flex uk-flex-middle uk-flex-center"
:style="{
backgroundImage: 'url(' + configuration.theme.loginPage.backgroundImg + ')'
}"
>
<oc-spinner size="xlarge" :aria-label="$gettext('Loading')" class="uk-position-center" />
<oc-spinner size="xlarge" :aria-label="$gettext('Loading')" />
</div>
<template v-else-if="!showHeader">
<router-view name="fullscreen" />
Expand Down Expand Up @@ -402,7 +402,7 @@ export default {
}
}
</script>
<style>
<style lang="scss">
html,
body,
#web,
Expand Down Expand Up @@ -439,10 +439,6 @@ body,
overflow-y: auto;
}
#oc-header {
grid-area: header;
}
.oc-app-navigation {
position: sticky;
top: 0;
Expand All @@ -452,21 +448,18 @@ body,
.loading-overlay {
background-size: cover;
background-repeat: no-repeat;
background-position: 50%;
position: fixed;
top: 0;
left: 0;
width: 100%;
background-position: center;
height: 100%;
}
.loading-overlay .oc-spinner {
color: #0a264e;
}
width: 100%;
.loading-overlay .oc-spinner:after {
border: 10px solid;
border-bottom: 10px solid transparent;
.oc-spinner {
color: #0a264e;
display: inline-block;
&::after {
border: 10px solid;
border-bottom: 10px solid transparent;
}
}
}
@media only screen and (max-width: 960px) {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-runtime/src/components/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>
<oc-grid flex>
<avatar-image
class="oc-topbar-personal-avatar uk-flex-inline uk-flex-center uk-flex-middle"
class="oc-topbar-personal-avatar uk-flex-inline uk-flex-center uk-flex-middle oc-px-s"
:width="24"
:userid="userId"
:user-name="userDisplayName"
Expand Down

0 comments on commit 6942367

Please sign in to comment.