Mobile styling overrides for NetlifyCMS to make it more responsive-ish.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Content Manager</title> | |
</head> | |
<body> | |
<!-- Include the script that builds the page and powers Netlify CMS --> | |
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> | |
<link href="mobile-overrides.css" rel="stylesheet" /> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width: 799px) { | |
[class*=BackCollection], | |
[class*=BackStatus] { | |
font-size: .6rem; | |
} | |
[class*=AppHeaderContent], | |
[class*=AppMainContainer] { | |
margin-right: 0; | |
margin-left: 0; | |
min-width: calc(100vw - 24px); | |
max-width: 100vw; | |
} | |
[class*=AppHeaderContent] { | |
display: flex; | |
justify-content: space-between; | |
} | |
[class*=AppHeaderQuickNewButton] { | |
width: 100%; | |
} | |
[class*=AppHeaderButton] { | |
padding-left: 4px; | |
padding-right: 4px; | |
} | |
[class*=EditorContainer], | |
[class*=ToolbarContainer] { | |
min-width: initial; | |
} | |
[class*=ToolbarSubSectionFirst] { | |
display: flex; | |
flex-direction: column; | |
} | |
[class*=PublishedToolbarButton] { | |
padding: 0 8px; | |
} | |
[class*=PublishedToolbarButton]::after { | |
display: none; | |
} | |
[class*=DeleteButton] { | |
margin-top: 5px; | |
padding: 0 2px; | |
} | |
[class*=ViewControls] { | |
position: initial; | |
} | |
[class*=PreviewPaneContainer-ControlPaneContainer] { | |
padding: 0; | |
} | |
[class*=ControlPaneContainer] { | |
max-width: 100vw; | |
} | |
[class*=EditorControlBar] [class*=ToolbarContainer] { | |
display: flex; | |
flex-direction: column; | |
} | |
[class*=CollectionContainer] { | |
display: flex; | |
flex-direction: column; | |
} | |
[class*=SidebarContainer] { | |
position: initial; | |
width: initial; | |
} | |
[class*=CollectionMain] { | |
padding-left: 0; | |
margin-top: 20px; | |
} | |
} |
@ambrod last one I changed yeah
I'm very sorry but I never used the image features of this. You might try staticcms, which is a fork of the netlify CMS and is working on adding mobile support
Thanks for sharing this!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
great job ! Is this the last version ?