misuzu/assets/less/mio/classes/container.less

47 lines
1.2 KiB
Text
Raw Normal View History

2018-04-16 00:33:54 +00:00
.container {
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
background-color: var(--background-colour);
2018-03-22 02:56:41 +00:00
margin: 2px 0;
2018-09-09 22:44:10 +00:00
box-shadow: 0 1px 2px var(--accent-colour);
2018-03-22 02:56:41 +00:00
2018-08-06 22:19:35 +00:00
&--hidden { // __title should always be the first element of a container
:not(:first-child) {
display: none;
}
}
&--translucent {
background-color: var(--background-colour-translucent);
}
2018-03-22 02:56:41 +00:00
&__title {
2018-04-16 00:33:54 +00:00
display: block;
text-decoration: none;
2018-09-16 18:45:49 +00:00
background-image: linear-gradient(0deg, transparent, var(--accent-colour));
2018-09-09 22:44:10 +00:00
color: var(--text-colour-header);
2018-03-22 02:56:41 +00:00
font-size: 1.17em;
font-weight: 700;
padding: 3px;
font-family: @mio-font-heading;
2018-05-21 23:05:25 +00:00
word-wrap: break-word;
overflow: hidden;
2018-04-16 00:33:54 +00:00
&--link:hover {
text-decoration: underline;
}
&__link {
color: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
2018-03-22 02:56:41 +00:00
}
2018-08-06 22:19:35 +00:00
&__content { // only use this for text going forward, just throw your child container in directly after __title
2018-03-22 02:56:41 +00:00
margin: 2px 5px;
}
}