codesandbox.io: collapse header for larger editor

Pull header and social buttons to side panel

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

/* ==UserStyle==
@name           codesandbox.io: collapse header for larger editor
@namespace      myfonj
@version        1.0.0
@description    Pull header and social buttons to side panel
@author         myf
@license        CC0
==/UserStyle== */

/*
https://greasyfork.org/en/scripts/441676/versions/new
*/

@-moz-document domain("codesandbox.io") {
 /* categorisation */
}
@-moz-document url-prefix("https://codesandbox.io/s/") {
 header:not(:hover):not(:focus-within) {
   width: 55px;
   overflow: hidden;
 }
 header:not(:hover):not(:focus-within) a[href="/dashboard"] {
  opacity: 0;
 }
 header {
  z-index: 100;
  position: fixed;
  right: auto;
  left: 0;
 }
 /* reclaim header space */
 nav[aria-label="Sandbox Navigation"] + div {
  top: 0 !important;
 }
 /* sweep social buttons to panel */
 nav[aria-label="Sandbox Navigation"] + div > .SplitPane > .Pane1 > [class*="elements__Container"] > :last-child {
  position: fixed;
  bottom: .33em; left: .33em;
  display: flex;
  flex-direction: column;
 }
 nav[aria-label="Sandbox Navigation"] + div > .SplitPane > .Pane1 > [class*="elements__Container"] > :last-child  > div {
  display: contents;
 }
}