|
|
@@ -1,13 +1,13 @@
|
|
|
<template>
|
|
|
- <div class="notice-card" @click="showMore = !showMore">
|
|
|
- <div class="notice-card-title" :class="showMore ? 'cancel-bottom-radius' : null">
|
|
|
- <c-icon>notifications</c-icon>
|
|
|
+ <div class="notice-card">
|
|
|
+ <div class="notice-card-title" @click="showMore = !showMore" :class="showMore ? 'cancel-bottom-radius' : null">
|
|
|
+ <c-icon color="orange">notifications</c-icon>
|
|
|
课程公告:{{notice.title}}
|
|
|
<c-icon bold class="more-icon">{{showMore ? 'expand_less' : 'expand_more'}}</c-icon>
|
|
|
</div>
|
|
|
<show-transition>
|
|
|
<div v-if="showMore" class="notice-card-info">
|
|
|
- {{notice.content}}
|
|
|
+ <pre>{{notice.content}}</pre>
|
|
|
</div>
|
|
|
</show-transition>
|
|
|
<show-transition-small>
|
|
|
@@ -57,29 +57,28 @@ export default {
|
|
|
margin: 8px 0;
|
|
|
border-radius: 12px;
|
|
|
transition: .2s;
|
|
|
- cursor: pointer;
|
|
|
- background: $theme-green-transparent;
|
|
|
+ background: lighten($card-background, 2);
|
|
|
}
|
|
|
|
|
|
.notice-card-title {
|
|
|
- background-color: $theme-green;
|
|
|
+ background-color: darken($card-background, 3);
|
|
|
border-radius: 12px;
|
|
|
font-size: 14px;
|
|
|
- color: white;
|
|
|
+ color: #2a3a4a;
|
|
|
padding: 8px 12px;
|
|
|
+ cursor: pointer;
|
|
|
|
|
|
.c-icon {
|
|
|
transform-origin: top;
|
|
|
transform: scale(1.25);
|
|
|
- color: white;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.notice-card-info {
|
|
|
font-size: 13px;
|
|
|
- color: #839a91;
|
|
|
+ color: #4a5a6a;
|
|
|
line-height: 1.7;
|
|
|
- margin: 6px 12px;
|
|
|
+ margin: 0 12px;
|
|
|
}
|
|
|
|
|
|
.notice-card-time {
|
|
|
@@ -92,7 +91,8 @@ export default {
|
|
|
|
|
|
.c-button {
|
|
|
padding: 4px 12px;
|
|
|
- background: rgba(255, 255, 255, .8);
|
|
|
+ background: white;
|
|
|
+ box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
|
|
|
|
|
|
&:hover {
|
|
|
background: white;
|
|
|
@@ -108,4 +108,9 @@ export default {
|
|
|
display: inline-block;
|
|
|
float: right;
|
|
|
}
|
|
|
+
|
|
|
+pre {
|
|
|
+ white-space: pre-wrap;
|
|
|
+ word-break: break-all;
|
|
|
+}
|
|
|
</style>
|