Skip to content

Instantly share code, notes, and snippets.

@mbartlett21
Last active September 16, 2025 05:36
Show Gist options
  • Select an option

  • Save mbartlett21/50c3958168e2df09cecc2cbdb43a763b to your computer and use it in GitHub Desktop.

Select an option

Save mbartlett21/50c3958168e2df09cecc2cbdb43a763b to your computer and use it in GitHub Desktop.
Some Onshape user.css files for niceness
/* ==UserStyle==
@name Onshape bubble
@namespace mbartlett21
@version 0.1.0
@homepageURL https://gist.github.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b
@updateURL https://gist.githubusercontent.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b/raw/onshapeBubble.user.css
@license CC-BY-SA-4.0
@author mbartlett21
==/UserStyle== */
@-moz-document domain("cad.onshape.com") {
/*
os-message-bubble .document-model-bubble .os-message-bubble-container {
top: 15px!important;
}
*/
.os-speech-bubble-container {
top: 15px!important;
}
.alert {
border: 1px solid transparent!important;
}
.alert-info {
box-shadow: 0 4px 7px #00000033;
}
}
/* ==UserStyle==
@name Onshape Right Click Menu
@namespace mbartlett21
@version 0.1.1
@homepageURL https://gist.github.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b
@updateURL https://gist.githubusercontent.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b/raw/onshapeContext.user.css
@license CC-BY-SA-4.0
@author mbartlett21
==/UserStyle== */
@-moz-document domain("onshape.com") {
/*
.context-menu-list .context-menu-item:nth-child(2) { line-height: 19px; }
.context-menu-list .context-menu-item:nth-child(3) { line-height: 20px; }
.context-menu-list .context-menu-item:nth-child(4) { line-height: 21px; }
.context-menu-list .context-menu-item:nth-child(5) { line-height: 22px; }
.context-menu-list .context-menu-item:nth-child(6) { line-height: 23px; }
.context-menu-list .context-menu-item:nth-child(7) { line-height: 24px; }
.context-menu-list .context-menu-item:nth-child(8) { line-height: 25px; }
.context-menu-list .context-menu-item:nth-child(9) { line-height: 26px; }
.context-menu-list .context-menu-item:nth-child(10) { line-height: 27px; }
.context-menu-list .context-menu-item:nth-child(11) { line-height: 28px; }
.context-menu-list .context-menu-item:nth-child(12) { line-height: 29px; }
.context-menu-list .context-menu-item:nth-child(13) { line-height: 30px; }
.context-menu-list .context-menu-item:nth-child(14) { line-height: 31px; }
.context-menu-list .context-menu-item:nth-child(15) { line-height: 32px; }
.context-menu-list .context-menu-item:nth-child(16) { line-height: 33px; } */
/* .contextmenu-ellipsis-li {
height: unset;
} */
/* .context-menu-list {
width: 350px!important;
min-width: 350px!important;
max-width: 350px!important;
}
ul.list-has-icons .contextmenu-ellipsis-li:not(.context-menu-separator), ul.list-has-icons>.context-menu-item:not(.context-menu-separator) {
display: inline-block;
width: 174px!important;
} */
ul .contextmenu-ellipsis-li:not(.context-menu-separator),
ul > .context-menu-item:not(.context-menu-separator),
.xenon-context-menu.dropdown-menu > li:not(.divider) {
height: 28px!important;
line-height: 24px!important;
}
}
/* ==UserStyle==
@name Onshape fixed text
@namespace mbartlett21
@version 0.1.0
@homepageURL https://gist.github.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b
@updateURL https://gist.githubusercontent.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b/raw/onshapeFixed.user.css
@license CC-BY-SA-4.0
@author mbartlett21
==/UserStyle== */
@-moz-document domain("onshape.com") {
input {
font-family: Consolas!important;
font-size: small!important;
}
.dimension-edit-container input {
min-width: 250px;
}
}
/* ==UserStyle==
@name Onshape onum
@namespace mbartlett21
@version 0.1.0
@homepageURL https://gist.github.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b
@updateURL https://gist.githubusercontent.com/mbartlett21/50c3958168e2df09cecc2cbdb43a763b/raw/onshapeOnum.user.css
@license CC-BY-SA-4.0
@author mbartlett21
==/UserStyle== */
@-moz-document domain("cad.onshape.com") {
body {
font-variant-numeric: tabular-nums oldstyle-nums;
}
.ace_editor {
font-variant-numeric: tabular-nums oldstyle-nums!important;
font-family: "Fira Code", Consolas!important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment