mediawiki-skins-Citizen/skinStyles/extensions/MsUpload/ext.MsUpload.less

130 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-08-25 20:10:27 +00:00
/*
* Citizen
*
* SkinStyles for Extension:MsUpload
* Module: ext.MsUpload
* Version: REL1_35 32eb420
*
* Date: 2021-08-25
*/
#msupload {
&-div {
border-top: 0;
background: var( --color-surface-1 );
a {
color: var( --color-primary );
}
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
&-dropzone {
display: flex;
height: 36px;
align-items: center;
justify-content: center;
padding: 0;
2021-08-25 20:14:52 +00:00
border-color: var( --border-color-base--darker );
2021-08-25 20:10:27 +00:00
margin: 8px;
color: var( --color-base );
font-size: 0.875rem;
font-weight: var( --font-weight-medium );
2021-08-25 20:10:27 +00:00
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
&-list {
.file {
border-top-color: var( --border-color-base );
background: var( --color-surface-2 );
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
.file-name {
color: var( --color-base--emphasized );
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
&:hover {
background-color: var( --background-color-quiet--hover );
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
&:active {
background-color: var( --background-color-quiet--active );
}
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
.file-size {
color: var( --color-base--subtle );
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
.file-warning,
.file-error {
color: var( --color-base );
2021-08-11 22:21:56 +00:00
}
}
2021-08-25 20:10:27 +00:00
.green {
background-color: var( --background-color-success );
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
.yellow {
background-color: var( --background-color-warning );
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
.red {
background-color: var( --background-color-destructive );
}
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
// Increase clickable area and fix alignment
&-bottom {
display: flex;
height: auto;
align-items: center;
padding: 0;
border-top-color: var( --border-color-base );
#msupload-files {
height: auto;
padding: 6px 12px 6px 36px;
background-position: 12px center;
background-size: 18px;
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
a {
display: flex;
align-items: center;
padding: 6px 12px;
margin-right: 0;
font-size: 0.875rem;
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
&:hover {
background-color: var( --background-color-quiet--hover );
2021-08-11 22:21:56 +00:00
}
2021-08-25 20:10:27 +00:00
&:active {
background-color: var( --background-color-quiet--active );
2021-08-11 22:21:56 +00:00
}
2021-08-25 20:10:27 +00:00
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
.spacer {
border-left-color: var( --border-color-base );
background-color: var( --border-color-base );
2021-08-11 22:21:56 +00:00
}
}
2021-08-25 20:14:52 +00:00
&-select,
&-bottom #msupload-files {
background-image: url( data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E upload %3C/title%3E%3Cpath d='M17 12v5H3v-5H1v5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5z'/%3E%3Cpath d='M10 1 5 7h4v8h2V7h4z'/%3E%3C/svg%3E%0A );
}
2021-08-25 20:10:27 +00:00
}
2021-08-11 22:21:56 +00:00
2021-08-25 20:10:27 +00:00
.drop-over {
background-color: var( --background-color-success );
}
.skin-citizen-dark {
#msupload {
2021-08-25 20:14:52 +00:00
&-container.start-loading,
&-select,
2021-08-25 20:10:27 +00:00
&-bottom #msupload-files {
filter: invert( 1 ) hue-rotate( 180deg );
}
2021-08-11 22:21:56 +00:00
}
}