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

103 lines
1.6 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: @margin-side;
margin: 0 auto;
padding: 0;
max-width: @page-width;
opacity: 1;
background: @base-20;
font-size: @content-small-text-size;
font-weight: normal;
.boxshadow(5);
.mw-cookiewarning-text {
display: flex;
line-height: 1.4;
> * {
display: flex;
align-items: center;
}
span {
margin: 0;
padding: @margin-side * 0.75 @margin-side;
display: block;
flex-grow: 1;
}
.mw-cookiewarning-dismiss {
background: @accent-50;
height: 100%;
2019-12-29 18:45:17 +00:00
&:hover {
background: @accent-10;
}
}
> a {
background: @base-10;
&:hover {
background: @base-0;
}
}
a,
.mw-cookiewarning-dismiss {
margin: 0;
padding: @margin-side * 0.75 @margin-side;
border-radius: 0;
font-weight: normal;
line-height: 1.4;
transition: @transition-background-quick;
}
2019-12-29 22:13:14 +00:00
a {
height: auto;
}
2019-12-29 18:45:17 +00:00
}
}
@media only screen and ( max-width: @screen1 ) {
.mw-cookiewarning-container {
max-width: none;
bottom: 0;
}
}
@media only screen and ( max-width: 480px ) {
.mw-cookiewarning-container .mw-cookiewarning-text {
2020-03-15 04:26:03 +00:00
/* Hack to hide nbsp */
font-size: 0;
2019-12-29 18:45:17 +00:00
flex-wrap: wrap;
2020-03-15 04:26:03 +00:00
span {
font-size: @content-small-text-size;
}
2020-03-15 04:11:16 +00:00
a {
width: ~'calc(50vw - @{margin-side} * 2)';
2020-03-15 04:09:41 +00:00
justify-content: center;
2020-03-15 04:11:16 +00:00
}
.mw-cookiewarning-dismiss {
width: 50vw;
}
2019-12-29 18:45:17 +00:00
a,
.mw-cookiewarning-dismiss {
padding: @margin-side / 2 @margin-side;
}
}
}