Skip to content

Commit

Permalink
Merge pull request #348 from matematikk-mooc/KURSP-929-fix-bug-in-ann…
Browse files Browse the repository at this point in the history
…ouncement-layout

applying style changes that were missing
  • Loading branch information
ThereseRingPersen authored Nov 8, 2023
2 parents a14aa1d + 461cc7b commit 6475de5
Showing 1 changed file with 54 additions and 52 deletions.
106 changes: 54 additions & 52 deletions src/vue/components/announcements/announcements.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<a :href="concatenatedUrl" class="course-page-announcements__container">
<h3 class="course-page-announcements__title">
<a :href="concatenatedUrl" class="course-page-announcements-container">
<h3 class="course-page-announcements-title">
<Icon aria-hidden="true" class="announcements-icon" name="campaign" size="2em" />
<span>Kunngjøringer</span>
</h3>
<div class="course-page-announcements__count" v-if="count > 0">{{ count }}</div>
<div class="course-page-announcements-count" v-if="count > 0">{{ count }}</div>
</a>
</template>

Expand Down Expand Up @@ -32,61 +32,63 @@ const concatenatedUrl = computed(() => {
});
</script>





<style lang="scss">
@import '../../design/box-shadow';
@import '../../design/colors.scss';
.course-page-announcements {
&__container{
text-decoration:none;
display: flex;
width: 100%;
position: relative;
font-family: Roboto;
color:map-get($color-palette-steel, foreground, 200);
max-width: 35rem;
min-width: 30rem;
align-items: center;
justify-content: flex-start;
padding: 1rem;
border-radius: 1.6875rem 0 0 1.6875rem;
border: 0.0625rem solid $color-grey-400;
gap: 0.5rem;
background-color: map-get($color-palette-steel, background, 200);
@include box-shadow(medium);
margin: 0 1rem 1.25rem 1rem;
&:hover{
text-decoration: none;
color: $primary-hover-color;
}
}
&__title {
font-size: 1.125rem;
letter-spacing: 0.05em;
font-style: normal;
font-weight: 400;
line-height: normal;
display:flex;
align-items:center;
gap:0.5rem;
}
&__count {
.course-page-announcements-container {
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
position: relative;
top: 0.065rem;
width: 1rem;
height: 1rem;
font-size: 0.875rem;
background-color: map-get($color-palette-red, background, 600);
padding: 0.125rem;
border-radius: 50%;
color: map-get($color-palette-red, foreground, 600);
font-family: Roboto;
color: map-get($color-palette-steel, foreground, 200);
max-width: 35rem;
min-width: 30rem;
align-items: center;
justify-content: flex-start;
padding: 1rem;
border-radius: 1.6875rem 0 0 1.6875rem;
border: 0.0625rem solid $color-grey-400;
gap: 0.5rem;
background-color: map-get($color-palette-steel, background, 200);
@include box-shadow(medium);
margin: 0 1rem 1.25rem 1rem;
.course-page-announcements-title {
font-size: 1.125rem;
letter-spacing: 0.05em;
font-style: normal;
font-weight: 400;
line-height: normal;
display: flex;
align-items: center;
gap: 0.5rem;
}
.course-page-announcements-count {
display: flex;
justify-content: center;
align-items: center;
position: relative;
top: 0.065rem;
width: 1rem;
height: 1rem;
font-size: 0.875rem;
background-color: map-get($color-palette-red, background, 600);
padding: 0.125rem;
border-radius: 50%;
color: map-get($color-palette-red, foreground, 600);
}
&:hover {
text-decoration: none;
background-color: map-get($color-palette-azur, background, 300);
color: map-get($color-palette-azur, foreground, 300);
.course-page-announcements-title {
font-weight: 600;
}
}
}
</style>

0 comments on commit 6475de5

Please sign in to comment.