From dc700fb3fd783cfd0a8e63c2ddae2f21f53077e6 Mon Sep 17 00:00:00 2001 From: farnabaz Date: Sun, 8 Nov 2015 18:07:40 +0330 Subject: [PATCH] add box-sizing If page `box-sizing` is equal to `border-box`, titlebar buttons show smaller that their actual size (because paddings not affected in their size) We could fix this by adding `box-sizing: content-box;` to `.titlebar` and `box-sizing: inherit;` to child nodes --- index.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.css b/index.css index 686c704..1ba156c 100644 --- a/index.css +++ b/index.css @@ -1,6 +1,13 @@ .titlebar { padding: 0 3px; background-color: #f6f6f6; + box-sizing: content-box; +} + +.titlebar *, +.titlebar :before, +.titlebar :after { + box-sizing: inherit; } .titlebar.webkit-draggable {