mediawiki-skins-Citizen/skinStyles/extensions/CookieWarning/ext.CookieWarning.styles.less

81 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* Citizen - Cookie Warning Styles
* https://starcitizen.tools
*/
@import '../../../resources/variables.less';
@import '../../../resources/mixins.less';
.mw-cookiewarning-container {
top: unset;
right: 0;
bottom: 0;
overflow: hidden;
max-width: @screen2;
padding: 0;
margin: 0 auto;
background: @dark-bg-60;
border-radius: @border-radius-large @border-radius-large 0 0;
font-size: @content-monospace-size;
2019-12-29 18:45:17 +00:00
font-weight: normal;
opacity: 1;
2019-12-29 18:45:17 +00:00
.boxshadow(5);
.mw-cookiewarning-text {
display: flex;
line-height: 1.4;
> span {
2019-12-29 18:45:17 +00:00
display: block;
flex-grow: 1;
padding: @margin-side;
margin: 0;
2019-12-29 18:45:17 +00:00
}
> form {
display: block;
2019-12-29 18:45:17 +00:00
}
> a {
display: flex;
height: auto;
align-items: center;
justify-content: center;
padding: @margin-side / 2 @margin-side;
margin: 0;
2019-12-29 18:45:17 +00:00
}
.mw-cookiewarning-dismiss {
height: 100%;
padding: @margin-side / 2 @margin-side;
margin: 0;
background: @accent-50;
2019-12-29 18:45:17 +00:00
border-radius: 0;
line-height: 1.4;
transition: @transition-background-quick;
2019-12-29 22:13:14 +00:00
&:hover {
background: @accent-10;
}
2019-12-29 22:13:14 +00:00
}
2019-12-29 18:45:17 +00:00
}
}
@media only screen and ( max-width: 480px ) {
.mw-cookiewarning-container .mw-cookiewarning-text {
flex-wrap: wrap;
2020-03-15 04:26:03 +00:00
/* Hack to hide nbsp */
font-size: 0;
2019-12-29 18:45:17 +00:00
> span {
2020-03-15 04:26:03 +00:00
font-size: @content-small-text-size;
}
> form,
> a,
2020-03-15 04:11:16 +00:00
.mw-cookiewarning-dismiss {
width: 100%;
2019-12-29 18:45:17 +00:00
}
}
}