Skip to content

Commit

Permalink
Merge pull request #75 from dxw/fix/use-native-browser-style-for-text…
Browse files Browse the repository at this point in the history
…-highlighting

Fix/use native browser style for text highlighting
  • Loading branch information
RobjS authored Jun 4, 2020
2 parents 3dfbc6f + a39979c commit 700e7ef
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 36 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.3] - 2020-06-03

### Changed
- Native browser styles used for text highlighting

## [3.1.2] - 2020-05-01

### Changed
Expand Down
1 change: 0 additions & 1 deletion assets/css/common/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ $buttonHover:darken(govuk-colour("green"), 2); //006435
$buttonBorder:darken(govuk-colour("green"), 5); //#003618;
$blogTitleColour: $govuk-secondary-text-colour;
$placeHolderColour: $govuk-secondary-text-colour;
$selectionColour:lighten(govuk-colour("green"), 2);
$tableHeadCellColour: govuk-colour("light-grey");;
$tableCellColour: #e1e8e8;

Expand Down
48 changes: 16 additions & 32 deletions assets/css/h5bp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,6 @@ body {
line-height: 1.4;
}

/*
* Remove text-shadow in selection highlight: h5bp.com/i
* These selection rule sets have to be separate.
* Customize the background color to match your design.
*/

::-moz-selection {
background: $selectionColour;
text-shadow: none;
}

::selection {
background: $selectionColour;
text-shadow: none;
}

/*
* A better looking default horizontal rule
*/
Expand Down Expand Up @@ -217,84 +201,84 @@ textarea {
// These examples override the primary ('mobile first') styles.
// Modify as content requires.
// ========================================================================== */
//
//
// @media only screen and (min-width: 35em) {
// /* Style adjustments for viewports that meet the condition */
// }
//
//
// @media print,
// (-o-min-device-pixel-ratio: 5/4),
// (-webkit-min-device-pixel-ratio: 1.25),
// (min-resolution: 120dpi) {
// /* Style adjustments for high resolution devices */
// }
//
//
// /* ==========================================================================
// Print styles.
// Inlined to avoid required HTTP connection: h5bp.com/r
// ========================================================================== */
//
//
// @media print {
// * {
// background: transparent !important;
// color: #000 !important; /* Black prints faster: h5bp.com/s */
// box-shadow: none !important;
// text-shadow: none !important;
// }
//
//
// a,
// a:visited {
// text-decoration: underline;
// }
//
//
// a[href]:after {
// content: " (" attr(href) ")";
// }
//
//
// abbr[title]:after {
// content: " (" attr(title) ")";
// }
//
//
// /*
// * Don't show links for images, or javascript/internal links
// */
//
//
// .ir a:after,
// a[href^="javascript:"]:after,
// a[href^="#"]:after {
// content: "";
// }
//
//
// pre,
// blockquote {
// border: 1px solid $govuk-border-colour;
// page-break-inside: avoid;
// }
//
//
// thead {
// display: table-header-group; /* h5bp.com/t */
// }
//
//
// tr,
// img {
// page-break-inside: avoid;
// }
//
//
// img {
// max-width: 100% !important;
// }
//
//
// @page {
// margin: 0.5cm;
// }
//
//
// p,
// h2,
// h3 {
// orphans: 3;
// widows: 3;
// }
//
//
// h2,
// h3 {
// page-break-after: avoid;
Expand Down
2 changes: 1 addition & 1 deletion build/admin.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/main.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: This is the beta theme in use for the blogs hosted at blog.gov.uk.
* License: GNU General Public License v2.0
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Version: 3.1.2
* Version: 3.1.3
*
* GOV.UK Blogs theme, Copyright (c) 2013 HM Government (Government Digital Service)
* This theme is distributed under the terms of the GNU GPL, version 2.
Expand Down

0 comments on commit 700e7ef

Please sign in to comment.