mise à jour cours 0_intro (html css)
This commit is contained in:
250
public/style.css
250
public/style.css
@@ -1,7 +1,83 @@
|
||||
:root {
|
||||
--property: #b77804;
|
||||
--value: #0451A5;
|
||||
--attr_value: #2aa198;
|
||||
}
|
||||
|
||||
.token.tag {
|
||||
color: #800000 !important;
|
||||
font-weight:400;
|
||||
}
|
||||
.token.punctuation {
|
||||
color: #800000 !important;
|
||||
font-weight: 480;
|
||||
}
|
||||
.token.property,
|
||||
.color.property {
|
||||
color: var(--property) !important;
|
||||
}
|
||||
|
||||
.token.value,
|
||||
.color.value {
|
||||
color: var(--value) !important;
|
||||
}
|
||||
.token.selector,
|
||||
.token.attr-value {
|
||||
color: var(--attr_value) !important;
|
||||
font-weight: 480;
|
||||
}
|
||||
|
||||
|
||||
.language-markup .token.attr-name {
|
||||
color: #E50000 !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
.language-markup .token.value {
|
||||
color: #0451A5 !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
code[class*="language-markup"] {
|
||||
color: #595959 !important;
|
||||
}
|
||||
code[class*="language-markup"]:hover {
|
||||
color: #898989 !important;
|
||||
}
|
||||
|
||||
code[class*="language-css"] {
|
||||
color: var(--value) !important;
|
||||
}
|
||||
|
||||
.token.number {
|
||||
color: #FF0095 !important;
|
||||
}
|
||||
.token.unit {
|
||||
color: #7400DA;
|
||||
}
|
||||
.token.hexcode.color {
|
||||
color: #00c3ff;
|
||||
}
|
||||
|
||||
.token.function {
|
||||
color: #4A8147 !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.token.comment {
|
||||
color: #008000b3 !important;
|
||||
}
|
||||
pre[class*="language-"]:hover
|
||||
.token.comment {
|
||||
color: #04008017 !important;
|
||||
}
|
||||
|
||||
|
||||
body,
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
counter-reset: compteListe;
|
||||
}
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
@@ -9,14 +85,14 @@ body {
|
||||
max-width: 1280px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
/* h1 { */
|
||||
/* text-align: center; */
|
||||
/* } */
|
||||
|
||||
#navbar {
|
||||
#navbar {
|
||||
background-color: #fff !important;
|
||||
border-radius: 2px;
|
||||
position: sticky;
|
||||
/* position: sticky; */
|
||||
top: 0px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
@@ -49,12 +125,15 @@ h1 {
|
||||
background: #f2f2ff;
|
||||
padding: 15px 10px 20px 20px;
|
||||
}
|
||||
/* .resume + .wrap_css_html {
|
||||
margin-top: -20px;
|
||||
} */
|
||||
|
||||
.code-toolbar + .code-toolbar {
|
||||
margin-top: -30px !important;
|
||||
}
|
||||
|
||||
.exemple,
|
||||
/* .exemple, */
|
||||
.code-content {
|
||||
/* border: 1px solid #e8cf8b; */
|
||||
border-radius: 0 0 3px 3px;
|
||||
@@ -82,20 +161,67 @@ pre[class*="language-"] {
|
||||
margin-top: 0 !important;
|
||||
padding-bottom: 30px !important;
|
||||
}
|
||||
.exemple {
|
||||
/* .exemple {
|
||||
padding-top: 22px;
|
||||
}
|
||||
} */
|
||||
pre.language-css {
|
||||
background: #f5fde3 !important;
|
||||
}
|
||||
|
||||
|
||||
codecss,
|
||||
codescaped {
|
||||
background-color: #fdf6e3;
|
||||
border-radius: 0 0 3px 3px;
|
||||
padding: 3px;
|
||||
color: #000 !important;
|
||||
}
|
||||
codecss {
|
||||
background-color: #f5fde3;
|
||||
}
|
||||
codescaped.espace {
|
||||
white-space: pre;
|
||||
display: block;
|
||||
border: 1px solid #e8cf8b;
|
||||
padding: 15px 20px 22px 20px;
|
||||
}
|
||||
|
||||
.wrap_css_html_button {
|
||||
position: relative;
|
||||
z-index: 9999;
|
||||
float: right;
|
||||
margin-left: -310px;
|
||||
right: -11px;
|
||||
top: -12px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
background: darkgreen;
|
||||
border: 2px solid darkgreen;
|
||||
border-radius: 0 4px 0px 4px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.wrap_anchor_link {
|
||||
float: left;
|
||||
position: absolute;
|
||||
right: 25px;
|
||||
text-decoration: none;
|
||||
z-index: 999;
|
||||
margin-right: 13px;
|
||||
font-size: 16px;
|
||||
margin-top: -11px;
|
||||
background: rgb(161, 255, 161);
|
||||
color: #000000;
|
||||
padding: 1px 7px;
|
||||
|
||||
float: right;
|
||||
margin-right: 33px;
|
||||
position: sticky !important;
|
||||
margin-left: -570px;
|
||||
}
|
||||
.anchor_link {
|
||||
color: rgb(60, 99, 171);
|
||||
}
|
||||
|
||||
.file {
|
||||
background: #e3eafd;
|
||||
font-style: normal;
|
||||
@@ -104,15 +230,19 @@ codescaped {
|
||||
padding: 0 7px;
|
||||
}
|
||||
|
||||
.wrap_css_html div.code-toolbar[data-type="language-css"] > .toolbar {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
code:not([class]) {
|
||||
font-size: 1.3em;
|
||||
color: #000;
|
||||
background: #fdf6e3;
|
||||
padding: 0 5px;
|
||||
}
|
||||
:is(.code-toolbar) + :not(.exemple) {
|
||||
/* :is(.code-toolbar) + :not(.exemple) {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
} */
|
||||
:is(.exemple, .code-content) p {
|
||||
color: #000;
|
||||
}
|
||||
@@ -122,7 +252,7 @@ div.code-toolbar > .toolbar {
|
||||
}
|
||||
.toolbar-item:first-child span {
|
||||
border-radius: 0 !important;
|
||||
background: #FFF !important;
|
||||
background: #fff !important;
|
||||
box-shadow: none !important;
|
||||
left: -10px !important;
|
||||
position: relative !important;
|
||||
@@ -133,15 +263,34 @@ div.code-toolbar > .toolbar {
|
||||
white-space: break-spaces !important;
|
||||
}
|
||||
|
||||
code.key {
|
||||
/* code.language-css::before {
|
||||
content: attr(id) " -- " attr(data-num_css);
|
||||
position: relative;
|
||||
float: right;
|
||||
margin-right: 100px;
|
||||
margin-top: -12px;
|
||||
font-size: 12px;
|
||||
} */
|
||||
|
||||
code.term,
|
||||
code.key,
|
||||
kdb.key {
|
||||
background: gray;
|
||||
color: #fff !important;
|
||||
font-size: 1.3em;
|
||||
font-weight: bold;
|
||||
padding: 3px 13px;
|
||||
border-radius: 4px;
|
||||
white-space: pre-line;
|
||||
}
|
||||
kdb.key {
|
||||
font-size: 1em;
|
||||
padding: 0px 10px;
|
||||
}
|
||||
code.term {
|
||||
background: rgb(237, 221, 221);
|
||||
color: #000000 !important;
|
||||
}
|
||||
|
||||
hr.space {
|
||||
height: 2rem;
|
||||
border: 0;
|
||||
@@ -151,3 +300,76 @@ hr.visible {
|
||||
height: 10px;
|
||||
margin: 3rem 0;
|
||||
}
|
||||
|
||||
.copy-notification {
|
||||
color: #ffffff;
|
||||
background-color: rgba(0, 0, 0, 1);
|
||||
padding: 20px;
|
||||
border-radius: 20px;
|
||||
position: fixed;
|
||||
top: 30%;
|
||||
left: 50%;
|
||||
/* width: 150px; */
|
||||
margin-top: -30px;
|
||||
margin-left: -85px;
|
||||
display: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wrap_css_html {
|
||||
border: 2px solid #59b2a5;
|
||||
padding: 10px;
|
||||
margin-left: -10px;
|
||||
margin-right: -10px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.wrap_css_html .code-toolbar:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wrap_css_html + .wrap_css_html {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.wrap_css_html + *:not(.wrap_css_html) {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.wrap_css_html:target {
|
||||
border-color: red !important;
|
||||
}
|
||||
|
||||
|
||||
.color.property {
|
||||
color: var(--property) !important;
|
||||
font-weight: 550 !important;
|
||||
}
|
||||
.color.value {
|
||||
color: var(--value) !important;
|
||||
}
|
||||
|
||||
|
||||
:not(.code-content) > :is(h1,h2,h3,h4,h5,h6) {
|
||||
background: #000;
|
||||
color: #FFF;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
#next_flexbox {
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 3rem 0;
|
||||
}
|
||||
|
||||
.hash_title {
|
||||
position: absolute;
|
||||
margin-left: -110px;
|
||||
text-decoration: none;
|
||||
width: 80px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.hash_title::before {
|
||||
counter-increment: compteListe 1;
|
||||
content: counter(compteListe) " ";
|
||||
font-size: 13px;
|
||||
}
|
||||
Reference in New Issue
Block a user