Skip to content

Instantly share code, notes, and snippets.

@jamezrin
Created March 15, 2019 23:20
Show Gist options
  • Save jamezrin/fcdb478baf575b419502d6475dc4a01c to your computer and use it in GitHub Desktop.
Save jamezrin/fcdb478baf575b419502d6475dc4a01c to your computer and use it in GitHub Desktop.
Posicionamiento alternativo de la imagen de la autoescuela
// ==UserScript==
// @name eTestWeb / Estilo mejorado
// @namespace https://jamezrin.name
// @version 0.1
// @description Posicionamiento alternativo de la imagen de la autoescuela
// @author jaime@jamezrin.name
// @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