diff --git a/app/styles/components/badges.css b/app/styles/components/badges.css index 7c6df0605..202f6f4ee 100644 --- a/app/styles/components/badges.css +++ b/app/styles/components/badges.css @@ -3,18 +3,18 @@ .badge { display: inline-block; - min-width: 10px; padding: 2px 4px; - box-shadow: 0 0 0 1px #777; - font-size: 1rem; - font-weight: inherit; - color: #fff; - line-height: 1; - vertical-align: baseline; - white-space: nowrap; - text-align: center; + min-width: 10px; background-color: #777; border-radius: 10px; + box-shadow: 0 0 0 1px #777; + color: #fff; + vertical-align: baseline; + text-align: center; + white-space: nowrap; + font-size: 1rem; + line-height: 1; + font-weight: inherit; } .badge:empty { @@ -32,10 +32,10 @@ } p .badge { - padding: 0 4px 3px; position: relative; top: -2px; margin-left: -1px; + padding: 0 4px 3px; } .nav-pills > li > a > .badge { diff --git a/app/styles/components/dropdowns.css b/app/styles/components/dropdowns.css index de29cfea4..8aa89c94c 100644 --- a/app/styles/components/dropdowns.css +++ b/app/styles/components/dropdowns.css @@ -15,20 +15,20 @@ top: 100%; left: 0; float: left; - min-width: 220px; - padding: 5px 0; margin: 2px 0 0; - background-color: #fff; + padding: 5px 0; + min-width: 220px; border: color(var(--lightgrey) lightness(-15%)) 1px solid; + background-color: #fff; + background-clip: padding-box; border-radius: 4px; box-shadow: rgba(0, 0, 0, 0.175) 0 2px 6px; - background-clip: padding-box; list-style: none; - font-size: 1.4rem; - font-weight: normal; + text-align: left; text-transform: none; letter-spacing: 0; - text-align: left; + font-size: 1.4rem; + font-weight: normal; } .dropdown-menu.pull-right { @@ -37,29 +37,29 @@ } .dropdown-menu .divider { - height: 1px; - margin: 4px 0; overflow: hidden; + margin: 4px 0; + height: 1px; background: color(var(--lightgrey) lightness(-5%)); } .dropdown-menu > li > a, .dropdown-menu > li > button { display: block; - width: 100%; - padding: 3px 20px; clear: both; - font-weight: normal; - line-height: 1.9em; - text-align: left; + padding: 3px 20px; + width: 100%; color: #333; + text-align: left; white-space: nowrap; + line-height: 1.9em; + font-weight: normal; transition: none; } .dropdown-menu i { - font-size: 0.9em; margin-right: 0.5rem; + font-size: 0.9em; } @@ -71,9 +71,9 @@ .dropdown-menu > li > a:focus, .dropdown-menu > li > button:hover, .dropdown-menu > li > button:focus { - text-decoration: none; - color: #fff; background: var(--blue); + color: #fff; + text-decoration: none; } /* Active */ @@ -83,10 +83,10 @@ .dropdown-menu > .active > button, .dropdown-menu > .active > button:hover, .dropdown-menu > .active > button:focus { - color: #fff; - text-decoration: none; outline: 0; background-color: #428bca; + color: #fff; + text-decoration: none; } /* Disabled */ @@ -103,9 +103,9 @@ .dropdown-menu > .disabled > a:focus, .dropdown-menu > .disabled > button:hover, .dropdown-menu > .disabled > button:focus { - text-decoration: none; background-color: transparent; background-image: none; + text-decoration: none; cursor: not-allowed; } diff --git a/app/styles/components/modals.css b/app/styles/components/modals.css index 43e79124a..964e25941 100644 --- a/app/styles/components/modals.css +++ b/app/styles/components/modals.css @@ -6,29 +6,29 @@ /* ---------------------------------------------------------- */ .modal-container { - display: none; position: fixed; top: 0; + right: 0; bottom: 0; left: 0; - right: 0; z-index: 1040; - padding-left: 10px; - padding-right: 10px; + display: none; overflow-x: auto; overflow-y: scroll; + padding-right: 10px; + padding-left: 10px; transition: all 0.15s linear 0s; transform: translateZ(0); } .modal-background { - display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1030; + display: none; background: rgba(0, 0, 0, 0.6); } @@ -38,15 +38,15 @@ .modal, .modal-action { - left: 50%; right: auto; + left: 50%; z-index: 1050; - width: 100%; - max-width: 550px; - margin-left: auto; margin-right: auto; + margin-left: auto; padding-top: 30px; padding-bottom: 30px; + max-width: 550px; + width: 100%; pointer-events: auto; } @@ -86,8 +86,8 @@ .modal-content { position: relative; padding: 18px; - background-clip: padding-box; background-color: #fff; + background-clip: padding-box; border-radius: var(--border-radius); box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 6px; } @@ -101,9 +101,9 @@ top: 19px; right: 19px; z-index: 9999; - width: 16px; - padding: 0; margin: 0; + padding: 0; + width: 16px; border: none; } @@ -178,13 +178,13 @@ max-width: 264px; } .modal-body .login-form .password-wrap { - width: 100%; margin: 0 auto 1em; + width: 100%; } .modal-body .login-form .btn { margin: 0; - width: 100%; margin-bottom: 1em; + width: 100%; } } diff --git a/app/styles/components/pagination.css b/app/styles/components/pagination.css index fafc02973..fc75abcfb 100644 --- a/app/styles/components/pagination.css +++ b/app/styles/components/pagination.css @@ -3,8 +3,8 @@ .pagination { display: inline-block; - padding-left: 0; margin: 20px 0; + padding-left: 0; border-radius: var(--border-radius); } @@ -16,13 +16,13 @@ .pagination > li > span { position: relative; float: left; - padding: 6px 12px; - line-height: 1.42857143; - text-decoration: none; - color: var(--blue); - background-color: #fff; - border: 1px solid #e1e1e1; margin-left: -1px; + padding: 6px 12px; + border: 1px solid #e1e1e1; + background-color: #fff; + color: var(--blue); + text-decoration: none; + line-height: 1.42857143; } .pagination > li:first-child > a, @@ -42,8 +42,8 @@ .pagination > li > a:focus, .pagination > li > span:hover, .pagination > li > span:focus { - color: #2a6496; background-color: #eee; + color: #2a6496; } .pagination > .active > a, @@ -53,8 +53,8 @@ .pagination > .active > span:hover, .pagination > .active > span:focus { z-index: 2; - color: #fff; background-color: #428bca; + color: #fff; cursor: default; } @@ -64,9 +64,9 @@ .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { - color: #777; - background-color: #fff; border-color: #ddd; + background-color: #fff; + color: #777; cursor: not-allowed; } diff --git a/app/styles/components/popovers.css b/app/styles/components/popovers.css index 584a54d47..ba456af43 100644 --- a/app/styles/components/popovers.css +++ b/app/styles/components/popovers.css @@ -5,18 +5,18 @@ position: relative; display: inline-block; padding: 11px 26px 13px 16px; - background: var(--darkgrey); min-width: 300px; max-width: 400px; + background: var(--darkgrey); border-radius: 6px; - font-size: 1.2rem; color: var(--midgrey); + font-size: 1.2rem; } .popover-title { + color: #fff; font-size: 1.4rem; font-weight: 300; - color: #fff; } .popover-desc { diff --git a/app/styles/components/settings-menu.css b/app/styles/components/settings-menu.css index 0c020e98b..db800a05e 100644 --- a/app/styles/components/settings-menu.css +++ b/app/styles/components/settings-menu.css @@ -11,10 +11,10 @@ right: 0; bottom: 0; z-index: 500; + overflow: hidden; width: 350px; border-left: #e1e1e1 1px solid; background: #fff; - overflow: hidden; transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1); transform: translate3d(350px, 0px, 0px); } @@ -29,10 +29,10 @@ body.settings-menu-expanded .settings-menu-container { right: 0; bottom: 0; left: 0; - transform: translate3d(0, 0px, 0px); - opacity: 1; overflow: auto; -webkit-overflow-scrolling: touch; + opacity: 1; + transform: translate3d(0, 0px, 0px); } @media (min-width: 901px) { @@ -63,10 +63,10 @@ body.settings-menu-expanded .settings-menu-container { } .settings-menu-header h4 { - font-weight: normal; + margin: 0; font-size: 1.6rem; line-height: 1.375; - margin: 0; + font-weight: normal; } .settings-menu-header .close { @@ -93,16 +93,16 @@ body.settings-menu-expanded .settings-menu-container { position: absolute; top: 0; bottom: 7px; - width: 45px; padding: 0; + width: 45px; } .settings-menu-header-action:before { position: absolute; top: 50%; - transform: translateY(-50%); color: var(--midbrown); font-size: 2rem; + transform: translateY(-50%); } .settings-menu-header-action:hover:before { @@ -118,9 +118,9 @@ body.settings-menu-expanded .settings-menu-container { } .settings-menu-content .image-uploader { + margin: 0 0 1.6rem 0; padding-top: 35px; padding-bottom: 35px; - margin: 0 0 1.6rem 0; } .settings-menu-content .image-uploader.image-uploader-url { @@ -137,9 +137,9 @@ body.settings-menu-expanded .settings-menu-container { } .settings-menu-content .tag-delete-button:before { - margin-right: 4px; - top: -1px; position: relative; + top: -1px; + margin-right: 4px; } .settings-menu-content .tag-delete-button:hover, @@ -152,10 +152,10 @@ body.settings-menu-expanded .settings-menu-container { } .settings-menu-content .pre-image-uploader { - width: auto; + margin-top: 0; min-height: 50px; max-height: 250px; - margin-top: 0; + width: auto; } .settings-menu-content .word-count { @@ -163,11 +163,11 @@ body.settings-menu-expanded .settings-menu-container { } .ghost-url-preview { - width: 98%; /* Preview never wider than input */ overflow: hidden; - white-space: nowrap; + width: 98%; text-overflow: ellipsis; + white-space: nowrap; } diff --git a/app/styles/components/splitbuttons.css b/app/styles/components/splitbuttons.css index ef5b2b47c..437fd6a07 100644 --- a/app/styles/components/splitbuttons.css +++ b/app/styles/components/splitbuttons.css @@ -38,24 +38,24 @@ } .splitbtn .dropdown-toggle { - padding-left: 12px; padding-right: 12px; + padding-left: 12px; border-top-left-radius: 0; border-bottom-left-radius: 0; /* This is the additional dropdown arrow, to the right of the button. */ } .splitbtn .dropdown-toggle.btn-sm { - padding-left: 10px; padding-right: 10px; + padding-left: 10px; } .splitbtn .dropdown-toggle.btn-lg { - padding-left: 16px; padding-right: 16px; + padding-left: 16px; } .splitbtn .dropdown-toggle .options { - text-align: center; color: #fff; + text-align: center; } diff --git a/app/styles/components/uploader.css b/app/styles/components/uploader.css index 84bb18dec..c01faa587 100644 --- a/app/styles/components/uploader.css +++ b/app/styles/components/uploader.css @@ -2,16 +2,16 @@ /* ---------------------------------------------------------- */ .image-uploader { - margin: 1.6em 0; position: relative; overflow: hidden; + margin: 1.6em 0; padding: 55px 60px; - border: #e1e1e1 3px dashed; width: 100%; height: auto; - text-align: center; - color: var(--brown); + border: #e1e1e1 3px dashed; background: #f9f8f5; + color: var(--brown); + text-align: center; } .image-uploader a { @@ -28,14 +28,14 @@ } .image-uploader .image-upload { - line-height: 12px; - padding: 10px; - display: block; position: absolute; bottom: 0; left: 0; + display: block; + padding: 10px; color: var(--brown); text-decoration: none; + line-height: 12px; } .image-uploader .image-upload:hover { @@ -43,9 +43,9 @@ } .image-uploader .btn-green { - display: inline-block; position: relative; z-index: 700; + display: inline-block; color: #fff; } @@ -57,12 +57,12 @@ position: absolute; right: 0; margin: 0; - opacity: 0; - transform-origin: right; - transform: scale(14); font-size: 23px; - direction: ltr; + opacity: 0; cursor: pointer; + transform: scale(14); + transform-origin: right; + direction: ltr; } .image-uploader input.main.right { @@ -71,13 +71,13 @@ } .image-uploader input.url { - font: -webkit-small-control; - vertical-align: middle; - padding: 9px 7px; margin: 10px 0; + padding: 9px 7px; outline: 0; - font-size: 1.1em; background: #fff; + vertical-align: middle; + font: -webkit-small-control; + font-size: 1.1em; } .image-uploader input.url + .btn.btn-blue { @@ -86,20 +86,20 @@ .image-uploader .progress { position: relative; - margin: -19px 0 44px 0; display: block; overflow: hidden; + margin: -19px 0 44px 0; background: linear-gradient(to bottom, #f5f5f5, #f9f9f9); border-radius: 12px; box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px inset; } .image-uploader .fileupload-loading { - display: block; top: 50%; + display: block; + margin: -28px auto 0; width: 35px; height: 28px; - margin: -28px auto 0; background-size: contain; } @@ -123,14 +123,14 @@ /* ---------------------------------------------------------- */ .pre-image-uploader { - margin: 1.6em 0; position: relative; overflow: hidden; + margin: 1.6em 0; + min-height: 46px; height: auto; - color: var(--brown); background: rgba(0, 0, 0, 0.1); border-radius: 2px; - min-height: 46px; + color: var(--brown); } .pre-image-uploader input { @@ -151,8 +151,8 @@ .pre-image-uploader img { display: block; - max-width: 100%; margin: 0 auto; + max-width: 100%; line-height: 0; } @@ -160,18 +160,18 @@ position: absolute; top: 10px; right: 10px; - padding: 8px; z-index: 300; + padding: 8px; + background: rgba(0, 0, 0, 0.6); + border-radius: var(--border-radius); + box-shadow: rgba(255, 255, 255, 0.2) 0 0 0 1px; color: #fff; text-decoration: none; line-height: 0; - border-radius: var(--border-radius); - background: rgba(0, 0, 0, 0.6); - box-shadow: rgba(255, 255, 255, 0.2) 0 0 0 1px; } .pre-image-uploader .image-cancel:hover { + background: var(--red); color: #fff; cursor: pointer; - background: var(--red); } diff --git a/app/styles/csscomb.json b/app/styles/csscomb.json new file mode 100644 index 000000000..3fbe65421 --- /dev/null +++ b/app/styles/csscomb.json @@ -0,0 +1,234 @@ +{ + "remove-empty-rulesets": true, + "always-semicolon": true, + "color-case": "lower", + "block-indent": " ", + "color-shorthand": true, + "element-case": "lower", + "eof-newline": true, + "leading-zero": true, + "quotes": "double", + "space-before-colon": "", + "space-after-colon": " ", + "space-before-combinator": " ", + "space-after-combinator": " ", + "space-between-declarations": "\n", + "space-before-opening-brace": " ", + "space-after-opening-brace": "\n", + "space-after-selector-delimiter": "\n", + "space-before-selector-delimiter": "", + "space-before-closing-brace": "\n", + "strip-spaces": true, + "tab-size": 4, + "unitless-zero": true, + "sort-order": [ [ + "content", + "visibility", + "position", + "top", + "right", + "bottom", + "left", + "z-index", + "order", + "flex", + "flex-grow", + "flex-shrink", + "flex-basis", + "align-self", + "display", + "flex-flow", + "flex-direction", + "flex-wrap", + "justify-content", + "align-items", + "align-content", + "flex-order", + "flex-pack", + "flex-align", + "float", + "clear", + "overflow", + "overflow-x", + "overflow-y", + "-webkit-overflow-scrolling", + "clip", + "box-sizing", + "margin", + "margin-top", + "margin-right", + "margin-bottom", + "margin-left", + "padding", + "padding-top", + "padding-right", + "padding-bottom", + "padding-left", + "min-width", + "min-height", + "max-width", + "max-height", + "width", + "height", + "outline", + "outline-width", + "outline-style", + "outline-color", + "outline-offset", + "border", + "border-spacing", + "border-collapse", + "border-width", + "border-style", + "border-color", + "border-top", + "border-top-width", + "border-top-style", + "border-top-color", + "border-right", + "border-right-width", + "border-right-style", + "border-right-color", + "border-bottom", + "border-bottom-width", + "border-bottom-style", + "border-bottom-color", + "border-left", + "border-left-width", + "border-left-style", + "border-left-color", + "border-image", + "border-image-source", + "border-image-slice", + "border-image-width", + "border-image-outset", + "border-image-repeat", + "border-top-image", + "border-right-image", + "border-bottom-image", + "border-left-image", + "border-corner-image", + "border-top-left-image", + "border-top-right-image", + "border-bottom-right-image", + "border-bottom-left-image", + "background", + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader", + "background-color", + "background-image", + "background-attachment", + "background-position", + "background-position-x", + "background-position-y", + "background-clip", + "background-origin", + "background-size", + "background-repeat", + "border-radius", + "border-top-left-radius", + "border-top-right-radius", + "border-bottom-right-radius", + "border-bottom-left-radius", + "box-decoration-break", + "box-shadow", + "color", + "table-layout", + "caption-side", + "empty-cells", + "list-style", + "list-style-position", + "list-style-type", + "list-style-image", + "quotes", + "counter-increment", + "counter-reset", + "vertical-align", + "text-align", + "text-align-last", + "text-decoration", + "text-emphasis", + "text-emphasis-position", + "text-emphasis-style", + "text-emphasis-color", + "text-indent", + "text-justify", + "text-outline", + "text-transform", + "text-wrap", + "text-overflow", + "text-overflow-ellipsis", + "text-overflow-mode", + "text-shadow", + "white-space", + "word-spacing", + "word-wrap", + "word-break", + "tab-size", + "hyphens", + "letter-spacing", + "font", + "font-family", + "font-size", + "line-height", + "font-weight", + "font-style", + "font-variant", + "font-size-adjust", + "font-stretch", + "text-rendering", + "font-feature-settings", + "src", + "opacity", + "filter:progid:DXImageTransform.Microsoft.Alpha(Opacity", + "filter", + "resize", + "cursor", + "nav-index", + "nav-up", + "nav-right", + "nav-down", + "nav-left", + "transition", + "transition-delay", + "transition-timing-function", + "transition-duration", + "transition-property", + "transform", + "transform-origin", + "animation", + "animation-name", + "animation-duration", + "animation-play-state", + "animation-timing-function", + "animation-delay", + "animation-iteration-count", + "animation-direction", + "animation-fill-mode", + "pointer-events", + "unicode-bidi", + "direction", + "columns", + "column-span", + "column-width", + "column-count", + "column-fill", + "column-gap", + "column-rule", + "column-rule-width", + "column-rule-style", + "column-rule-color", + "break-before", + "break-inside", + "break-after", + "page-break-before", + "page-break-inside", + "page-break-after", + "orphans", + "widows", + "zoom", + "max-zoom", + "min-zoom", + "user-zoom", + "orientation" + ] ] +} diff --git a/app/styles/layouts/about.css b/app/styles/layouts/about.css index 9f1c85aed..6954feaee 100644 --- a/app/styles/layouts/about.css +++ b/app/styles/layouts/about.css @@ -21,12 +21,12 @@ } .about-ghost-intro .version { - font-weight: 300; - font-size: 1.8rem; position: relative; top: -3px; left: -9px; color: var(--blue); + font-size: 1.8rem; + font-weight: 300; } .about-ghost-intro h1 + p { @@ -39,17 +39,17 @@ } .about-environment dl { - color: var(--midgrey); margin: 2px 0 0 0; + color: var(--midgrey); line-height: 1.6; } .about-environment dt, .about-environment dd { - width: auto; - float: left; display: inline-block; + float: left; margin: 0; + width: auto; } .about-environment dt { @@ -71,14 +71,14 @@ } .about-help .btn { - width: 100%; display: block; - font-size: 1rem; padding-top: 9px; padding-bottom: 9px; min-height: 32px; + width: 100%; background: #a1adb3; color: #fff; + font-size: 1rem; } .about-help .btn:hover { @@ -114,13 +114,13 @@ .top-contributors li { float: left; - list-style: none; width: 10%; + list-style: none; } .top-contributors li a { - display: block; position: relative; + display: block; } @media (min-width: 601px) { @@ -138,29 +138,29 @@ } .top-contributors li a:before { - opacity: 0; content: attr(title); position: absolute; top: -27px; left: 50%; - transform: translateX(-50%); - background: var(--darkgrey); - color: #fff; padding: 2px 6px 3px; + background: var(--darkgrey); border-radius: var(--border-radius); - transition: opacity 0.15s ease-in-out; + color: #fff; font-size: 1rem; + opacity: 0; + transition: opacity 0.15s ease-in-out; + transform: translateX(-50%); pointer-events: none; } .top-contributors li a:after { - opacity: 0; content: ""; position: absolute; top: -6px; left: 50%; - transform: translateX(-50%); + opacity: 0; transition: opacity 0.15s ease-in-out; + transform: translateX(-50%); } .top-contributors li a:hover:before, @@ -169,8 +169,8 @@ } .top-contributors li a img { - width: 100%; display: block; + width: 100%; border-radius: 100%; } @@ -183,24 +183,24 @@ } .about-credits h1 { - font-size: 2.4rem; margin-bottom: 24px; + font-size: 2.4rem; } .about-contributors-info { margin-top: -12px; margin-bottom: 22px; - font-size: 1.6rem; max-width: 620px; + font-size: 1.6rem; } .about-get-involved { - font-size: 1.2rem; - width: 100%; display: inline-block; max-width: 290px; - text-transform: uppercase; + width: 100%; text-align: center; + text-transform: uppercase; + font-size: 1.2rem; } .about-copyright { @@ -215,6 +215,6 @@ .about-copyright a:hover, .about-copyright a:focus, .about-copyright a:active { - text-decoration: none; color: var(--blue); + text-decoration: none; } diff --git a/app/styles/layouts/auth.css b/app/styles/layouts/auth.css index c25455dcd..3e9fa96e9 100644 --- a/app/styles/layouts/auth.css +++ b/app/styles/layouts/auth.css @@ -5,8 +5,8 @@ .ghost-signup, .ghost-forgotten, .ghost-reset { - color: var(--midgrey); background: var(--darkgrey); + color: var(--midgrey); } .ghost-login main, @@ -20,15 +20,15 @@ .ghost-signup input, .ghost-forgotten input, .ghost-reset input { - line-height: 1.4em; - font-size: 1.1em; - font-weight: 200; + position: relative; + margin: 0; border: none; - color: #fff; background: color(var(--darkgrey) lightness(+10%)); box-shadow: none; - margin: 0; - position: relative; + color: #fff; + font-size: 1.1em; + line-height: 1.4em; + font-weight: 200; transition: background ease 0.25s; } @@ -52,10 +52,10 @@ .forgotten-box, .reset-box { display: table; - max-width: 530px; - height: 90%; margin: 0 auto; padding: 0; + max-width: 530px; + height: 90%; } @media (max-width: 630px) { @@ -73,9 +73,9 @@ /* ---------------------------------------------------------- */ .login-form { + display: table-cell; max-width: 530px; color: color(var(--midgrey) lightness(+15%)); - display: table-cell; vertical-align: middle; } @@ -88,8 +88,8 @@ .login-form .email-wrap, .login-form .password-wrap { position: relative; - margin: 0 0 5px 0; float: left; + margin: 0 0 5px 0; } @media (max-width: 630px) { @@ -135,16 +135,16 @@ } .login-form button { + margin-left: 10px; width: 85px; height: 37px; - margin-left: 10px; } @media (max-width: 630px) { .login-form button { margin: 0; - width: 100%; margin-bottom: 1em; + width: 100%; } } @@ -155,14 +155,14 @@ .login-form .forgotten-link { display: inline-block; - height: auto; - width: auto; margin: 0; padding: 0; - font-size: 1.25rem; + width: auto; + height: auto; color: color(var(--midgrey) lightness(-10%)); text-transform: none; letter-spacing: 0; + font-size: 1.25rem; } .login-form a { @@ -181,9 +181,9 @@ .signup-form, .reset-form { + display: table-cell; max-width: 280px; color: color(var(--midgrey) lightness(+15%)); - display: table-cell; vertical-align: middle; } @@ -197,16 +197,16 @@ .signup-form .password-wrap, .reset-form .password-wrap { position: relative; + display: table; + float: left; margin: 0 0 1em 0; background: color(var(--darkgrey) lightness(+10%)); - float: left; - display: table; } .signup-form input, .reset-form input { - width: 280px; padding: 8px 10px; + width: 280px; } @media (max-width: 630px) { @@ -251,12 +251,12 @@ .signup-form button, .reset-form button { - width: 100%; - height: 36px; margin: 0 0 1em 0; padding: 0.5em 1.37em; - min-height: 30px; min-width: 80px; + min-height: 30px; + width: 100%; + height: 36px; box-shadow: rgba(255, 255, 255, 0.15) 0 1px 0 inset; } @@ -265,18 +265,18 @@ /* ---------------------------------------------------------- */ .forgotten-form { + display: table-cell; max-width: 280px; color: color(var(--midgrey) lightness(+15%)); - display: table-cell; vertical-align: middle; } .forgotten-form .email-wrap { position: relative; - margin: 0 0 1em 0; float: left; - border-radius: 2px; + margin: 0 0 1em 0; width: 100%; + border-radius: 2px; } .forgotten-form .email { diff --git a/app/styles/layouts/content.css b/app/styles/layouts/content.css index da45e1605..5040dc214 100644 --- a/app/styles/layouts/content.css +++ b/app/styles/layouts/content.css @@ -26,21 +26,21 @@ /* ---------------------------------------------------------- */ .content-list { - width: 33%; - padding: 15px; position: absolute; - bottom: 0; top: 0; + bottom: 0; left: 0; + padding: 15px; + width: 33%; border-right: #e1e1e1 1px solid; background: #fff; } @media (max-width: 900px) { .content-list { - width: auto; right: 0; z-index: 500; + width: auto; border: none; } } @@ -67,14 +67,14 @@ } .content-list .avatar { + position: relative; float: left; margin-right: 14px; width: 18px; height: 18px; - border-radius: 18px; - background-size: cover; background-position: center center; - position: relative; + background-size: cover; + border-radius: 18px; } .content-list .avatar img { @@ -117,10 +117,10 @@ } .content-list ol { - list-style: none; - padding: 0; margin: 0; + padding: 0; border-top: #e1e1e1 1px solid; + list-style: none; } .content-list li { @@ -169,35 +169,35 @@ /* ---------------------------------------------------------- */ .content-preview { - width: 67%; - padding: 15px; position: absolute; - bottom: 0; top: 0; right: 0; + bottom: 0; overflow: auto; -webkit-overflow-scrolling: touch; + padding: 15px; + width: 67%; background: #fff; } @media (max-width: 900px) { .content-preview { + overflow: visible; width: 100%; border: none; - overflow: visible; } } .content-preview .unfeatured { - vertical-align: -6%; margin: 0 7px 0 -5px; padding: 3px; + vertical-align: -6%; } .content-preview .featured { - vertical-align: -6%; margin: 0 7px 0 -5px; padding: 3px; + vertical-align: -6%; } .content-preview .post-published-by .status a { @@ -209,8 +209,8 @@ } .content-preview .normal { - text-transform: none; margin: 0 3px; + text-transform: none; } .content-preview .content-preview-content { @@ -232,14 +232,14 @@ } .content-preview .content-preview-content .wrapper { - max-width: 700px; margin: 0 auto; + max-width: 700px; } .content-preview .post-controls { - float: right; position: relative; top: 3px; + float: right; } .content-preview .post-settings-menu { @@ -261,23 +261,23 @@ @media (max-width: 900px) { .post-preview-header { position: fixed; - left: 0; - right: 0; top: 0; + right: 0; + left: 0; z-index: 3000; - height: 44px; - text-align: center; - color: #fff; - background: #242628; overflow: hidden; + height: 44px; + background: #242628; + color: #fff; + text-align: center; } .post-preview-header .btn-back { - display: block; position: absolute; top: 4px; left: 4px; - color: #fff; + display: block; background-color: transparent; + color: #fff; } .post-preview-header .page-title { display: block; @@ -288,8 +288,8 @@ right: 4px; } .post-preview-header .post-edit { - color: #fff; background-color: transparent; + color: #fff; } .post-preview-header .featured, .post-preview-header .unfeatured, @@ -316,11 +316,11 @@ .no-posts-box { position: relative; - height: 90%; + z-index: 600; + display: table; margin: 0 auto; padding: 0; - display: table; - z-index: 600; + height: 90%; } @media (max-width: 900px) { @@ -332,23 +332,23 @@ } .no-posts-box .no-posts { - vertical-align: middle; display: table-cell; + vertical-align: middle; text-align: center; } @media (max-width: 900px) { .no-posts-box .no-posts { - display: block; position: relative; left: -50%; + display: block; } } .no-posts-box .no-posts h3 { color: var(--brown); - font-weight: 200; font-size: 2em; + font-weight: 200; } @@ -365,8 +365,8 @@ bottom: 0; left: 0; z-index: 500; - pointer-events: none; animation: keyboard-focus-style-fade-out 1.5s 1 forwards; + pointer-events: none; } .content-preview.keyboard-focused { diff --git a/app/styles/layouts/editor.css b/app/styles/layouts/editor.css index 01500e9b1..b18848d37 100644 --- a/app/styles/layouts/editor.css +++ b/app/styles/layouts/editor.css @@ -6,22 +6,22 @@ /* ---------------------------------------------------------- */ .entry-title { - height: 60px; - padding: 0; position: relative; + padding: 0; + height: 60px; } .entry-title input { + margin: 0; + padding: 0; width: 100%; height: 60px; border: 0; - margin: 0; - padding: 0; + background: transparent; + text-indent: 20px; + letter-spacing: -1px; font-size: 3.2rem; font-weight: bold; - letter-spacing: -1px; - text-indent: 20px; - background: transparent; } .entry-title input:focus { @@ -54,11 +54,11 @@ .editor .entry-markdown, .editor .entry-preview { - width: 50%; - padding: 15px; position: absolute; - bottom: 40px; top: 60px; + bottom: 40px; + padding: 15px; + width: 50%; border-top: #e1e1e1 1px solid; background: #fff; /* Hide markdown icon + wordcount when we hit mobile */ @@ -81,19 +81,19 @@ .editor .entry-preview { /* Convert all content areas to small boxes */ top: 100px; - left: 0; right: 0; + left: 0; + z-index: 100; width: 100%; border: none; - z-index: 100; /* Correctly colour the markdown icon when inactive and hovered */ } .editor .entry-markdown .markdown, .editor .entry-markdown .entry-preview-content, .editor .entry-preview .markdown, .editor .entry-preview .entry-preview-content { - height: 50px; overflow: hidden; + height: 50px; } .editor .entry-markdown:not(.active) .markdown-help:hover:before, .editor .entry-preview:not(.active) .markdown-help:hover:before { @@ -109,15 +109,15 @@ @media (max-width: 1000px) { .editor .entry-markdown .floatingheader, .editor .entry-preview .floatingheader { - cursor: pointer; - width: 50%; - color: #fff; - font-weight: normal; - background: var(--brown); position: absolute; top: -40px; left: 0; + width: 50%; + background: var(--brown); box-shadow: rgba(0, 0, 0, 0.1) 0 -2px 3px inset; + color: #fff; + font-weight: normal; + cursor: pointer; } .editor .entry-markdown .floatingheader a, .editor .entry-preview .floatingheader a { @@ -127,9 +127,9 @@ .editor .entry-markdown .floatingheader .entry-word-count, .editor .entry-preview .floatingheader .entry-word-count { - float: right; position: relative; top: 2px; + float: right; } .editor .entry-markdown.active, @@ -141,19 +141,19 @@ .editor .entry-markdown.active .entry-preview-content, .editor .entry-preview.active .markdown, .editor .entry-preview.active .entry-preview-content { - height: auto; overflow: auto; -webkit-overflow-scrolling: touch; + height: auto; } @media (max-width: 1000px) { .editor .entry-markdown.active header, .editor .entry-preview.active header { border-top: #e1e1e1 1px solid; - cursor: auto; - color: var(--brown); background: #fff; box-shadow: none; + color: var(--brown); + cursor: auto; } .editor .entry-markdown.active header a, .editor .entry-preview.active header a { @@ -179,16 +179,16 @@ right: 0; bottom: 0; left: 0; - height: 100%; - max-width: 100%; overflow: auto; -webkit-overflow-scrolling: touch; - resize: none; + max-width: 100%; + height: 100%; border: 0; + color: color(var(--darkgrey) lightness(+10%)); + font-family: var(--font-family-mono); font-size: 1.6rem; line-height: 2.5rem; - font-family: var(--font-family-mono); - color: color(var(--darkgrey) lightness(+10%)); + resize: none; } .editor .markdown-editor:focus { @@ -228,9 +228,9 @@ right: 0; bottom: 0; left: 0; - padding: 40px 20px 37px 20px; overflow: auto; -webkit-overflow-scrolling: touch; + padding: 40px 20px 37px 20px; word-break: break-word; hyphens: auto; cursor: default; @@ -269,9 +269,9 @@ @-moz-document url-prefix() { .editor .markdown-editor { + top: 40px; padding-top: 0; padding-bottom: 0; - top: 40px; height: calc(100% - 40px); } } @@ -306,25 +306,25 @@ .entry-preview-content .btn, .content-preview-content .btn { - text-decoration: none; color: var(--grey); + text-decoration: none; } .entry-preview-content .img-placeholder, .content-preview-content .img-placeholder { - border: 5px dashed var(--grey); - height: 100px; position: relative; + height: 100px; + border: 5px dashed var(--grey); } .entry-preview-content .img-placeholder span, .content-preview-content .img-placeholder span { - display: block; - height: 30px; position: absolute; - margin-top: -15px; top: 50%; + display: block; + margin-top: -15px; width: 100%; + height: 30px; text-align: center; } @@ -336,21 +336,21 @@ .entry-preview-content img, .content-preview-content img { + margin: 0 auto; max-width: 100%; height: auto; - margin: 0 auto; } /* Placeholder objects for