mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 21:41:49 +03:00
7782c48383
- Uses Node Bourbon https://www.npmjs.org/package/node-bourbon - Produces source maps - Removed all ruby dependencie History: - Remove bourbon from package and cleanup grunt tasks - Un-bourbon keyframe animations - Un-bourbon transitions - Un-bourbon box-sizing - Un-bourbon font-feature-settings - Import bourbon clearfix mixin - Un-bourbon linear gradients - Un-bourbon input types - Un-bourbon positions - Un-bourbon transforms - Un-bourbon notification animations - Un-bourbon uploader box-sizing - Un-bourbon border-radius - Un-bourbon splitbutton transitions - Add triangle mixin - Un-bourbon default container positioning - Un-bourbon flexbox properties - Fix triangle mixin - It now has the same output as the Bourbon mixin - Add autoprefixer - Correct global default font size - Remove unwanted prefixes - Because, y'know, autoprefixer - Output from node sass migration - Includes all the files we usually have, plus source maps
204 lines
4.0 KiB
SCSS
204 lines
4.0 KiB
SCSS
//
|
|
// Image Uploader
|
|
// --------------------------------------------------
|
|
|
|
.image-uploader {
|
|
@include baseline;
|
|
position: relative;
|
|
overflow:hidden;
|
|
padding: 55px 60px;
|
|
border: $lightbrown 3px dashed;
|
|
width: 100%;
|
|
height: auto;
|
|
text-align: center;
|
|
color: $brown;
|
|
background: #F9F8F5;
|
|
|
|
a {
|
|
color: $brown;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: $darkgrey;
|
|
}
|
|
}
|
|
.description {
|
|
margin-top: 10px;
|
|
}
|
|
.media {
|
|
@include icon($i-image, 60px, darken($lightbrown, 3%)) {
|
|
display: inline-block;
|
|
vertical-align: initial;
|
|
transition: transform 1s ease;
|
|
}
|
|
}
|
|
|
|
.image-url,
|
|
.image-upload {
|
|
line-height: 12px;
|
|
padding: 10px;
|
|
display: block;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
color: $brown;
|
|
text-decoration: none;
|
|
@include user-select(none);
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.image-webcam {
|
|
@include icon($i-camera, 12px);
|
|
}
|
|
|
|
.image-url {
|
|
@include icon($i-link, 12px);
|
|
}
|
|
|
|
.image-upload {
|
|
@include icon($i-image, 12px);
|
|
}
|
|
|
|
.btn-green {
|
|
display: inline-block;
|
|
position:relative;
|
|
z-index: 700;
|
|
color: #fff;
|
|
padding-left:5px;
|
|
}
|
|
.btn-blue {
|
|
margin: 0 0 0 10px;
|
|
}
|
|
|
|
input {
|
|
&.main{
|
|
position: absolute;
|
|
right: 0;
|
|
margin: 0;
|
|
opacity: 0;
|
|
transform-origin: right;
|
|
transform: scale(14);
|
|
font-size: 23px;
|
|
direction: ltr;
|
|
cursor: pointer;
|
|
&.right {
|
|
right: 9999px;
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
&.url{
|
|
font: -webkit-small-control;
|
|
width: 276px;
|
|
vertical-align: middle;
|
|
padding: 9px 7px;
|
|
margin: 10px 0;
|
|
outline: 0;
|
|
font-size: 1.1em;
|
|
background: #fff;
|
|
border: #e3e1d5 1px solid;
|
|
border-radius: 4px;
|
|
transition: all 0.15s ease-in-out;
|
|
}
|
|
}
|
|
|
|
.progress {
|
|
position: relative;
|
|
margin: -19px 0 44px 0;
|
|
display: block;
|
|
overflow: hidden;
|
|
background: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
|
border-radius: 12px;
|
|
box-shadow: (rgba(0,0,0,0.1) 0 1px 2px inset);
|
|
}
|
|
|
|
.fileupload-loading {
|
|
display: block;
|
|
top: 50%;
|
|
width: 35px;
|
|
height: 28px;
|
|
margin: -28px auto 0;
|
|
background-size: contain;
|
|
}
|
|
|
|
.failed {
|
|
position: relative;
|
|
top: -40px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.bar {
|
|
height: 12px;
|
|
background: $blue;
|
|
|
|
&.fail {
|
|
background: $red;
|
|
}
|
|
}
|
|
|
|
} // .image-uploader
|
|
|
|
|
|
//
|
|
// Pre Image Uploader
|
|
// --------------------------------------------------
|
|
// TODO: Find a better name for this.
|
|
|
|
.pre-image-uploader {
|
|
@include baseline;
|
|
position: relative;
|
|
overflow: hidden;
|
|
height: auto;
|
|
color: $brown;
|
|
background: rgba(0,0,0,0.1);
|
|
border-radius: 2px;
|
|
min-height: 46px;
|
|
|
|
input {
|
|
position: absolute;
|
|
left: 9999px;
|
|
opacity: 0;
|
|
}
|
|
|
|
a {
|
|
z-index: 10000;
|
|
color: $brown;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
color: $darkgrey;
|
|
}
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
line-height: 0;
|
|
}
|
|
|
|
.image-cancel {
|
|
@include icon($i-trash, 11px);
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
padding: 8px;
|
|
z-index: 300;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
line-height: 0;
|
|
border-radius: $rounded;
|
|
background: rgba(0,0,0,0.6);
|
|
box-shadow: rgba(255,255,255,0.2) 0 0 0 1px;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
cursor: pointer;
|
|
background: $red;
|
|
}
|
|
}
|
|
|
|
} // .pre-image-uploader |