mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Styling for editor image uploader card
This commit is contained in:
parent
63f4020970
commit
0b867dfb89
5 changed files with 21 additions and 8 deletions
|
@ -47,7 +47,7 @@ module.exports = function(grunt) {
|
|||
return 'npm run build -- --environment=production --silent';
|
||||
case 'dev':
|
||||
return 'npm run build';
|
||||
case 'watch':
|
||||
case 'watch':
|
||||
return 'npm run build -- --watch';
|
||||
}
|
||||
},
|
||||
|
|
|
@ -43,11 +43,14 @@
|
|||
}
|
||||
|
||||
.__mobiledoc-card {
|
||||
display: inline-block; /* required for cursor movement around card */
|
||||
border: 1px solid;
|
||||
width: calc(100% - 20px); /* required for obvious cursor placmenet around card */
|
||||
margin:5px;
|
||||
}
|
||||
position: relative;
|
||||
display: block; /* required for cursor movement around card */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.__mobiledoc-card:hover {
|
||||
box-shadow: var(--blue) 0 0 0 1px;
|
||||
}
|
||||
|
||||
.__mobiledoc-card .card-handle {
|
||||
position: absolute;
|
||||
|
@ -150,3 +153,12 @@ textarea.ed_code {
|
|||
border-left: 10px solid transparent;
|
||||
border-right: 10px solid transparent;
|
||||
}
|
||||
|
||||
|
||||
.__mobiledoc-card .gh-image-uploader .upload-form {
|
||||
width: 100%;
|
||||
height: 350px;
|
||||
background: color(var(--lightgrey) l(+4%));
|
||||
box-shadow: var(--lightgrey) 0 0 0 1px inset, #fff 0 0 0 15px inset;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
flex-grow: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{{!-- file selection/drag-n-drop --}}
|
||||
<div class="upload-form">
|
||||
{{#gh-file-input multiple=false alt=description action=(action "fileSelected") accept=accept}}
|
||||
<div class="description">{{description}}</div>
|
||||
<div class="gh-btn gh-btn-outline"><span>{{description}}</span></div>
|
||||
{{/gh-file-input}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
{{!-- file selection/drag-n-drop --}}
|
||||
<div class="upload-form">
|
||||
{{#gh-file-input multiple=false alt=description action=(action 'fileSelected') accept=accept}}
|
||||
<div class="description">{{description}}</div>
|
||||
<div class="gh-btn gh-btn-blue"><span>{{description}}</span></div>
|
||||
{{/gh-file-input}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Reference in a new issue