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

92 lines
1.5 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;
2021-01-19 17:14:01 +00:00
display: flex;
overflow: hidden;
max-width: @screen2;
2021-01-19 17:14:01 +00:00
justify-content: space-between;
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;
2021-01-19 17:14:01 +00:00
align-items: center;
2019-12-29 18:45:17 +00:00
line-height: 1.4;
> span {
2019-12-29 18:45:17 +00:00
display: block;
flex-grow: 1;
2021-01-19 17:14:01 +00:00
padding: var( --padding-page );
margin: 0;
2019-12-29 18:45:17 +00:00
}
> form {
display: block;
2019-12-29 18:45:17 +00:00
}
> a {
height: auto;
2021-01-19 17:14:01 +00:00
background: transparent;
2019-12-29 18:45:17 +00:00
}
.mw-cookiewarning-dismiss {
height: 100%;
2021-01-19 17:14:01 +00:00
padding: 10px var( --padding-page );
margin: 0;
2021-01-19 17:14:01 +00:00
background: var( --color-primary );
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 {
2021-01-19 17:14:01 +00:00
background: var( --color-primary--hover );
}
&:active {
background: var( --color-primary--active );
}
2019-12-29 22:13:14 +00:00
}
2019-12-29 18:45:17 +00:00
}
}
2021-01-19 17:14:01 +00:00
@media only screen and ( max-width: @width-breakpoint-tablet ) {
.mw-cookiewarning-container {
flex-wrap: wrap;
2019-12-29 18:45:17 +00:00
2021-01-19 17:14:01 +00:00
.mw-cookiewarning-text {
flex-wrap: wrap;
/* Hack to hide nbsp */
font-size: 0;
> span {
font-size: @content-small-text-size;
}
> a {
width: 100%;
text-align: center;
}
2020-03-15 04:26:03 +00:00
}
> form,
2020-03-15 04:11:16 +00:00
.mw-cookiewarning-dismiss {
width: 100%;
2019-12-29 18:45:17 +00:00
}
}
}