Admin css tweaks

This commit is contained in:
Eric Jinks 2017-12-08 09:17:51 +10:00
parent 2323781b32
commit bc793f5b72
2 changed files with 22 additions and 0 deletions

21
public/admin/admin.css Normal file
View file

@ -0,0 +1,21 @@
/* Admin tweaks 1.0.2 */
.nc-mediaLibrary-cardImage {
object-fit: contain;
height: auto;
width: auto;
object-position: center;
max-width: 100%;
max-height: 100%;
}
.nc-mediaLibrary-cardImage-container {
height: 160px;
display: flex;
align-items: center;
justify-content: center;
}
.nc-imageControl-imageWrapper img {
object-fit: contain;
object-position: center;
}

View file

@ -7,6 +7,7 @@
<!-- Include the styles for the Netlify CMS UI, after your own styles -->
<link rel="stylesheet" href="https://unpkg.com/netlify-cms/dist/cms.css" />
<link rel="stylesheet" href="admin.css" />
</head>
<body>