Skip to content

Instantly share code, notes, and snippets.

@mbartlett21
Last active April 29, 2025 11:40
Show Gist options
  • Save mbartlett21/50c3958168e2df09cecc2cbdb43a763b to your computer and use it in GitHub Desktop.
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 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