Style updates for examples and API docs

This commit is contained in:
Tim Schaub
2022-07-31 15:45:39 -06:00
committed by Tim Schaub
parent 15329aad00
commit 1bd9201fed
18 changed files with 430 additions and 277 deletions

View File

@@ -11,8 +11,8 @@ tags: "fullscreen, geolocation, orientation, mobile"
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="../css/ol.css" type="text/css">
<link rel="stylesheet" href="./resources/layout.css" type="text/css">
<link rel="stylesheet" href="./css/ol.css" type="text/css">
<link rel="stylesheet" href="./css/site.css" type="text/css">
<title>Mobile Geolocation Tracking with Orientation</title>
<style type="text/css">
html, body, .map {

View File

@@ -6,13 +6,14 @@
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./resources/layout.css" type="text/css">
<link rel="stylesheet" href="./css/ol.css" type="text/css">
<link rel="stylesheet" href="./css/site.css" type="text/css">
<style>
body {
padding-top: 70px;
padding-top: 50px;
}
input.search-query {
color: #333;
color: var(--ol-foreground-color);
}
.example {
display: block;
@@ -25,8 +26,11 @@
font-size: smaller;
margin: 5px 0;
}
.example:hover {
background-color: #F5F5F5;
a.bg-light:focus,
a.bg-light:hover,
button.bg-light:focus,
button.bg-light:hover {
background-color: #f8f9fa !important;
}
</style>
<script type="text/javascript" src="resources/Jugl.js"></script>
@@ -38,7 +42,7 @@
<body>
<header class="navbar navbar-expand-md navbar-dark mb-3 py-0 fixed-top" role="navigation">
<a class="navbar-brand" href="https://openlayers.org/"><img class="header-logo" src="./resources/logo-70x70.png" alt="">&nbsp;OpenLayers</a>
<a class="navbar-brand" href="https://openlayers.org/"><img class="header-logo" src="./resources/logo-dark.svg" width="70px" height="70px" alt="">&nbsp;OpenLayers</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#olmenu" aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>

View File

@@ -1,198 +0,0 @@
@import url(https://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700);
body {
font-family: 'Quattrocento Sans', sans-serif;
font-size: 16px;
}
.navbar {
background-color: #1F6B75;
color: white;
border: 0;
border-radius: 0;
}
.navbar-brand {
color: white;
font-weight: bold;
font-size: 160%;
padding: 8px 0;
}
.navbar-brand:hover,
.navbar-brand:focus {
color: #aae1e9;
}
.navbar-brand img {
height: 35px;
width: 35px;;
vertical-align: middle;
margin-right: 5px;
display: inline-block;
}
.dropdown-item.active, .dropdown-item:hover {
color: #fff;
text-decoration: none;
background-color:#268591
}
.nav>li>a:hover, .nav>li>a:focus, .nav>li>a.active {
background-color: #268591;
}
.navbar-nav>li>a {
color: white;
}
.display-table {
display: table;
}
a {
color: #03899c;
text-decoration:none
}
a:hover, a:focus, footer a:hover, footer a:focus {
color: #ff7a00;
text-decoration:none
}
.btn-link {
font-weight: 400;
color: #03899c;
text-decoration: none;
}
.btn-link:hover {
color: #ff7a00;
text-decoration: none;
}
.version-form, .navbar-form {
display: table-cell;
vertical-align: middle;
}
.version-form {
color: #333;
}
#title {
margin-top: 0;
}
.badge-group {
display: inline-block;
}
.badge-group > .badge:not(:last-child) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.badge-group > .badge:not(:first-child) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.tag-modal-toggle {
cursor: pointer;
}
.modal-tag-example .modal-body {
padding: 0;
}
.modal-tag-example .list-group-item:focus,
.modal-tag-example .list-group-item:hover,
.modal-tag-example .list-group-item:active {
background-color: rgba(31, 107, 117, .6875);
border-color: #1F6B75;
color: white;
}
.modal-tag-example .list-group-item.active {
background-color: #1F6B75;
color: white;
}
#docs {
margin-top: 1em;
}
ul.inline,
ol.inline {
margin-left: 0;
padding-left: 0;
list-style: none;
}
ul.inline>li,
ol.inline>li {
display: inline-block;
padding-left: 5px;
padding-right: 5px;
}
.map {
height: 400px;
width: 100%;
background: url(map-background.jpg) repeat;
margin-bottom: 10px;
}
.ol-control {
line-height: normal;
}
.ol-attribution.ol-logo-only,
.ol-attribution.ol-uncollapsible {
max-width: calc(100% - 3em);
}
.iframe-info iframe {
width: 100%;
}
.source-heading {
margin-top: 1em;
margin-bottom: 0;
padding-left: .6em;
font-weight: bold;
}
pre[class*="language-"] {
background: #FFFFFF;
font-size: 87.5%;
}
pre {
border: 1px solid #eee;
border-radius: 0;
}
#tags, #shortdesc, .hidden {
display: none;
}
#api-links ul {
display: inline;
}
#latest-check {
margin-top: -10px;
margin-bottom: 10px;
}
/* restyle prism copy button */
div.code-toolbar > .toolbar {
opacity: 1;
top: -2.4em;
}
div.code-toolbar > .toolbar button {
font-size: 16px;
color: #03899c;
background-color: transparent;
box-shadow: none;
padding: .615rem .75rem;
}
div.code-toolbar > .toolbar button:hover,
div.code-toolbar > .toolbar button:focus {
color: #ff7a00;
}
div.code-toolbar > .toolbar button:focus {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
div.code-toolbar > .toolbar button:before {
margin-right: .184em;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
content: "\f0ea";
font-size: 1.33333333em;
line-height: .75em;
vertical-align: middle;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

View File

@@ -0,0 +1 @@
../../site/resources/logo-dark.svg

View File

@@ -0,0 +1 @@
../../site/resources/logo-light.svg

View File

@@ -66,7 +66,7 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="./resources/prism/prism-1.20.0.css" type="text/css">
<link rel="stylesheet" href="./css/ol.css" type="text/css">
<link rel="stylesheet" href="./resources/layout.css" type="text/css">
<link rel="stylesheet" href="./css/site.css" type="text/css">
<script src="https://unpkg.com/elm-pep@1.0.6/dist/elm-pep.js"></script>
<script src="https://cdn.polyfill.io/v3/polyfill.min.js?features=fetch,requestAnimationFrame,Element.prototype.classList,TextDecoder"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/core-js/3.18.3/minified.js"></script>
@@ -77,7 +77,7 @@
<body>
<header class="navbar navbar-expand-sm navbar-dark mb-3 py-0" role="navigation">
<a class="navbar-brand" href="https://openlayers.org/"><img src="./resources/logo-70x70.png" alt="">&nbsp;OpenLayers</a>
<a class="navbar-brand" href="https://openlayers.org/"><img src="./resources/logo-dark.svg" width="70px" height="70px" alt="">&nbsp;OpenLayers</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#olmenu" aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>

View File

@@ -70,6 +70,7 @@ export default {
new CopyPlugin({
patterns: [
{from: '../src/ol/ol.css', to: 'css'},
{from: '../site/site.css', to: 'css'},
{from: 'data', to: 'data'},
{from: 'resources', to: 'resources'},
{from: 'index.html', to: 'index.html'},