brutcss/src/components.less

55 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-09-27 08:38:15 +00:00
/* card and block to put space between blocks */
2022-10-29 13:09:32 +00:00
2022-09-27 08:38:15 +00:00
.card, .block {
2022-10-29 13:09:32 +00:00
padding: 0;
2022-10-06 17:19:14 +00:00
border: solid 1rem;
2022-10-24 15:05:36 +00:00
overflow: hidden;
2022-09-27 08:38:15 +00:00
}
2022-10-29 13:09:32 +00:00
.card > ul > li > a { width: 100%; display: inline-block; }
.card > ul > li > a:hover { background: var(--accent); color: var(--bg); }
2022-10-06 16:42:43 +00:00
.col.card, .col.block {
justify-content: flex-start;
align-items: flex-start;
}
2022-09-27 08:38:15 +00:00
2022-09-29 08:56:23 +00:00
.card { border-color: var(--nl); }
2022-10-29 13:09:32 +00:00
.card > *:first-child { margin-top: 0; }
2022-10-03 21:28:51 +00:00
.block { border-color: transparent; }
2022-10-29 13:09:32 +00:00
.block > *:first-child { margin-top: 0; }
2022-09-27 08:38:15 +00:00
2022-09-29 08:52:01 +00:00
/* To be used as main image for presentation */
2022-09-27 09:40:56 +00:00
.central {
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
}
/* If central is close to a button it should indicate we have a nav bar*/
/* in this case, we should remove the size of the navbar */
button ~ .central {
min-height: calc(100vh - 50px);
}
2022-09-27 08:38:15 +00:00
.hero {
padding: 2rem;
}
2022-09-27 14:15:51 +00:00
2022-10-06 11:16:25 +00:00
.fill { flex-grow: 1; }
2022-10-26 16:56:24 +00:00
footer,.push { justify-self: flex-end; margin-top: auto;}
2022-10-29 13:09:32 +00:00
/* doc are for long text to read */
.doc { max-width: 65ch;
font-size: 1.25rem;
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,segoe ui,helvetica neue,helvetica,Cantarell,Ubuntu,roboto,noto,arial,sans-serif;
text-align: justify;
line-height: 1.5em;
p {
text-indent: 3rem;
}
}
.col.card,.row.card, .col.block,.row.block { padding: 0; }