index.scss 3.8 KB
Newer Older
P
Pan 已提交
1
@import './mixin.scss';
P
init  
Pan 已提交
2
@import './btn.scss';
P
Pan 已提交
3
@import './element-ui.scss';
P
Pan 已提交
4 5
@import './sidebar.scss';

P
init  
Pan 已提交
6 7 8 9
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
P
Pan 已提交
10
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
P
init  
Pan 已提交
11
}
P
Pan 已提交
12 13

label {
P
init  
Pan 已提交
14 15 16 17 18 19 20
  font-weight: 700;
}

html {
  box-sizing: border-box;
}

P
Pan 已提交
21 22 23
*,
*:before,
*:after {
P
init  
Pan 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

P
Pan 已提交
68 69
.pointer {
  cursor: pointer;
P
init  
Pan 已提交
70 71
}

P
Pan 已提交
72 73
.inlineBlock {
  display: block;
P
init  
Pan 已提交
74
}
P
Pan 已提交
75 76 77

code {
  background: #eef1f6;
P
refine  
Pan 已提交
78
  padding: 15px 10px;
P
Pan 已提交
79 80
  margin-bottom: 20px;
  display: block;
P
refine  
Pan 已提交
81
  line-height: 36px;
P
add  
Pan 已提交
82 83 84 85 86 87 88
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
P
Pan 已提交
89 90 91 92
}

.fade-enter-active,
.fade-leave-active {
P
init  
Pan 已提交
93 94 95
  transition: all .2s ease
}

P
Pan 已提交
96 97
.fade-enter,
.fade-leave-active {
P
init  
Pan 已提交
98 99 100
  opacity: 0;
}

P
Pan 已提交
101

P
init  
Pan 已提交
102 103 104 105
//main-container全局样式
.app-container {
  padding: 20px;
}
P
Pan 已提交
106 107 108
.components-container {
  margin: 30px 50px;
  position: relative;
P
init  
Pan 已提交
109 110 111 112 113
}
.pagination-container {
  margin-top: 30px;
}

P
Pan 已提交
114 115
.editor-container .CodeMirror {
  height: 100%!important;
P
init  
Pan 已提交
116 117
}

P
Pan 已提交
118 119 120
.text-center{
  text-align: center
}
P
Pan 已提交
121
.svg-icon {
P
init  
Pan 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

P
Pan 已提交
150 151
.link-type,
.link-type:focus {
P
init  
Pan 已提交
152 153
  color: #337ab7;
  cursor: pointer;
P
Pan 已提交
154
  &:hover {
P
init  
Pan 已提交
155 156 157 158
    color: rgb(32, 160, 255);
  }
}

P
Pan 已提交
159 160 161
.publishedTag,
.draftTag,
.deletedTag {
P
init  
Pan 已提交
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
  color: #fff;
  background-color: $panGreen;
  line-height: 1;
  text-align: center;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  position: absolute;
  left: 20px;
  top: 10px;
}

.draftTag {
  background-color: $yellow;
}

.deletedTag {
  background-color: $red;
}

.input-label {
  font-size: 14px;
  color: #48576a;
  line-height: 1;
  padding: 11px 5px 11px 0;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.no-marginLeft {
  .el-checkbox {
    margin: 0 20px 15px 0;
  }
P
Pan 已提交
205
  .el-checkbox+.el-checkbox {
P
init  
Pan 已提交
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228
    margin-left: 0px;
  }
}

.filter-container {
  padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}


//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

P
Pan 已提交
229 230 231 232 233 234 235
//refine simplemde
.simplemde-container{
  .editor-toolbar.fullscreen,.CodeMirror-fullscreen{
    z-index: 1003;
  }
}

P
init  
Pan 已提交
236
//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
P
Pan 已提交
237
.el-dialog {
P
init  
Pan 已提交
238 239 240 241 242
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}
P
Pan 已提交
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271

//github-corner
.github-corner:hover .octo-arm {
  animation: octocat-wave 560ms ease-in-out
}

@keyframes octocat-wave {
  0%,
  100% {
    transform: rotate(0)
  }
  20%,
  60% {
    transform: rotate(-25deg)
  }
  40%,
  80% {
    transform: rotate(10deg)
  }
}

@media (max-width:500px) {
  .github-corner:hover .octo-arm {
    animation: none
  }
  .github-corner .octo-arm {
    animation: octocat-wave 560ms ease-in-out
  }
}