Merge pull request #133 from StarCitizenTools/dev

ToC enhancements and bug fixes
This commit is contained in:
alistair3149 2020-06-11 16:35:54 -04:00 committed by GitHub
commit e28892d1f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 42 deletions

View file

@ -1,7 +1,6 @@
#page-tools {
z-index: 5;
position: absolute;
margin-top: 1.3rem;
display: flex;
transform: translateX( ~'calc( (100vw - @{page-width}) / 2 - @{margin-side} * 2 - 100%)' ); // magic
@ -117,11 +116,6 @@
@media ( max-width: 500px ) {
#page-tools {
position: relative;
margin-left: 0;
transform: none;
float: none;
#p-actions > nav ul {
right: unset;
}

View file

@ -1,23 +1,20 @@
.mw-sidebar-sitename {
position: fixed;
visibility: visible;
top: @header-height;
bottom: @margin-side;
left: @margin-side;
font-size: 11px;
transform: translateY( 100% ) translateX( -100% ) rotate( -90deg );
transform-origin: top right;
transition: @transition-transform, @transition-opacity;
transition: @transition-opacity;
-webkit-font-smoothing: subpixel-antialiased;
.mw-wiki-title {
display: block;
width: 100px;
letter-spacing: 4px;
}
}
// Bypass calculation
@mw-sidebar-sitename-max-width: @margin-side * 5 + @page-width;
@media ( max-width: @mw-sidebar-sitename-max-width ) {
@media ( max-width: @screen2 ) {
.mw-sidebar-sitename {
z-index: -1; // remove link
opacity: 0; // hide visual

View file

@ -282,9 +282,8 @@ a {
.firstHeading {
margin: 0;
padding-top: 1.2rem;
color: @base-10;
overflow: inherit; // black magic to wrap in small screen devices
overflow-wrap: break-word; // Break word instead of overflow if title is too long
line-height: 1.2;
}

View file

@ -80,8 +80,8 @@
> div.tright,
> div.floatright,
> table.floatright {
margin: 0.6rem -@margin-side !important;
width: 100vw !important;
margin: 0.6rem -@margin-side;
width: 100vw;
float: unset;
clear: none;
}

View file

@ -3,7 +3,7 @@
max-width: 450px;
height: ~'calc( 100vh - @{header-height} * 2 - @{margin-side} * 2 )';
top: @header-height;
right: 0;
left: 0;
padding: @margin-side;
color: @base-70;
@ -24,19 +24,14 @@
display: none;
}
&text {
max-width: 250px;
direction: ltr;
}
li {
&.toclevel-2,
&.toclevel-3,
&.toclevel-4,
&.toclevel-5,
&.toclevel-6 {
margin-right: 0.3rem;
border-right: 1px dashed;
margin-left: 9px;
border-left: 1px dashed;
}
}
@ -56,10 +51,10 @@
a {
display: inline-block;
margin: @content-margin-top * 0.375 0;
padding-right: 12px;
margin: @content-margin-top / 4 0;
padding-left: 9px;
color: @base-50;
border-right: 3px solid transparent;
border-left: 3px solid transparent;
&:hover {
color: @base-30;
@ -77,21 +72,17 @@
}
ul {
margin: 0;
margin: 0 !important;
list-style: none;
}
ul,
&title {
text-align: right !important; // Override default styles
}
> ul {
margin: @content-margin-top * 0.75 0 0 0;
margin: @content-margin-top * 0.75 0 0 0 !important;
position: relative;
z-index: 2;
border-right: 1px dashed;
max-height: ~'calc( 100vh - @{header-height} * 2 - @{margin-side} * 2 )';
border-left: 1px dashed;
max-width: ~'calc( (100vw - '@page-width + @margin-side * 4~' ) / 2 )';
max-height: ~'calc( 100vh - '@header-height * 2 - @margin-side * 2~' )';
overflow: visible auto;
overscroll-behavior: contain;
display: block;
@ -170,9 +161,10 @@
> ul {
display: none; // Hide until interacted
margin: 0 @margin-side;
padding: @header-height + @margin-side 0 @header-height + @margin-side * 2 @margin-side; // More scroll spaces
max-height: ~'calc( 100vh - '@header-height * 2 + @margin-side * 3 ~')';
margin: 0 @margin-side !important;
padding: @header-height + @margin-side @margin-side @margin-side * 2 0; // More scroll spaces
max-width: none;
max-height: ~'calc( 100vh - '@header-height + @margin-side * 3 ~')';
transform: none;
transition: @transition-transform;
}

View file

@ -1,7 +1,7 @@
{
"name": "Citizen",
"namemsg": "skinname-citizen",
"version": "0.8.4",
"version": "0.9.0",
"author": [
"[https://www.mediawiki.org/wiki/User:Alistair3149 Alistair3149]",
"[https://www.mediawiki.org/wiki/User:Octfx Octfx]"