Ajouté quelques widgets
This commit is contained in:
parent
e61c495cc4
commit
9c5c4181b2
8 changed files with 189 additions and 35 deletions
|
|
@ -361,6 +361,17 @@ camp-feature .feature-header {
|
|||
margin-bottom: 1.5em;
|
||||
}
|
||||
|
||||
camp-feature .feature-widgets {
|
||||
display: grid;
|
||||
grid-template-columns: max-content minmax(50%, 1fr);
|
||||
grid-auto-rows: max-content;
|
||||
grid-auto-flow: column;
|
||||
}
|
||||
|
||||
camp-feature .feature-widgets > * {
|
||||
grid-column: 1 / 3;
|
||||
}
|
||||
|
||||
camp-feature .widget > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
|
@ -379,4 +390,72 @@ camp-feature .widget p {
|
|||
margin-top: 1ex;
|
||||
margin-bottom: 1ex;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.table-widget {
|
||||
display: grid;
|
||||
grid-template-columns: max-content minmax(50%, 1fr);
|
||||
column-gap: 1ex;
|
||||
row-gap: 1ex;
|
||||
}
|
||||
|
||||
camp-feature .table-widget {
|
||||
grid-template-columns: subgrid;
|
||||
grid-column: 1 / 3;
|
||||
}
|
||||
|
||||
.table-widget > * {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.table-widget > * {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.table-widget > h2 {
|
||||
grid-column: 1;
|
||||
}
|
||||
|
||||
camp-feature .table-widget > h2 {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.box-widget {
|
||||
--box-color: white;
|
||||
border: solid 3px var(--box-color);
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.box-widget h2 {
|
||||
float: left;
|
||||
background-color: var(--box-color);
|
||||
color: white;
|
||||
padding: 5px 10px;
|
||||
display: block;
|
||||
width: fit-content;
|
||||
position: relative;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.box-widget p:first-of-type {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.box-widget h2::after {
|
||||
content: "";
|
||||
width: 0; height: 0;
|
||||
border-style: solid;
|
||||
border-width: calc(1em + 17.667px) calc(1em + 10px) 0px 0px;
|
||||
border-color: var(--box-color) transparent transparent transparent;
|
||||
position: absolute;
|
||||
right: calc((1em + 9px) * -1);
|
||||
top: 0;
|
||||
}
|
||||
|
||||
camp-feature .box-widget h2:first-child,
|
||||
.box-widget h2 {
|
||||
margin-left: -10px;
|
||||
margin-top: -10px;
|
||||
margin-right: 2em;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue