summaryrefslogtreecommitdiffstats
path: root/doc/rofi-theme.5.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'doc/rofi-theme.5.markdown')
-rw-r--r--doc/rofi-theme.5.markdown19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/rofi-theme.5.markdown b/doc/rofi-theme.5.markdown
index 0813f8c9..143551db 100644
--- a/doc/rofi-theme.5.markdown
+++ b/doc/rofi-theme.5.markdown
@@ -352,6 +352,24 @@ For example:
On a full-HD (1920x1080) monitor, it defines a padding of 192 pixels on the left
and right side and 108 pixels on the top and bottom.
+### Calculating sizes
+
+Rofi supports some maths in calculating sizes. For this it uses the CSS syntax:
+
+```
+width: calc( 100% - 37px );
+```
+
+It supports the following operations:
+
+* `+`: Add
+* `-`: Subtract
+* `/`: Divide
+* `*`: Multiply
+* `%`: Multiply
+
+It uses the C precedence ordering.
+
## Padding
* Format: `{Integer}`
@@ -837,6 +855,7 @@ element selected {
}
```
+
### Padding and margin
Just like CSS, **rofi** uses the box model for each widget.