CSS Reference
This page contains the CSS selectors names for styling RPGM in a program, by using custom CSS code in the project settings.
Danger
This section is outdated and will be updated soon.
GUI
.pgm-guifor the whole GUI screen.pgm-guiformfor the inner container of the GUI[data-click="gui:submit"]is the "Submit" button
Generic widgets classes
.pgm-gui-elementis the surrounding div for each widget.pgm-guimessageis the green/yellow/red message for R conditions.pgm-guihelpis the small help line below widgets
Widgets
You might need to prepend .pgm-guiform for not modifying buttons or inputs which are outside the pgm program. For example: .pgm-guiform button.
.pgm-gui-box: Global class for all list/box widget[data-columns]or[data-col]: A column for the column widgetinput[type="date"]for date widgetsbuttonfor buttons[id^="pgm-gui-graph-"]for graphs.pgm-gui-hotfor grids.pgm-gui-imagefor imagesinput[type="slider"]for slidersinput[type="range"]for numbersinput[type="checkbox"]for checkboxes on/off.pgm-gui-switchandpgm-gui-sliderfor the custom on/off switch.pgm-gui-progressbarfor horizontal progress bars- Circle progress bars are
svgelements containing a<text>and a<circle class="pgm-gui-progresscircle">element - Multi-selects are
select,input[type="checkbox"]andinput[type="radio"] - Tabs: Container
<div>is.pgm-gui-tabs-container - The tabs header list is
.pgm-gui-tabsand individual tabs are.pgm-gui-tabs [data-tab] - The tab container is
.pgm-gui-tabs-contentsand each tab is in a.pgm-gui-tabs-content input[type="text"]andtextareafor text widgets
Specific to the Grid
.excel-colname,.excel-rowname.excel-colname.excel-headerselected,.excel-rowname.excel-headerselected.excel-firstcelldivfor the top left cell.excel-content trfor the rows of the content.excel-cellselectorthe selected cell (by default:border: 2px solid #4b89ff;).excel-rangeselectorthe selected range (by default:border: 1px solid rgb(231, 76, 60); background-color: rgba(231, 76, 60, 0.12);)
Scripts
.script: entire script executing screen.script-left: Left part with the spinner.script-spinner-containerand.script-spinner: The spinner
.script-right: Right part.script-info: Info.script-status: Status of the script.script-timer: The timer.script-progress: The progress part.script-progressbar: The progressbar.script-progressbar-inner: The inner part of the progressbar
.script-text: The custom text set byscript.setProgress()