UNPKG

albert-svg

Version:

Dynamic SVG generation using Cassowary constraints

75 lines (63 loc) 1.38 kB
/* Copyright 2019 Google LLC 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. */ html, body, h1, h2, p, ul { margin: 0; padding: 0; } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; } h1 { font-size: 2em; margin-top: 1.5rem; line-height: 1.5; } h2 { font-size: 1.5em; margin-top: 1.5rem; line-height: 1; } header, main { max-width: 75ch; margin: 0 auto; padding: 0 1em; } main { padding-bottom: 1.5em; } p, ul { line-height: 1.5; margin-top: 1.5rem; } code { background: #dfe2e6; border-radius: 2px; display: inline-block; padding: 0 0.25em; font-family: "Roboto Mono", Inconsolata, Consolas, monospace; } #svg { box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); margin-top: 1.5rem; text-align: center; width: 100%; }