mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-15 02:24:04 +00:00
feat(core): ✨ remove icons from navigation menu
It is weird that there are only a few links with icon. Removing it temporarily until we have a better solution to apply icon to everything
This commit is contained in:
parent
dc77ae47bd
commit
6e3727f8f3
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path d="M12 3 2 12h3v9h4v-4.6c0-1.47 1.31-2.66 3-2.66s3 1.19 3 2.66V21h4v-9h3L12 3z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 223 B |
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
||||
<title>
|
||||
special pages
|
||||
</title>
|
||||
<path d="M7 0a2 2 0 0 0-2 2h9a2 2 0 0 1 2 2v12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/>
|
||||
<path d="M13 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2zm-6.5-3.5.41-1.09L8 15l-1.09-.41-.41-1.09-.41 1.09L5 15l1.09.41.41 1.09zm2.982-.949.952-2.561 2.53-.964-2.53-.964L9.482 8.5l-.952 2.562-2.53.964 2.53.964.952 2.561zM6 10.5l.547-1.453L8 8.5l-1.453-.547L6 6.5l-.547 1.453L4 8.5l1.453.547L6 10.5z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 581 B |
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
||||
<title>
|
||||
special pages
|
||||
</title>
|
||||
<path d="M13 0a2 2 0 0 1 2 2H6a2 2 0 0 0-2 2v12a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z"/>
|
||||
<path d="M7 20a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H7zm6.5-3.5.41-1.09L15 15l-1.09-.41-.41-1.09-.41 1.09L12 15l1.09.41.41 1.09zm-2.982-.949.952-2.561 2.53-.964-2.53-.964-.952-2.562-.952 2.562-2.53.964 2.53.964.952 2.561zM14 10.5l.547-1.453L16 8.5l-1.453-.547L14 6.5l-.547 1.453L12 8.5l1.453.547L14 10.5z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 588 B |
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
||||
<title>
|
||||
upload
|
||||
</title>
|
||||
<path d="M17 12v5H3v-5H1v5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5z"/>
|
||||
<path d="M10 1 5 7h4v8h2V7h4z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 266 B |
|
@ -41,31 +41,15 @@
|
|||
|
||||
a {
|
||||
.menu-item-link;
|
||||
padding: 0.625rem 1.25rem; // TODO: Make this a variable
|
||||
padding: 0.625rem var( --space-md ); // TODO: Make this a variable
|
||||
border-radius: var( --border-radius--small );
|
||||
|
||||
&:after {
|
||||
.resource-loader-list-icon;
|
||||
display: block;
|
||||
background-size: contain;
|
||||
opacity: var( --opacity-icon-base );
|
||||
transition: @transition-opacity;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.menu-item-link-hover;
|
||||
|
||||
&:after {
|
||||
opacity: var( --opacity-icon-base--hover );
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
.menu-item-link-active;
|
||||
|
||||
&:after {
|
||||
opacity: var( --opacity-icon-base--active );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,13 +69,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.skin-citizen-dark {
|
||||
// Icons in nav links
|
||||
.citizen-drawer__menu a:after {
|
||||
filter: invert( 1 );
|
||||
}
|
||||
}
|
||||
|
||||
@media ( min-width: @width-breakpoint-tablet ) {
|
||||
.citizen-drawer {
|
||||
&__logo img {
|
||||
|
|
21
skin.json
21
skin.json
|
@ -292,20 +292,6 @@
|
|||
"#ca-ve-edit > a:before": "resources/skins.citizen.icons/shared/edit.svg",
|
||||
".mw-editsection > a:before": "resources/skins.citizen.icons/shared/edit.svg",
|
||||
".mw-editsection > a.mw-editsection-visualeditor + .mw-editsection-divider + a:before": "resources/skins.citizen.icons/shared/wikiText.svg",
|
||||
"#n-mainpage-description > a:after": "resources/skins.citizen.icons/shared/home.svg",
|
||||
"#n-recentchanges > a:after": {
|
||||
"file": {
|
||||
"ltr": "resources/skins.citizen.icons/shared/recentChanges-ltr.svg",
|
||||
"rtl": "resources/skins.citizen.icons/shared/recentChanges-rtl.svg"
|
||||
}
|
||||
},
|
||||
"#n-randompage > a:after": "resources/skins.citizen.icons/shared/random.svg",
|
||||
"#n-help > a:after": {
|
||||
"file": {
|
||||
"ltr": "resources/skins.citizen.icons/shared/help-ltr.svg",
|
||||
"rtl": "resources/skins.citizen.icons/shared/help-rtl.svg"
|
||||
}
|
||||
},
|
||||
"#t-whatlinkshere > a:before": {
|
||||
"file": {
|
||||
"ltr": "resources/skins.citizen.icons/shared/articleRedirect-ltr.svg",
|
||||
|
@ -332,13 +318,6 @@
|
|||
},
|
||||
"#t-blockip > a:before": "resources/skins.citizen.icons/shared/block.svg",
|
||||
"#t-userrights > a:before": "resources/skins.citizen.icons/shared/userGroup.svg",
|
||||
"#t-upload > a:before": "resources/skins.citizen.icons/shared/upload.svg",
|
||||
"#t-specialpages > a:before": {
|
||||
"file": {
|
||||
"ltr": "resources/skins.citizen.icons/shared/specialPages-ltr.svg",
|
||||
"rtl": "resources/skins.citizen.icons/shared/specialPages-rtl.svg"
|
||||
}
|
||||
},
|
||||
"#t-print > a:before": "resources/skins.citizen.icons/shared/download.svg",
|
||||
"#t-permalink > a:before": "resources/skins.citizen.icons/shared/link.svg",
|
||||
"#t-info > a:before": "resources/skins.citizen.icons/shared/info.svg"
|
||||
|
|
Loading…
Reference in a new issue