I have defined the following Input/Output styles in my stylesheet:
Cell[StyleData["Input"],
CellMargins->{{65, 0}, {0, 5}},
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
CellChangeTimes->{3.850893359505125*^9, 3.8508938629674664`*^9},
FontFamily->"IBM Plex Mono",
FontWeight->"Medium",
Background->RGBColor[0.8980392156862745, 0.9647058823529412, 1., 0.6]]
and
Cell[StyleData["Output"],
CellMargins->{{65, 0}, {5, -1}},
CellGroupingRules->{"GroupTogetherGrouping", 10000.},
CellChangeTimes->{3.8508933595049973`*^9, 3.85089386296737*^9},
FontFamily->"IBM Plex Mono",
FontWeight->"Regular",
Background->RGBColor[0.933333, 0.388235, 0.388235, 0.1]]
This is what they look like:
In the stylesheet notebook, the blue and red boxes are overlapping each other just a wee bit and there are no gaps no matter the magnification.
This breaks in a separate notebook where I apply the stylesheet. After some minimum magnification, the blue and red boxes separate.
Good behavior @ low magnification
Bad behavior @ high magnification
Is there a way to fix this behavior?