]> Raphaël G. Git Repositories - blogbundle/blobdiff - Resources/public/css/screen.css
Fix pre to break word on overflow
[blogbundle] / Resources / public / css / screen.css
index 5e207c5b3833509e2f140b1cd3f51cb06ee49f3a..7227a83e18ba6e5b1e230f112eaf7ec9c19360d7 100644 (file)
@@ -10,17 +10,39 @@ a:hover {
 /* Default styling */
 h1 {
        font-size: 2rem;
-       margin: 1.34rem 0;
+       line-height: 2.4rem;
+       font-family: 'Lemon',sans-serif;
+       color: #09c;
+       text-shadow: 1.5px 1.5px 3px #136;
+       /*line-height: 2rem;*/
+
+       /*margin: 1.34rem 0;*/
+       /*margin: 0 .5rem;
+       padding: 0;
+       display: flex;
+       flex: 1 1 auto;
+       align-items: center;
+       gap: .5rem;*/
 }
 
 h2 {
        font-size: 1.5rem;
-       margin: 1.245rem 0;
+       line-height: 1.9rem;
+       font-family: 'Lemon',sans-serif;
+       color: #09c;
+       text-shadow: 1px 1px 2px #136;
+       /*font-size: 1.5rem;
+       margin: 1.245rem 0;*/
 }
 
 h3 {
-       font-size: 1.17rem;
-       margin: 1.17rem 0;
+       font-size: 1.25rem;
+       line-height: 1.65rem;
+       font-family: 'Lemon',sans-serif;
+       color: #09c;
+       text-shadow: 1.5px 1.5px 3px #136;
+       /*font-size: 1.17rem;
+       margin: 1.17rem 0;*/
 }
 
 h4 {
@@ -45,105 +67,287 @@ p {
 body {
        display: flex;
        flex-flow: column wrap;
+       gap: .5rem;
 }
 
 /* Header */
 #header {
-       border-top: .1rem solid #0063c9;
-       padding: .5rem;
+       /*padding: .5rem;
        background-color: #00c3f9;
-       color: #0063c9;
-       border-radius: 0 0 .5rem .5rem;
+       color: #0063c9;*/
        display: flex;
+       flex-direction: column;
+       gap: .5rem;
+       margin: 0 .5rem;
 }
 
 /* hack for top menu wrapping */
-@media ( max-width: 450px ) {
+/*@media ( max-width: 450px ) {
        #header {
                flex-wrap: wrap;
        }
-}
+}*/
 
-#header h1 {
-       order: 0;
-       font-size: 1.5rem;
-       margin: 0;
-       white-space: nowrap;
+/*#header a {
+       color: #09c;
+}*/
+
+#logo {
+       font-size: 2rem;
+       font-family: 'Lemon',sans-serif;
+       color: #09c;
+       text-shadow: 1.5px 1.5px 3px #136;
+       margin: 0 .5rem;
+       padding: 0;
+       display: flex;
+       flex: 1 1 auto;
+       align-items: center;
+       gap: .5rem;
+       line-height: 60px;
 }
 
-#header h1:after {
-       content: "\00a0";
+#logo strong {
+       word-break: break-word;
 }
 
-#header h2 {
-       order: 1;
-       font-size: 1.5rem;
+#nav {
+       display: flex;
+       flex-wrap: wrap;
+       gap: .5rem;
+       line-height: 2.5rem;
        margin: 0;
-       white-space: nowrap;
+       border: 0;
+       /*border-top: .1rem solid #0063c9;
+       background-color: #cff;
+       color: #09c;
+       border-radius: 0 0 .5rem .5rem;*/
+       padding: .5rem;
+       background-color: #cff;
+       border-radius: .5rem;
+       border-top: .5rem solid #09c;
 }
 
-#header h2:before {
-       content: ">\00a0";
+#nav a {
+       flex: 1 1 auto;
+       border: .1rem solid #136;
+       border-top: 0;
+       border-left: 0;
+       border-radius: .2rem;
+       background-color: #00c3f9;
+       color: #136;
+       font-weight: bold;
+       text-align: center;
+       padding: 0 .25rem;
 }
 
-#header a {
-       color: #0063c9;
+#title a {
+       font-size: 2rem;
+       line-height: 2rem;
+       display: block;
+       /*height: 2rem;*/
 }
 
-#header nav {
-       order: 3;
-       margin-left: auto;
+#header div {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
-       align-items: center;
-       justify-content: flex-end;
+       justify-content: space-between;
 }
 
-#header nav h2 {
-       display: none;
-}
-
-#header nav a {
-       text-align: center;
-       border-radius: .25rem;
-       padding: .25rem .5rem;
-       margin: 0 0 .1rem .5rem;
-       color: #00c3f9;
-       background-color: #0063c9;
-       font-weight: bold;
-}
 
 /* Index */
+section.form,
 #content {
-       margin: .5rem 0;
+       /*margin: .5rem 0;
        border-radius: .5rem;
        overflow: hidden;
        border: .1rem solid #00c3f9;
-       padding: .5rem;
+       padding: .5rem;*/
+
+       /*margin: .75rem .5rem 0 .5rem;
+       padding: 0;*/
+       /*background-color: #cff;*/
+       border-radius: .5rem;
+       border: .1rem solid #cff;
+       border-top: .5rem solid #09c;
+       margin: 0 .5rem;
+       color: #0063c9;
+       display: flex;
+       flex-direction: column;
+       gap: 0.5rem;
 }
 
-#content h2 {
-       background-color: #00c3f9;
-       margin: -.5rem -.5rem 0 -.5rem;
+article header,
+section header {
+       background-color: #cff;
+       padding: 0 .5rem .5rem .5rem;
+       display: flex;
+       flex-direction: column;
+       row-gap: .5rem;
+}
+
+article header p,
+section header p {
+       text-align: justify;
+}
+
+article section,
+section section {
+       padding: 0 .5rem;
+       display: flex;
+       flex-direction: column;
+       row-gap: .5rem;
+}
+
+article section:last-child,
+section section:last-child {
+       margin-bottom: .5rem;
+}
+
+article footer,
+section footer {
        padding: .5rem;
-       color: #0063c9;
+       text-align: right;
 }
 
-#content h2 a {
+section article {
+       border-radius: .5rem;
+       border: .1rem solid #cff;
+       border-top: .5rem solid #09c;
        color: #0063c9;
+       /*margin: 0 .5rem;*/
+       display: flex;
+       flex-direction: column;
+       gap: .5rem;
 }
 
-#content article {
-       border-bottom: .1rem solid #00c3f9;
+/*section article:last-child {
+       margin-bottom: .5rem;
+}*/
+form {
+       display: flex;
+       flex-direction: column;
+       gap: .5rem;
+}
+
+form div {
+       display: flex;
+       flex-direction: row;
+       justify-content: center;
+       gap: .5rem;
+}
+
+form div div {
+       flex-direction: column;
+}
+
+form div ul {
+       display: flex;
+       flex-direction: column;
+       gap: .2rem;
+}
+
+form div li {
+       display: flex;
+       flex-direction: row;
+       justify-content: space-between;
+       border-radius: .2rem;
+       border: .05rem solid transparent;
+       border-color: #c33333;
+       background-color: #f9c3c3;
+       color: #c33333;
+       padding: .1rem .2rem;
+}
+
+form div li::before,
+form div li::after {
+       /*XXX: display /!\ symbol */
+       content: "⚠";
+}
+form label {
+       width: 12rem;
+       text-align: right;
+       line-height: 1.3rem;
+}
+
+form label.captcha {
+       line-height: 2.5rem;
+       height: 2.5rem;
+}
+
+form label.captcha img {
+       width: 9.2rem;
+       height: 2.5rem;
+}
+
+form input,
+form textarea {
+       width: 24rem;
+}
+
+form select {
+       width: 24.2rem;
+       padding: 2px;
+       padding-block: 1px;
+       box-sizing: content-box;
+}
+
+header h1 a,
+header h2 a,
+header h3 a {
+       color: #09c;
+}
+
+footer nav.pager {
+       display: flex;
+       flex-direction: row;
+       justify-content: space-between;
+}
+
+footer nav.pager a {
+       flex-basis: 100%;
+}
+
+footer nav.pager a[rel=prev] {
+       text-align: left;
+}
+
+footer nav.pager a[rel=next] {
+       text-align: right;
+}
+
+/*#content h2 {
+       *background-color: #cff;
+       margin: 0;
+       padding: .5rem;
+       font-weight: bold;
+       color: #09c;* /
+       / *background-color: #00c3f9;
+       margin: -.5rem -.5rem 0 -.5rem;
        padding: .5rem;
+       color: #0063c9;* /
+}*/
+
+/*#content nav,
+#content p {
+       padding: .2rem .5rem;
+       / *line-height: 1.4rem;* /
+       text-align: justify;
+}
+
+#content footer nav {
+       text-align: right;
 }
 
-#content article:last-child {
-       border-bottom: none;
+#content p {
 }
 
-#content article header {
+#content header p {
+       padding: .2rem 0;
+}
+*/
+
+/*#content article header {
        margin: 1.17rem 0;
 }
 
@@ -156,124 +360,154 @@ body {
        font-size: .75rem;
        display: flex;
        justify-content: space-between;
-}
+}*/
 
-#content article a {
-       color: #0063c9;
-}
+/*#content article a {
+       color: #00c3f9;
+}*/
 
+/*#content article ul,
 #content article p {
        text-align: justify;
        text-justify: distribute;
        margin-bottom: .75rem;
 }
 
-#content article nav {
-       text-align: right;
-       margin-bottom: .5rem;
+#content article header p {
+       margin: .5rem .5rem 0 .5rem;
 }
 
-#content article:last-child nav {
-       margin-bottom: 0;
+#content article header p:last-child {
+       margin-bottom: .5rem;
 }
 
-/* Article */
-#article,
-#contact,
-#keyword {
-       margin: .5rem 0;
-       border-radius: .5rem;
-       border: .1rem solid #00c3f9;
-       padding: .5rem;
-       overflow-x: hidden;
+#content article section {
+       margin: 0 .5rem;
+}*/
+
+/* Message */
+.message {
+       margin: 0 .5rem;
+       display: flex;
+       flex-direction: row;
+       justify-content: space-between;
+       font-size: .9rem;
+       padding: .2rem;
+       border-radius: .2rem;
+       border: .05rem solid transparent;
+       text-align: center;
 }
 
-#article header,
-#contact header,
-#keyword header {
-       background-color: #00c3f9;
-       margin: -.5rem -.5rem .5rem -.5rem;
-       padding: .5rem;
-       color: #0063c9;
+.message::before,
+.message::after {
+       margin: auto 0;
+       padding: 0 .25rem;
 }
 
-#article header h3,
-#contact header h3,
-#keyword header h3 {
+p.message {
        margin: 0;
 }
 
-#article header p,
-#keyword header p {
+.message ul {
        margin: 0;
-       font-size: .75rem;
-       display: flex;
-       justify-content: space-between;
+       padding: 0;
+       list-style: none inside none;
+       gap: .1rem;
 }
 
-#article a,
-#keyword a {
-       color: #0063c9;
+.message li {
+       padding: .25rem;
 }
 
-#article p,
-#article pre,
-#article ul,
-#contact div,
-#keyword p,
-#keyword pre,
-#keyword ul {
-       margin-bottom: .5rem;
+.error {
+       border-color: #c33333;
+       background-color: #f9c3c3;
+       color: #c33333;
 }
 
-#article p,
-#keyword p {
-       text-align: justify;
-       text-justify: distribute;
+.error::before,
+.error::after {
+       /*XXX: display /!\ symbol */
+       content: "⚠";
 }
 
-#article p:last-child,
-#contact div:last-child {
-       margin-bottom: none;
+.notice {
+       border-color: #3333c3;
+       background-color: #c3c3f9;
+       color: #3333c3;
 }
 
-#contact input,
-#contact textarea {
-       width: 24rem;
-       padding: 2px;
-       border: 1px solid #00c3f9;
+.notice::before,
+.notice::after {
+       /*XXX: see https://www.fileformat.info/info/unicode/char/2139/fontsupport.htm
+        * DejaVu Sans/FreeSans/FreeSerif/Linux Libertine/Symbola/Unifont*/
+       /*XXX: display i symbol */
+       content: "ℹ";
+       /*XXX: display # symbol */
+       /*content: "⌘";*/
 }
 
-#contact button.submit {
-       width: 4rem;
-       margin: 0 10rem;
+.warning {
+       border-color: #c39333;
+       background-color: #f9c333;
+       color: #936333;
 }
 
-#contact div div:last-child {
-       text-align: center;
+.warning::before,
+.warning::after {
+       /*XXX: see https://www.fileformat.info/info/unicode/char/2139/fontsupport.htm
+        * DejaVu Sans/FreeSans/FreeSerif/Linux Libertine/Symbola/Unifont*/
+       content: "?";
+       /*XXX: display # symbol */
+       /*content: "⌘";*/
 }
 
-#article pre {
-       border-radius: .5rem;
-       border: .1rem solid #00c3f9;
-       padding: .5rem;
-       color: #0063c9;
-       overflow-x: auto;
-       margin-bottom: 1rem;
+/* Article */
+article p,
+article pre,
+article ul {
+       margin-bottom: .5rem;
 }
 
-#article ul {
+article p:last-child {
+       margin-bottom: 0;
+}
+
+article ul {
        margin-top: -.5rem;
+       list-style: "- " inside none;
+       padding-left: .5rem;
 }
 
-#article ul:first-child {
+article li {
+       margin-bottom: .3rem;
+}
+
+article li:last-child {
+       margin-bottom: 0;
+}
+
+article ul:first-child {
        margin-top: none;
 }
 
+article pre {
+       border-radius: .5rem;
+       border: .1rem solid #00c3f9;
+       padding: .5rem;
+       margin-bottom: 1rem;
+       color: #0063c9;
+       white-space: pre-wrap;
+       word-wrap: break-word;
+       word-break: break-all;
+       overflow-x: auto;
+}
+
 #footer {
        font-size: .8rem;
        padding: .5rem;
-       background-color: #00c3f9;
+       margin: 0 .5rem;
+       /*background-color: #00c3f9;
        color: #0063c9;
        border-radius: .5rem .5rem 0 0;
        bottom: 0;
@@ -281,11 +515,19 @@ body {
        font-weight: bold;
        position: relative;
        left: 0;
-       right: 0;
+       right: 0;*/
+       background-color: #cff;
+       border-radius: .5rem;
+       border-top: .5rem solid #09c;
+       color: #0063c9;
        display: flex;
        justify-content: space-between;
 }
 
+#footer details {
+       text-align: center;
+}
+
 #footer summary:after {
        display: none;
 }