.icon.note.grey { /* no-r2 */ background-position: -240px -20px; }
.icon.query { /* no-r2 */ background-position: -260px 0; }
-/* Rules for links */
-
-a {
- color: #24d;
- text-decoration: none;
- outline: 0;
- &:hover {
- text-decoration: underline;
- }
-}
-
/* Utility for de-emphasizing content */
.text-muted a {
color: $blue;
}
+/* Rules for borders */
+/* These add additional colours to those provided by bootstrap */
+.border-grey {
+ border-color: $grey !important;
+}
+
+.border-lightgrey {
+ border-color: $lightgrey !important;
+}
+
/* Rules for the header */
#menu-icon {
.login-menu {
.btn-outline-secondary {
- @include button-outline-variant($darkgrey);
+ @include button-outline-variant($darkgrey, $white, null, null, $white);
}
}
}
}
- img.user_thumbnail_tiny {
- border: 0;
- border-radius: 3px;
- }
-
#inboxanchor {
display: inline-block;
height: 25px;
width: 100%;
}
- h2 {
- font-size: 1.5rem;
- }
-
- h3, h4 {
- font-size: 1.25rem;
- }
-
.close-wrap {
cursor: pointer;
position: absolute;
top: 20px;
}
}
-
- .icon.close {
- float: right;
- cursor: pointer;
- }
-
- .flash {
- padding: 15px;
-
- picture {
- margin-right: -25px;
- }
-
- div.message {
- margin-left: 30px;
- }
- }
}
.overlay-sidebar #sidebar {
}
}
+/* Stop bootstrap 5 from floating legends when they don't need to be */
+legend {
+ float: none;
+}
+
+/* Override the text colour for primary and secondary buttons, to match our
+ bootstrap 4 colours. Note this has accessibility issues, which is why
+ bootstrap 5 calculates black as the appropriate colour, and we should
+ reconsider our colours at some point with that in mind. */
+
+.btn-primary {
+ @include button-variant($primary, $primary, $white, null, null, $white, null, null, $white, null, null, $white);
+}
+
+.btn-secondary {
+ @include button-variant($secondary, $secondary, $white, null, null, $white, null, null, $white, null, null, $white);
+}
+
+.btn-outline-secondary {
+ @include button-outline-variant($secondary, $white, null, null, $white);
+}
+
/* Rules for the search and direction forms */
header .search_forms,
border-bottom: none;
}
- .paginate {
- float: right;
- padding: 1px 6px;
- border: 1px solid $lightgrey;
- border-radius: 3px;
- }
-
- .browse-field {
- margin-bottom: 10px;
-
- h4 {
- padding: 5px 0 5px 10px;
- font-size: 12px;
- border: 1px solid $grey;
- border-radius: 4px 4px 0 0;
- background-color: $offwhite;
- }
-
- p {
- padding: 7px 10px;
- font-size: 12px;
- background-color: #FFF;
- border: 1px solid $grey;
- border-top: 0;
- border-radius: 0 0 4px 4px;
- }
- }
-
.browse-tag-list {
background-color: $offwhite;
- border: 1px solid $grey;
- border-radius: 3px;
table-layout: fixed;
border-collapse: separate;
border-spacing: 0;
}
}
- .comments-header {
- float: left;
- }
-
- .subscribe-buttons {
- float: left;
- margin: 0 10px;
- min-width: 80px;
- }
-
.subscribe-buttons input {
font-size: 90%;
line-height: 15px;
.export_boxy {
background: $lightgrey;
- border: 1px solid $grey;
- border-radius: 3px;
#maxlat { margin-top: -1px; }
#minlon {
.content_map {
height: 200px;
- border: 1px solid $grey;
margin-bottom: $lineheight;
}
margin-top: 0 0 0 60px;
font-size: 12px;
}
- img.user_thumbnail {
- float: left;
- margin: 0 $lineheight/2 0 0;
- }
}
/* Rules for the user list */
padding-bottom: $lineheight/2;
border-top: 1px solid $grey;
- &:first-of-type {
- margin-top: $lineheight/2;
- }
-
&.deleted {
background-color: #fee;
}
-
- .post_heading {
- margin-bottom: $lineheight;
-
- h2 {
- margin-top: 0;
- margin-bottom: $lineheight/2;
- }
- }
-
- img.user_thumbnail {
- float: left;
- }
}
/* Rules for the diary entry page */
.diary_entries {
#map {
height: 400px;
- border: 1px solid $grey;
display: none;
margin-bottom: $lineheight;
}
}
}
-.diary_entries-show img.user_thumbnail {
- float: left;
-}
-
/* Rules for the log in page */
#login_auth_buttons {
.users-terms {
.legale {
- border: 1px solid $grey;
padding: $lineheight;
margin-bottom: $lineheight;
overflow: auto;
/* Rules for messages pages */
.messages {
- input[type="submit"] {
+ button[type="submit"] {
margin: auto;
+ white-space: nowrap;
}
.inbox-row {
/* Rules for "flash" notice boxes shown at the top of the content area */
.flash {
- padding: $lineheight;
-
&.error {
background-color: #ff7070;
}
img.user_image {
max-width: 100px;
max-height: 100px;
- border: 1px solid $grey;
- margin-bottom: $lineheight;
- float: left;
- margin-right: $lineheight;
-}
-
-img.user_image_no_margins {
- max-width: 100px;
- max-height: 100px;
- border: 1px solid $grey;
}
img.user_thumbnail {
max-width: 50px;
max-height: 50px;
- border: 1px solid $grey;
- margin-right: $lineheight;
-}
-
-img.user_thumbnail_no_margins {
- max-width: 50px;
- max-height: 50px;
- border: 1px solid $grey;
}
img.user_thumbnail_tiny {
height: auto;
max-width: 25px;
max-height: 25px;
- border: 1px solid $grey;
}
/* Rules for geo microformats */
}
}
-/* Customise the background colour of striped tables */
-
-.table-striped > tbody > tr:nth-child(2n+1) > td,
-.table-striped > tbody > tr:nth-child(2n+1) > th {
- background-color: $offwhite;
-}
-
/* Rules for OpenID logo */
.openid_logo {
.richtext,
.prose {
code {
- font-size: 13px;
background: $lightgrey;
padding: 2px 3px;
}
pre {
- font-size: 13px;
background: $lightgrey;
padding: 2px 3px;
white-space: pre-wrap;
}
}
-.comments .richtext {
- margin-left: 70px;
-}
-
/* Rules for the user notes list */
.note_list {
/* Rules for the "Welcome" page */
.site-welcome, .site-fixthemap {
- .center {
- text-align: center;
- .sprite {
- float: none;
- margin: auto;
- }
- }
-
.sprite {
background-image: image-url("welcome-sprite.png");
background-size: 500px 250px;
display: block;
- float: left;
}
.icon-list {
/* no-r2 */ background-position: -350px 0;
}
- .start-mapping {
- margin: auto;
- cursor: pointer;
- border: none;
- padding: 20px 40px;
- font-size: 30px;
- text-decoration: none;
- }
-
.icon.note {
background-color: #333;
border-radius: 4px;