refactor style, fix #77 #76

This commit is contained in:
les
2020-06-22 19:15:32 +02:00
parent eab90627a3
commit 3f1bf4cc4a
8 changed files with 152 additions and 72 deletions

61
assets/editor.less Normal file
View File

@@ -0,0 +1,61 @@
.editor {
position: relative;
overflow-y: auto;
padding-top: 1.7em;
scrollbar-width: thin;
&.with-border {
border: 1px solid #ddd;
border-radius: 5px;
}
.content {
padding: 0px 5px 0px 5px;
flex: 1;
scrollbar-width: thin;
overflow-y: auto;
}
.menububble {
position: absolute;
display: flex;
overflow: hidden;
opacity: 0;
z-index: 1;
background: #dddddd;
transform: translateX(-50%);
border-radius: 3px;
padding: 0.07rem;
transition: opacity 0.2s, visibility 0.2s, left .2s, bottom .2s;
visibility: hidden;
&.is-active {
opacity: 1;
visibility: visible;
}
input {
padding: 0;
margin: 1px;
display: block;
border: 0;
color: #444;
font-size: .8em;
border-radius: 3px;
line-height: 100%;
transition: width .2s;
padding-left: 5px;
flex-grow: 1;
}
.fa-icon {
width: auto;
font-size: 10px;
height: 1.4em; /* or any other relative font sizes */
/* You would have to include the following two lines to make this work in Safari */
// max-width: 100%;
max-height: 100%;
}
}
}

57
assets/event.less Normal file
View File

@@ -0,0 +1,57 @@
.event,
.announcement {
width: 320px;
max-width: 450px;
flex-grow: 1;
margin: .2em;
background-color: #202020;
max-height: 400px;
overflow: hidden;
a:hover {
text-decoration: none;
.title {
border-bottom: 1px solid #888;
color: white;
}
}
.title {
margin-left: 1rem;
margin-top: 1rem;
margin-right: 1rem;
border-bottom: 1px solid #333;
transition: border-color .5s;
font-size: 1.2em;
max-height: 3em;
overflow: hidden;
color: #fea;
}
.card-footer {
max-height: 4.5em;
overflow: hidden;
padding: .25rem 0.5rem;
line-height: 1.8rem;
min-height: 2.2rem;
}
.card-body {
overflow: hidden;
}
.description {
color: #999;
font-size: 0.8em;
overflow: hidden;
max-height: 100%;
}
.el-image { width: 100% }
img {
width: 100%;
max-height: 250px;
object-fit: cover;
object-position: top;
}
}

View File

@@ -30,10 +30,6 @@ html, body {
padding: 0 !important;
}
p {
margin-bottom: 0.5rem;
}
#__nuxt, #__layout {
min-height: 100vh;
display: flex;
@@ -180,4 +176,8 @@ p {
// padding: 0px !important;
// border-radius: 0px;
// }
// }
// }
@import './event.less';
@import './editor.less';