/
_assets.scss
82 lines (72 loc) · 2.04 KB
/
_assets.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
////
/// @group settings/assets
////
/// Path to the assets directory, with trailing slash.
///
/// This is the directory where the images and fonts subdirectories live. You
/// will need to make this directory available via your application – see the
/// README for details.
///
/// @type String
/// @access public
$govuk-assets-path: "/assets/" !default;
/// Path to the images folder, with trailing slash.
///
/// @type String
/// @access public
$govuk-images-path: "#{$govuk-assets-path}images/" !default;
/// Path to the fonts folder, with trailing slash.
///
/// @type String
/// @access public
$govuk-fonts-path: "#{$govuk-assets-path}fonts/" !default;
/// Custom image URL function
///
/// If the built-in image URL helper does not meet your needs, you can specify
/// the name of a custom handler – either built in or by writing your own
/// function.
///
/// If you are writing your own handler, ensure that it returns a string wrapped
/// with `url()`
///
/// @type String
///
/// @example scss - Rails asset handling
/// $govuk-image-url-function: 'image-url';
///
/// @example scss - Custom asset handling
///
/// @function my-url-handler($filename) {
/// // Some custom URL handling
/// @return url('example.jpg');
/// }
///
/// $govuk-image-url-function: 'my-url-handler';
///
/// @access public
$govuk-image-url-function: false !default;
/// Custom font URL function
///
/// If the built-in font URL helper does not meet your needs, you can specify
/// the name of a custom handler – either built in or by writing your own
/// function.
///
/// If you are writing your own handler, ensure that it returns a string wrapped
/// with `url()`
///
/// @type String
///
/// @example scss - Rails asset handling
/// $govuk-font-url-function: 'font-url';
///
/// @example scss - Custom asset handling
///
/// @function my-url-handler($filename) {
/// // Some custom URL handling
/// @return url('example.woff');
/// }
///
/// $govuk-font-url-function: 'my-url-handler';
///
/// @access public
$govuk-font-url-function: false !default;