2019-11-27 17:19:25 +00:00
|
|
|
@import 'settings/typography-font-families';
|
|
|
|
|
|
2019-10-15 17:40:59 +01:00
|
|
|
// needed for IE10 desktop snap mode: http://menacingcloud.com/?c=cssViewportOrMetaTag
|
|
|
|
|
@-ms-viewport {
|
|
|
|
|
width: device-width;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
b,
|
|
|
|
|
strong {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abbr[title] {
|
|
|
|
|
cursor: help;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-24 14:58:47 +01:00
|
|
|
.js-enabled .js-hidden {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-15 17:40:59 +01:00
|
|
|
// To be removed when all search inputs use the GOV.UK Frontend text input component:
|
|
|
|
|
// https://design-system.service.gov.uk/components/text-input/
|
|
|
|
|
/*
|
|
|
|
|
* 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
|
|
|
|
|
* 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
|
|
|
|
|
* (include `-moz` to future-proof).
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
input[type="search"] {
|
|
|
|
|
-webkit-appearance: textfield; /* 1 */
|
|
|
|
|
-moz-box-sizing: content-box;
|
|
|
|
|
-webkit-box-sizing: content-box; /* 2 */
|
|
|
|
|
box-sizing: content-box;
|
|
|
|
|
}
|
|
|
|
|
input[type="search"]::-webkit-search-cancel-button {
|
|
|
|
|
-webkit-appearance: searchfield-cancel-button;
|
|
|
|
|
margin-right: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type="search"]::-webkit-search-decoration {
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// To be removed when all links follow the GOV.UK Frontend conventions:
|
|
|
|
|
// https://design-system.service.gov.uk/styles/typography/#links
|
|
|
|
|
a {
|
2019-11-27 16:42:07 +00:00
|
|
|
/* Give a strong clear visual idea as to what is currently in focus */
|
|
|
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
2019-11-22 17:39:48 +00:00
|
|
|
&:link {
|
|
|
|
|
color: $link-colour;
|
|
|
|
|
}
|
2019-10-24 11:33:04 +01:00
|
|
|
|
|
|
|
|
&:visited {
|
2019-11-22 17:39:48 +00:00
|
|
|
color: $link-visited-colour;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $link-hover-colour;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
color: $link-active-colour;
|
2019-10-24 11:33:04 +01:00
|
|
|
}
|
2019-11-27 16:42:07 +00:00
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
background-color: $focus-colour;
|
|
|
|
|
outline: 3px solid $focus-colour;
|
|
|
|
|
}
|
2019-10-15 17:40:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Each selector, and then the whole block when only one remains, to be removed when the
|
|
|
|
|
// element comes from the corresponding GOV.UK Frontend component:
|
|
|
|
|
// - https://design-system.service.gov.uk/components/text-input/
|
|
|
|
|
// - https://design-system.service.gov.uk/components/textarea/
|
|
|
|
|
// - https://design-system.service.gov.uk/components/select/
|
|
|
|
|
// - https://design-system.service.gov.uk/components/button/
|
|
|
|
|
|
|
|
|
|
// Global styles for form controls
|
|
|
|
|
|
|
|
|
|
input:focus,
|
|
|
|
|
textarea:focus,
|
|
|
|
|
select:focus,
|
|
|
|
|
button:focus {
|
|
|
|
|
outline: 3px solid $focus-colour;
|
|
|
|
|
outline-offset: 0;
|
|
|
|
|
}
|
2019-11-27 17:19:25 +00:00
|
|
|
|
|
|
|
|
// To be removed when all buttons follow the GOV.UK Frontend conventions
|
|
|
|
|
// - https://design-system.service.gov.uk/components/button/
|
|
|
|
|
|
|
|
|
|
button {
|
|
|
|
|
font-family: $govuk-font-family-nta;
|
|
|
|
|
}
|