Files
gerrit/polygerrit-ui/app/styles/shared-styles.html
Becky Siegel e362e291b8 Fix styling in various overlays
Add box-sizing: border-box to css reset. In a variety of places, there
was content overlap, coming from where padding was set with a width of
100%. Setting box-sizing: border-box in the css reset allows for
padding to be set with a 100% width.

Bug: Issue 6372
Change-Id: Id177a5c7b000b7bfb2cce456e4834104e8c7e912
2017-06-08 15:57:46 -07:00

79 lines
2.2 KiB
HTML

<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<dom-module id="shared-styles">
<template>
<style>
/* CSS reset */
html, body, button, div, span, applet, object, iframe, h1, h2, h3,
h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub,
sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form,
label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
border: 0;
box-sizing: border-box;
font-size: 100%;
font: inherit;
margin: 0;
padding: 0;
vertical-align: baseline;
}
input,
iron-autogrow-textarea {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* Other Shared Styles*/
h1 {
font-size: 2em;
font-weight: bold;
}
h2 {
font-size: 1.5em;
font-weight: bold;
}
h3 {
font-size: 1.17em;
font-weight: bold;
}
/* Stopgap solution until we remove hidden$ attributes. */
[hidden] {
display: none !important;
}
</style>
</template>
</dom-module>