X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fdefault%2Fcss%2Fshaarli.css;h=2a7dff1c79c3af783bce0e9bc6a445bd3a1a72fc;hb=c03fd3f2bf90448b05405e5c08ba880c532f52ee;hp=0367534bb22205bd997ee22264c942d8530280be;hpb=bdf4566ab0650204c4586033a73a3858ddf279fd;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 0367534b..2a7dff1c 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -2,7 +2,7 @@ * General */ body { - background: url(../img/noise.png) #979797; + background: #c5c5c5; } .strong { @@ -86,6 +86,9 @@ pre { background-color: #1b926c; } +.anchor:target { + padding-top: 40px; +} /** * MENU **/ @@ -93,10 +96,11 @@ pre { position: fixed; top: 0; width: 100%; + --height: 50px; background: #1b926c; -webkit-font-smoothing: antialiased; /* Hack to transition with auto height: http://stackoverflow.com/a/8331169/1484919 */ - max-height: 2.1em; + max-height: 45px; transition: max-height 0.5s; overflow: hidden; z-index: 999; @@ -104,7 +108,7 @@ pre { /* Chrome bugfix: with 100% height, it only displays the first element. */ .pure-menu-item { - height: inherit; + height: 45px; } .shaarli-menu.open { @@ -112,24 +116,40 @@ pre { transition: max-height 0.75s; } +.head-logo { + float: left; + margin: 0 5px 0 0; +} + .pure-menu-link, .pure-menu-link:visited, .pure-menu-selected .pure-menu-link, .pure-menu-selected .pure-menu-link:visited { - color: #b0ddce; + padding: 0.8em 1em; + color: #f5f5f5; } -.pure-menu-link:hover, -.pure-menu-selected .pure-menu-link:hover { - color: #d1fff0; +.pure-menu-link:hover, .pure-menu-link:focus, +.pure-menu-selected .pure-menu-link:hover, +.pure-menu-selected .pure-menu-link:focus { + color: #fff; background: transparent; } +.pure-menu-item:hover::after { + margin: -4px auto 0 auto; + display: block; + content:""; + background: #fff; + height: 4px; + width: 100%; +} + .menu-toggle { width: 34px; - height: 34px; + height: 45px; position: absolute; - top: 0; + top: 5px; right: 0; display: none; } @@ -164,151 +184,125 @@ pre { } } -/** - * Header - */ -#header { - width: 100%; - height: 150px; - background: url(../img/noise.png), #1fa67a url(../img/logo.png) no-repeat fixed 10px 2.5em; -} - -#header h1 { - position: fixed; - float: left; - margin: 45px 0 0 125px; - width: 55%; - height: 100px; -} - -#header h1 a, #header h1 a:visited { - /* https://css-tricks.com/centering-css-complete-guide/#vertical-inline-multiple */ - display: -ms-flexbox; - display: flex; - flex-direction: column; - justify-content: center; - - overflow: hidden; - height: 100px; - color: #b0ddce; - text-decoration: none; - z-index: 1; - - font-family: Roboto Slab, Arial, sans-serif; - font-size: 1.2em; -} - -#header h1 a:hover { - color: #d1fff0; -} - .header-buttons { text-align: right; } #linkcount { - /* position: fixed; */ - position: absolute; - top: 40px; - right: 10px; - color: #b0ddce; + color: #252525; font-size: 0.8em; } -#search { - /** - * Can't make it work with awesomplete list z-index. Any idea? - * position: fixed; - */ - position: absolute; - top: 60px; - right: 10px; - width: 30%; - text-align: right; +@media screen and (min-width: 64em) { + #linkcount { + position: absolute; + right: 5px; + } } -#search input[type="text"] { - margin: 0 0 5px 0; - padding: 5px 5px 3px 15px; - height: 20px; - width: 140px; - transition: width .5s ease; - background: #1b926c; +#search, #search-linklist { + text-align: center; + width: 100%; +} + +#search input[type="text"], #search-linklist input[type="text"] { + padding: 0 5px; + height: 30px; + width: 260px; + background: #f5f5f5; border: medium none currentColor; - border-radius: 25px; - box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset; - color: #b0ddce; + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 1px rgba(0, 0, 0, 0.298) inset; + border-radius: 2px; + color: #252525; } /* because chrome */ -#search input[type="text"]::-webkit-input-placeholder { - color: #b0ddce; +#search input[type="text"]::-webkit-input-placeholder, +#search-linklist input[type="text"]::-webkit-input-placeholder { + color: #777777; } -#search button { +#search button, +#search-linklist button { background: transparent; border: none; - color: #b0ddce; } -#search button:hover { - color: #fff; +#search button { + color: #f5f5f5; } -#header-login-form { - height: 0; - transition: 0.3s; +#search-linklist button { + color: #252525; } -#header-login-form.open { - display: block; - height: 30px; - padding: 5px 0; +#search button:hover, +#search-linklist button:hover { + color: #fff; } -#header-login-form input[type="text"], #header-login-form input[type="password"] { - width: 200px; +#search-linklist { + padding: 5px 0; } -#header-login-form input, #header-login-form .remember-me { - transition: visibility 1s, opacity 1s; - visibility: hidden; - opacity: 0; +@media screen and (min-width: 64em) { + #search .searchform, + #search-linklist .searchform { + margin-right: 25px; + text-align: right; + } + + #search .tagfilter, + #search-linklist .tagfilter { + margin-left: 25px; + text-align: left; + } +} +@media screen and (max-width: 64em) { + #search, #search * { + visibility: hidden; + } } -#header-login-form.open input, #header-login-form.open .remember-me { - visibility: visible; - opacity: 1; +#header-login-form input[type="text"], #header-login-form input[type="password"] { + width: 200px; } .subheader-form { + visibility: hidden; + position: fixed; + width: 100%; text-align: center; background: #1b926c; display: block; -} - -.subheader-form.open { + z-index: 999; height: 30px; padding: 5px 0; } +@media screen and (min-width: 64em) { + .subheader-form.open, .subheader-form.open * { + visibility: visible; + } +} + .subheader-form input[type="text"], .subheader-form input[type="password"], .subheader-form .remember-me { margin: 0 0 5px 0; padding: 5px 5px 3px 15px; height: 20px; width: 20%; - background: #1fa67a; + background: #f5f5f5; border: medium none currentColor; - border-radius: 25px; + border-radius: 2px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset; - color: #b0ddce; + color: #252525; } /* because chrome */ .subheader-form input[type="text"]::-webkit-input-placeholder, .subheader-form input[type="password"]::-webkit-input-placeholder { - color: #b0ddce; + color: #252525; } .subheader-form .remember-me { @@ -325,13 +319,18 @@ pre { .subheader-form input[type="submit"] { display: inline-block; margin: 0 0 5px 0; - height: 25px; + padding: 4px 0 4px 0; + height: 28px; width: 100px; - background: #0C7653; - border: medium none currentColor; - border-radius: 25px; - box-shadow: 1px 1px 2px #005C3E, -1px -1px 2px #005C3E; - color: #b0ddce; + background: #1b926c; + border: 1px solid #f5f5f5; + color: #f5f5f5; + border-radius: 2px; +} + +.subheader-form input[type="submit"]:hover { + background: #f5f5f5; + color: #1b926c; } .new-version-message { @@ -348,22 +347,47 @@ pre { */ #content { position: relative; - /* Hack-ish way to only shadow the top part. */ - box-shadow: 0 -20px 20px -20px #797979; z-index: 2; - background: url(../img/noise.png) #979797; + margin-top: 45px; } -@media screen and (max-width: 64em) { - #content { - margin: 2.1em 0 0 0; - } +/** + * Plugins additional forms + */ +.toolbar-plugin { + margin: 5px 0; + text-align: center; } -@media screen and (min-width: 64em) { - #content { - /* https://css-tricks.com/fighting-the-space-between-inline-block-elements/ */ - margin-top: -4px; +.toolbar-plugin input[type="text"] { + padding: 0 5px; + height: 30px; + width: 300px; + background: #f5f5f5; + border: medium none currentColor; + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 1px rgba(0, 0, 0, 0.298) inset; + border-radius: 2px; + color: #252525; +} + +/* because chrome */ +.toolbar-plugin input[type="text"]::-webkit-input-placeholder { + color: #777777; +} + +.toolbar-plugin input[type="submit"] { + padding: 0 10px; + height: 30px; + background: #f5f5f5; + border: medium none currentColor; + border-radius: 2px; + color: #252525; +} + +@media screen and (max-width: 64em) { + .toolbar-plugin input[type="text"] { + width: 70%; + } } @@ -371,8 +395,6 @@ pre { * CONTENT - LINKLIST PAGING * 64em -> lg */ - - .linklist-filters { margin: 10px 0; color: #252525; @@ -380,13 +402,13 @@ pre { } .linklist-filters a { - padding: 2px 5px; + padding: 5px 8px; text-decoration: none; } .linklist-filters .filter-off { color: #252525; - background: #c8c8c8; + background: #f5f5f5; } .linklist-filters .filter-on { @@ -417,27 +439,28 @@ pre { } .linksperpage a { - padding: 2px 5px; + padding: 5px 5px; text-decoration: none; color: #252525; - background: #c8c8c8; - border: solid 1px #979797; + background: #f5f5f5; +} + +.linksperpage a, .linksperpage input[type="text"] { + display: inline-block; + width: 20px; + text-align: center; } .linksperpage form { display: inline; - margin: 0 10px 0 0; } .linksperpage input[type="text"] { - width: 28px; - height: 16px; + height: 20px; margin: 0; - padding: 3px 5px 3px 8px; - background: #c8c8c8; + padding: 4px 5px 3px 8px; + background: #f5f5f5; border: medium none currentColor; - --border-radius: 25px; - box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset; color: #252525; font-size: 0.8em; } @@ -446,7 +469,7 @@ pre { * CONTENT - LINKLIST ITEMS */ .linklist-item { - margin: 15px 0; + margin: 0 0 15px 0; background: #f5f5f5; box-shadow: 2px 2px 0.5em #797979; } @@ -457,37 +480,55 @@ pre { } .linklist-item-title { - background: #20b988 url(../img/noise.png); - border-bottom: 1px solid #1b926c; - box-shadow: 1px 1px 0.2em #1b926c; + position: relative; + background: #f5f5f5; +} + +.linklist-item.private .linklist-item-title::before { + position: absolute; + left: 3px; + top: 0; + display: block; + content:""; + background: #F89406; + height: 95%; + width: 2px; + margin-top: 3px; + z-index: 1; } .linklist-item-title h2 { padding: 3px 10px 0 10px; - line-height: 25px; + line-height: 30px; } .linklist-item-title a { font-size: 0.7em; - color: #d0fff0; + color: #252525; text-decoration: none; vertical-align: middle; font-family: Roboto Slab, Arial, sans-serif; } +.linklist-item-title .linklist-link { + font-size: 1.1em; + color: #1b926c; +} + .linklist-item-title .linklist-link:visited { - color: #ddd; + color: #1b926c; } .linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{ - color: #fff; + color: #252525; } .linklist-item-title .label-private { - border: solid 1px #d0fff0; + border: solid 1px #F89406; font-family: Arial, sans-serif; font-size: 0.65em; + color: #F89406; } .linklist-item-title .fold-button { @@ -496,17 +537,49 @@ pre { .linklist-item-editbuttons { float: right; - padding: 5px; + padding: 8px 5px; +} + +.linklist-item-editbuttons * { + display: block; + float: left; + margin: 0 1px; } .linklist-item-editbuttons a { font-size: 1em; } +.edit-link { + font-size: 1.2em; + color: #0b5ea6; +} + +.delete-link { + font-size: 1.3em; + color: #ac2925 !important; +} + .linklist-item-description { + position: relative; padding: 10px; + background: #f5f5f5; font-family: Roboto Slab, Arial, sans-serif; word-wrap: break-word; + color: #252525; + line-height: 1.3em; +} + +.linklist-item.private .linklist-item-description::before { + position: absolute; + left: 3px; + top: 0; + display: block; + content:""; + background: #F89406; + height: 95%; + width: 2px; + z-index: 1; } .linklist-item-description a { @@ -515,11 +588,11 @@ pre { } .linklist-item-description a:hover { - text-shadow: 1px 1px #ddd; + color: #252525; } .linklist-item-description a:visited { - color: #20b988; + color: #14553f; } .linklist-item-thumbnail { @@ -529,15 +602,13 @@ pre { } .linklist-item-infos { - padding: 5px 5px 0 5px; - background: #ddd url(../img/noise.png); - border-top: 1px solid #989898; - box-shadow: 1px -1px 0.2em #989898; + padding: 8px 8px 5px 8px; + background: #ddd; color: #252525; } .linklist-item-infos a { - color: #505050; + color: #252525; text-decoration: none; } @@ -546,17 +617,11 @@ pre { } .linklist-item-infos .linklist-item-tags { - margin: 0 0 5px 0; font-size: 0.8em; } -.linklist-item-infos .linklist-item-infos .label-tag { - border: 1px solid #505050; - font-size: 0.9em; -} - -.linklist-item-infos .label-tag:hover { - border: 1px solid #000; +.linklist-item-infos .label-tag { + font-size: 1em; } .linklist-item-infos-dateblock { @@ -576,6 +641,17 @@ pre { font-size: 0.8em; } +.linklist-item-infos .mobile-buttons { + text-align: right; +} + +.linklist-item-infos .linklist-plugin-icon { + display: inline-block; + margin: 0 2px; + width: 16px; + height: 16px; +} + /** 64em -> lg **/ @media screen and (max-width: 64em) { .linklist-item-infos-url { @@ -611,21 +687,28 @@ pre { */ .page-form { margin: 20px 0 0 0; - background: url(../img/noise.png) #1fa67a; - border-radius: 5px; + background: #f5f5f5; box-shadow: 1px 1px 2px #797979; - color: #b0ddce; + color: #252525; + overflow: hidden; } .page-form .window-title { margin: 0 0 10px 0; padding: 10px 0; width: 100%; - color: #b0ddce; - background: #1b926c; + color: #1b926c; + background: #f5f5f5; text-align: center; - border-radius: 5px 5px 0 0; - border-bottom: 1px solid #797979; +} + +.page-form .window-title:after { + display: block; + content:""; + background: linear-gradient(to right, #f5f5f5, #1b926c, #f5f5f5); + height: 1px; + width: 80%; + margin: auto; } .page-form .window-subtitle { @@ -633,22 +716,27 @@ pre { } .page-form a { - color: #b0ddce; + color: #1b926c; font-weight: bold; } +.page-form p { + padding: 0 10px; + margin: 0; +} + .page-form input[type="text"], .page-form input[type="password"], .page-form textarea { + box-sizing: border-box; margin: 10px 0; padding: 5px 5px 3px 15px; - height: 30px; - width: 80%; - background: #1b926c; - border: medium none currentColor; - border-radius: 25px; - box-shadow: 0 1px 0 rgba(255, 255, 255, 0.078), 0 1px 4px rgba(0, 0, 0, 0.298) inset; - color: #b0ddce; + height: 35px; + width: 90%; + background: #eeeeee; + border: solid 1px #d8d8d8; + border-radius: 2px; + color: #252525; } .page-form textarea { @@ -662,24 +750,54 @@ pre { /* because chrome */ .page-form input[type="text"]::-webkit-input-placeholder, .page-form input[type="password"]::-webkit-input-placeholder { - color: #b0ddce; + color: #777777; } -.page-form input[type="submit"] { +.page-form input[type="submit"], .page-form a.button { margin: 15px 5px; height: 35px; + line-height: 35px; width: 150px; background: #1b926c; - border: medium none currentColor; - border-radius: 25px; - box-shadow: 1px 1px 4px #0C7653, -1px -1px 6px #0C7653, -1px 1px 6px #0C7653, 1px -1px 6px #0C7653; + color: #f5f5f5; + border: none; + box-shadow: 1px 1px 1px #ddd, -1px -1px 6px #ddd, -1px 1px 2px #ddd, 1px -1px 2px #ddd; font-size: 1.2em; - font-weight: bold; - color: #b0ddce; + text-decoration: none; + vertical-align: center; + font-weight: normal; + display: inline-block; +} + + +.page-form .button.button-red { + background: #ac2925; +} + +.page-form .submit-buttons { + margin-bottom: 10px; +} + +@media screen and (min-width: 64em) { + .page-form .submit-buttons { + position: relative; + } + + .page-form .submit-buttons .button.button-red { + position: absolute; + right: 5%; + } +} + +@media screen and (max-width: 64em) { + .page-form .submit-buttons .button { + display: block; + margin: auto; + } } .page-form select { - color: black; + color: #252525; } /** @@ -693,11 +811,11 @@ pre { * PAGE FORM - COMPLETE */ .page-form-complete { - #background: #ddd; + #background: #f5f5f5; } .page-form-complete div, .page-form-complete p { - color: #b0ddce; + color: #252525; } .page-form-complete .form-label, .page-form-complete .form-input { @@ -734,10 +852,9 @@ pre { } .page-form section { - margin-top: 20px; + margin: 10px 0 25px 0; } - .page-form table { margin: auto; width: 90%; @@ -745,12 +862,13 @@ pre { .page-form table .order { text-decoration: none; + color: #252525; } .page-form table, .page-form th, .page-form td { border-width: 1px 0; border-style: solid; - border-color: #b0ddce; + border-color: #aaaaaa; } .page-form th, .page-form td { @@ -760,7 +878,7 @@ pre { /* Awesomeplete fix */ .page-form .awesomplete { - width: 80%; + width: 90%; } .page-form .awesomplete input { @@ -800,7 +918,7 @@ pre { text-align: left; margin: 10px 0 0 0; } - + .timezone-continent:after { content:"\a\a"; white-space: pre; @@ -816,8 +934,7 @@ pre { * Page visitor (page form extended) */ .page-visitor { - background: url(../img/noise.png) #fff; - color: #000; + color: #252525; } #page404 { @@ -829,128 +946,6 @@ pre { */ #login-form .remember-me { margin: 5px 0; - color: #b0ddce; - font-weight: bold; -} - -/** - * CONTENT - LINKLIST ITEMS - */ -.linklist-item { - margin: 15px 0; - background: #f5f5f5; - box-shadow: 2px 2px 0.5em #797979; -} - -.linklist-item-title, .linklist-item-title h2 { - margin: 0; -} - -.linklist-item-title { - background: #20b988 url(../img/noise.png); - border-bottom: 1px solid #1b926c; - box-shadow: 1px 1px 0.2em #1b926c; -} - -.linklist-item-title h2 { - padding: 3px 10px 0 10px; - line-height: 25px; -} - -.linklist-item-title a { - font-size: 0.7em; - color: #d0fff0; - text-decoration: none; - vertical-align: middle; - font-family: Roboto Slab, Arial, sans-serif; -} - -.linklist-item-title .linklist-link:visited { - color: #ddd; -} - -.linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{ - color: #fff; -} - -.linklist-item-title .label-private { - border: solid 1px #d0fff0; - font-family: Arial, sans-serif; - font-size: 0.65em; -} - -.linklist-item-title .fold-button { - display: none; -} - -.linklist-item-editbuttons { - float: right; - padding: 5px; -} - -.linklist-item-editbuttons a { - font-size: 1em; -} - -.linklist-item-description { - padding: 10px; - font-family: Roboto Slab, Arial, sans-serif; -} - -.linklist-item-description a { - text-decoration: none; - color: #1b926c; -} - -.linklist-item-description a:hover { - text-shadow: 1px 1px #ddd; -} - -.linklist-item-description a:visited { - color: #20b988; -} - -.linklist-item-infos { - padding: 5px; - background: #ddd url(../img/noise.png); - border-top: 1px solid #989898; - box-shadow: 1px -1px 0.2em #989898; - color: #252525; - font-size: 0.8em; -} - -.linklist-item-infos a { - color: #505050; - text-decoration: none; -} - -.linklist-item-infos a:hover { - color: #000; -} - -.linklist-item-tags { - margin: 0 0 5px 0; -} - -.label-tag { - border: 1px solid #505050; - font-size: 1em; -} - -.label-tag:hover { - border: 1px solid #000; -} - -.linklist-plugin-icon { - width: 13px; - height: 13px; -} - -.linklist-item-infos-url { - text-align: right; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; } /** @@ -978,6 +973,12 @@ pre { margin: 10px 0; } +.tools-item .pure-button:hover { + background-image: none; + background-color: #1b926c; + color: #f5f5f5; +} + /** * PLUGIN ADMIN */ @@ -999,7 +1000,6 @@ pre { } } - /** * IMPORT */ @@ -1029,13 +1029,14 @@ pre { */ #picwall_container { margin: 0 10px 10px 10px; - color: #fff; - background-color: #000; + color: #252525; + background-color: #f5f5f5; clear: both; } .picwall_pictureframe { - background-color: #000; + margin: 2px; + background-color: #f5f5f5; z-index: 5; position: relative; display: table-cell; @@ -1071,6 +1072,7 @@ pre { /* CSS to show title when hovering an image - no javascript required. */ .picwall_pictureframe span.info { display: none; + font-family: Arial, sans-serif; } .picwall_pictureframe:hover span.info { @@ -1079,16 +1081,12 @@ pre { top: 0; left: 0; width: 90px; + height: 90px; font-weight: bold; - font-size: 8pt; - color: #fff; + font-size: 9pt; + color: #f5f5f5; text-align: left; - background-color: transparent; - background-color: rgba(0, 0, 0, 0.4); - /* FF3+, Saf3+, Opera 10.10+, Chrome, IE9 */ - filter: progid: DXImageTransform.Microsoft.gradient(startColorstr=#66000000, endColorstr=#66000000); - /* IE6–IE9 */ - text-shadow: 2px 2px 1px #000000; + background-color: rgba(0, 0, 0, 0.8); } /** @@ -1117,6 +1115,10 @@ pre { margin: 10px auto; } +.daily-entry { + padding: 0 10px; +} + .daily-entry .daily-entry-title:after { display: block; content:""; @@ -1139,6 +1141,7 @@ pre { padding: 5px 5px 0 5px; font-size: 0.9em; text-align: justify; + word-wrap: break-word; } .daily-entry .daily-entry-tags {