Created
March 15, 2019 23:20
-
-
Save jamezrin/fcdb478baf575b419502d6475dc4a01c to your computer and use it in GitHub Desktop.
Posicionamiento alternativo de la imagen de la autoescuela
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name eTestWeb / Estilo mejorado | |
// @namespace https://jamezrin.name | |
// @version 0.1 | |
// @description Posicionamiento alternativo de la imagen de la autoescuela | |
// @author [email protected] | |
// @match *://www.carnetcnae.com/* | |
// @grant all | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var image = document.getElementById('ctl00_imgLogoSuperior'), | |
sideMenu = document.getElementsByClassName("left side-menu")[0]; | |
sideMenu.insertBefore(image, sideMenu.firstChild); | |
var customCss = document.createElement('style'); | |
customCss.innerHTML = ` | |
#wrapper.enlarged .topbar .topbar-left { | |
width: 65px !important; | |
} | |
.left.side-menu { | |
top: unset !important; | |
z-index: 20 !important; | |
} | |
.topbar { | |
z-index: 10 !important; | |
} | |
#ctl00_imgLogoSuperior { | |
margin: 0 auto !important; | |
} | |
.user-box .row div[class^="col"] { | |
padding: unset !important; | |
position: unset !important; | |
min-height: unset !important; | |
width: unset !important; | |
float: unset !important; | |
} | |
`; | |
document.head.appendChild(customCss); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment