feat: Update CookieWarning styles (#274)

This commit is contained in:
alistair3149 2021-02-20 15:13:41 -05:00 committed by GitHub
parent 198fe0800d
commit 0b7bb9f032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,14 +7,10 @@
@import '../../../resources/mixins.less';
.mw-cookiewarning-container {
top: unset;
right: 0;
bottom: 0;
display: flex;
overflow: hidden;
max-width: var( --width-breakpoint-desktop-wide );
justify-content: space-between;
padding: 0;
padding: 0 var( --padding-page );
margin: 0 auto;
background-color: #343a40; // dark base 70
border-radius: @border-radius-large @border-radius-large 0 0;
@ -25,39 +21,13 @@
.boxshadow(5);
.mw-cookiewarning-text {
display: flex;
flex-grow: 1;
align-items: center;
> span {
display: block;
flex-grow: 1;
padding: var( --padding-page );
margin: 0;
}
> a {
height: auto;
padding: 10px var( --padding-page );
margin: 0;
background: transparent;
}
padding: 20px 0;
}
.mw-cookiewarning-dismiss {
padding: 10px var( --padding-page );
margin: 0;
background: var( --color-primary );
border-radius: 0;
transition: @transition-background-quick;
&:hover {
background: var( --color-primary--hover );
}
&:active {
background: var( --color-primary--active );
}
form {
display: flex;
align-items: center;
padding: 10px 0;
}
}
@ -67,22 +37,15 @@
.mw-cookiewarning-text {
flex-wrap: wrap;
padding-bottom: 10px;
/* Hack to hide nbsp */
font-size: 0;
> span {
font-size: @content-small-text-size;
}
> a {
width: 100%;
text-align: center;
}
}
> form,
.mw-cookiewarning-dismiss {
form {
width: 100%;
justify-content: center;
margin-left: -8px; // cancel out the button margin
}
}
}