dvla_internal_frontend_toolkit 1.0.7 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/images/examples/dialog.png +0 -0
- data/app/assets/images/examples/fixed.png +0 -0
- data/app/assets/images/examples/fluid.png +0 -0
- data/app/assets/stylesheets/elements/_data.scss +2 -0
- data/app/assets/stylesheets/elements/_filters.scss +2 -0
- data/app/assets/stylesheets/elements/_layout.scss +4 -3
- data/app/assets/stylesheets/elements/_navigation.scss +2 -0
- data/app/assets/stylesheets/styleguide/_styleguide.scss +41 -1
- data/app/views/layouts/erb/layout-dialog.html.erb +52 -42
- data/app/views/layouts/erb/layout-fixed.html.erb +59 -49
- data/app/views/layouts/erb/layout-fluid.html.erb +53 -41
- data/app/views/layouts/nunjucks/layout-dialog.html +49 -57
- data/app/views/layouts/nunjucks/layout-fixed.html +51 -59
- data/app/views/layouts/nunjucks/layout-fluid.html +50 -56
- data/lib/dvla_internal_frontend_toolkit/version.rb +1 -1
- metadata +5 -8
- data/app/views/layouts/erb/layout-fluid-tabs-left.html.erb +0 -64
- data/app/views/layouts/erb/layout-fluid-tabs-top.html.erb +0 -62
- data/app/views/layouts/erb/layout-fluid-tabs.html.erb +0 -74
- data/app/views/layouts/nunjucks/layout-fluid-tabs-left.html +0 -82
- data/app/views/layouts/nunjucks/layout-fluid-tabs-top.html +0 -79
- data/app/views/layouts/nunjucks/layout-fluid-tabs.html +0 -89
@@ -1,62 +0,0 @@
|
|
1
|
-
<%= yield :top_of_page %>
|
2
|
-
|
3
|
-
<html lang="en">
|
4
|
-
<head>
|
5
|
-
<title><%= yield :page_title %> </title>
|
6
|
-
<meta name="viewport" content="width=device-width" />
|
7
|
-
<meta charset="utf-8">
|
8
|
-
<%= yield :head %>
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body class="<%= yield :body_classes %>">
|
12
|
-
<script>
|
13
|
-
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
|
14
|
-
</script>
|
15
|
-
<%= yield :body_start %>
|
16
|
-
|
17
|
-
<header role="banner" id="global-header" class="<%= yield :header_class%>">
|
18
|
-
<div id="header-wrapper">
|
19
|
-
<div id="header-contents">
|
20
|
-
<div id="header-float-left">
|
21
|
-
<div id="header-logo">
|
22
|
-
<a href="/" title="Home" id="logo" class="content">
|
23
|
-
<div id="coat-of-arms" alt=""></div>
|
24
|
-
<div class="name">DVLA</div>
|
25
|
-
</a>
|
26
|
-
<div id="header-application-title">
|
27
|
-
<%= yield :header_application_title %>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
<div id="header-search">
|
31
|
-
<%= yield :header_search %>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
<div id="header-float-right">
|
35
|
-
<div id="user-account">
|
36
|
-
<%= yield :header_user_account %>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
<% if content_for?(:tabs_top) %>
|
42
|
-
<%= yield :tabs_top %>
|
43
|
-
<% else %>
|
44
|
-
<ul>
|
45
|
-
<li><a href="#">Tab title one</a></li>
|
46
|
-
<li class="active"><a href="#">Tab title two</a></li>
|
47
|
-
<li><a href="#">Tab title three</a></li>
|
48
|
-
<li><a href="#">Tab title four</a></li>
|
49
|
-
</ul>
|
50
|
-
<% end %>
|
51
|
-
</header>
|
52
|
-
|
53
|
-
<%= yield :after_header %>
|
54
|
-
|
55
|
-
<main id="content">
|
56
|
-
<div class="container-fluid">
|
57
|
-
<%= yield :content %>
|
58
|
-
</div>
|
59
|
-
</main>
|
60
|
-
</body>
|
61
|
-
|
62
|
-
</html>
|
@@ -1,74 +0,0 @@
|
|
1
|
-
<%= yield :top_of_page %>
|
2
|
-
|
3
|
-
<html lang="en">
|
4
|
-
<head>
|
5
|
-
<title><%= yield :page_title %> </title>
|
6
|
-
<meta name="viewport" content="width=device-width" />
|
7
|
-
<meta charset="utf-8">
|
8
|
-
<%= yield :head %>
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body class="<%= yield :body_classes %>">
|
12
|
-
<script>
|
13
|
-
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
|
14
|
-
</script>
|
15
|
-
<%= yield :body_start %>
|
16
|
-
|
17
|
-
<header role="banner" id="global-header" class="<%= yield :header_class%>">
|
18
|
-
<div id="header-wrapper">
|
19
|
-
<div id="header-contents">
|
20
|
-
<div id="header-float-left">
|
21
|
-
<div id="header-logo">
|
22
|
-
<a href="/" title="Home" id="logo" class="content">
|
23
|
-
<div id="coat-of-arms" alt=""></div>
|
24
|
-
<div class="name">DVLA</div>
|
25
|
-
</a>
|
26
|
-
<div id="header-application-title">
|
27
|
-
<%= yield :header_application_title %>
|
28
|
-
</div>
|
29
|
-
</div>
|
30
|
-
<div id="header-search">
|
31
|
-
<%= yield :header_search %>
|
32
|
-
</div>
|
33
|
-
</div>
|
34
|
-
<div id="header-float-right">
|
35
|
-
<div id="user-account">
|
36
|
-
<%= yield :header_user_account %>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
<% if content_for?(:tabs_top) %>
|
42
|
-
<%= yield :tabs_top %>
|
43
|
-
<% else %>
|
44
|
-
<ul>
|
45
|
-
<li><a href="#">Tab title one</a></li>
|
46
|
-
<li class="active"><a href="#">Tab title two</a></li>
|
47
|
-
<li><a href="#">Tab title three</a></li>
|
48
|
-
<li><a href="#">Tab title four</a></li>
|
49
|
-
</ul>
|
50
|
-
<% end %>
|
51
|
-
</header>
|
52
|
-
|
53
|
-
<%= yield :after_header %>
|
54
|
-
|
55
|
-
<main id="content">
|
56
|
-
<div class="side-bar">
|
57
|
-
<% if content_for?(:tabs_left) %>
|
58
|
-
<%= yield :tabs_left %>
|
59
|
-
<% else %>
|
60
|
-
<ul>
|
61
|
-
<li><a href="#">Tab title one</a></li>
|
62
|
-
<li class="active"><a href="#">Tab title two</a></li>
|
63
|
-
<li><a href="#">Tab title three</a></li>
|
64
|
-
<li><a href="#">Tab title four</a></li>
|
65
|
-
</ul>
|
66
|
-
<% end %>
|
67
|
-
</div>
|
68
|
-
<div class="container-fluid">
|
69
|
-
<%= yield :content %>
|
70
|
-
</div>
|
71
|
-
</main>
|
72
|
-
</body>
|
73
|
-
|
74
|
-
</html>
|
@@ -1,82 +0,0 @@
|
|
1
|
-
{% block top_of_page %}{% endblock %}
|
2
|
-
|
3
|
-
<html lang="en">
|
4
|
-
<head>
|
5
|
-
<title>{% block page_title %} {% endblock %}</title>
|
6
|
-
<meta name="viewport" content="width=device-width" />
|
7
|
-
<meta charset="utf-8">
|
8
|
-
{% block head %} {% endblock %}
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body class="{% block body_classes %}{% endblock %}">
|
12
|
-
<script>
|
13
|
-
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
|
14
|
-
</script>
|
15
|
-
{% block body_start %}{% endblock %}
|
16
|
-
|
17
|
-
<header role="banner" id="global-header" class="{% block header_class %}{% endblock %}">
|
18
|
-
<div id="header-wrapper">
|
19
|
-
<div id="header-contents">
|
20
|
-
<div id="header-float-left">
|
21
|
-
<div id="header-logo">
|
22
|
-
<a href="/" title="Home" id="logo" class="content">
|
23
|
-
<div id="coat-of-arms" alt=""></div>
|
24
|
-
<div class="name">DVLA</div>
|
25
|
-
</a>
|
26
|
-
{% if show_header_application_title %}
|
27
|
-
<div id="header-application-title">
|
28
|
-
{% block header_application_title %}<a href="#" title="Service home">SERVICE</a>{% endblock %}
|
29
|
-
</div>
|
30
|
-
{% endif %}
|
31
|
-
</div>
|
32
|
-
{% if show_header_search %}
|
33
|
-
<div id="header-search">
|
34
|
-
{% block header_search %}
|
35
|
-
<form>
|
36
|
-
<input type="text" placeholder="Search" />
|
37
|
-
<span class="search-btn"></span>
|
38
|
-
</form>
|
39
|
-
{% endblock %}
|
40
|
-
</div>
|
41
|
-
{% endif %}
|
42
|
-
</div>
|
43
|
-
<div id="header-float-right">
|
44
|
-
{% if show_header_user_account %}
|
45
|
-
<div id="user-account">
|
46
|
-
{% block header_user_account %}
|
47
|
-
<div id="logout">
|
48
|
-
<a href="#">Log out</a>
|
49
|
-
</div>
|
50
|
-
<div id="user-account-email">
|
51
|
-
demo.email@dvla.gov.uk
|
52
|
-
</div>
|
53
|
-
{% endblock %}
|
54
|
-
</div>
|
55
|
-
{% endif %}
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
</header>
|
60
|
-
|
61
|
-
{% block after_header %}
|
62
|
-
|
63
|
-
{% endblock %}
|
64
|
-
|
65
|
-
<main id="content">
|
66
|
-
<div class="side-bar">
|
67
|
-
{% block tabs_left %}
|
68
|
-
<ul>
|
69
|
-
<li><a href="#">Tab title one</a></li>
|
70
|
-
<li class="active"><a href="#">Tab title two</a></li>
|
71
|
-
<li><a href="#">Tab title three</a></li>
|
72
|
-
<li><a href="#">Tab title four</a></li>
|
73
|
-
</ul>
|
74
|
-
{% endblock %}
|
75
|
-
</div>
|
76
|
-
<div class="container-fluid">
|
77
|
-
{% block content %}{% endblock %}
|
78
|
-
</div>
|
79
|
-
</main>
|
80
|
-
</body>
|
81
|
-
|
82
|
-
</html>
|
@@ -1,79 +0,0 @@
|
|
1
|
-
{% block top_of_page %}{% endblock %}
|
2
|
-
|
3
|
-
<html lang="en">
|
4
|
-
<head>
|
5
|
-
<title>{% block page_title %} {% endblock %}</title>
|
6
|
-
<meta name="viewport" content="width=device-width" />
|
7
|
-
<meta charset="utf-8">
|
8
|
-
{% block head %} {% endblock %}
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body class="{% block body_classes %}{% endblock %}">
|
12
|
-
<script>
|
13
|
-
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
|
14
|
-
</script>
|
15
|
-
{% block body_start %}{% endblock %}
|
16
|
-
|
17
|
-
<header role="banner" id="global-header" class="{% block header_class %}{% endblock %}">
|
18
|
-
<div id="header-wrapper">
|
19
|
-
<div id="header-contents">
|
20
|
-
<div id="header-float-left">
|
21
|
-
<div id="header-logo">
|
22
|
-
<a href="/" title="Home" id="logo" class="content">
|
23
|
-
<div id="coat-of-arms" alt=""></div>
|
24
|
-
<div class="name">DVLA</div>
|
25
|
-
</a>
|
26
|
-
{% if show_header_application_title %}
|
27
|
-
<div id="header-application-title">
|
28
|
-
{% block header_application_title %}<a href="#" title="Service home">SERVICE</a>{% endblock %}
|
29
|
-
</div>
|
30
|
-
{% endif %}
|
31
|
-
</div>
|
32
|
-
{% if show_header_search %}
|
33
|
-
<div id="header-search">
|
34
|
-
{% block header_search %}
|
35
|
-
<form>
|
36
|
-
<input type="text" placeholder="Search" />
|
37
|
-
<span class="search-btn"></span>
|
38
|
-
</form>
|
39
|
-
{% endblock %}
|
40
|
-
</div>
|
41
|
-
{% endif %}
|
42
|
-
</div>
|
43
|
-
<div id="header-float-right">
|
44
|
-
{% if show_header_user_account %}
|
45
|
-
<div id="user-account">
|
46
|
-
{% block header_user_account %}
|
47
|
-
<div id="logout">
|
48
|
-
<a href="#">Log out</a>
|
49
|
-
</div>
|
50
|
-
<div id="user-account-email">
|
51
|
-
demo.email@dvla.gov.uk
|
52
|
-
</div>
|
53
|
-
{% endblock %}
|
54
|
-
</div>
|
55
|
-
{% endif %}
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
{% block tabs_top %}
|
60
|
-
<ul>
|
61
|
-
<li><a href="#">Tab title one</a></li>
|
62
|
-
<li class="active"><a href="#">Active tab</a></li>
|
63
|
-
<li><a href="#">Tab title two</a></li>
|
64
|
-
</ul>
|
65
|
-
{% endblock %}
|
66
|
-
</header>
|
67
|
-
|
68
|
-
{% block after_header %}
|
69
|
-
|
70
|
-
{% endblock %}
|
71
|
-
|
72
|
-
<main id="content">
|
73
|
-
<div class="container-fluid">
|
74
|
-
{% block content %}{% endblock %}
|
75
|
-
</div>
|
76
|
-
</main>
|
77
|
-
</body>
|
78
|
-
|
79
|
-
</html>
|
@@ -1,89 +0,0 @@
|
|
1
|
-
{% block top_of_page %}{% endblock %}
|
2
|
-
|
3
|
-
<html lang="en">
|
4
|
-
<head>
|
5
|
-
<title>{% block page_title %} {% endblock %}</title>
|
6
|
-
<meta name="viewport" content="width=device-width" />
|
7
|
-
<meta charset="utf-8">
|
8
|
-
{% block head %} {% endblock %}
|
9
|
-
</head>
|
10
|
-
|
11
|
-
<body class="{% block body_classes %}{% endblock %}">
|
12
|
-
<script>
|
13
|
-
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
|
14
|
-
</script>
|
15
|
-
{% block body_start %}{% endblock %}
|
16
|
-
|
17
|
-
<header role="banner" id="global-header" class="{% block header_class %}{% endblock %}">
|
18
|
-
<div id="header-wrapper">
|
19
|
-
<div id="header-contents">
|
20
|
-
<div id="header-float-left">
|
21
|
-
<div id="header-logo">
|
22
|
-
<a href="/" title="Home" id="logo" class="content">
|
23
|
-
<div id="coat-of-arms" alt=""></div>
|
24
|
-
<div class="name">DVLA</div>
|
25
|
-
</a>
|
26
|
-
{% if show_header_application_title %}
|
27
|
-
<div id="header-application-title">
|
28
|
-
{% block header_application_title %}<a href="#" title="Service home">SERVICE</a>{% endblock %}
|
29
|
-
</div>
|
30
|
-
{% endif %}
|
31
|
-
</div>
|
32
|
-
{% if show_header_search %}
|
33
|
-
<div id="header-search">
|
34
|
-
{% block header_search %}
|
35
|
-
<form>
|
36
|
-
<input type="text" placeholder="Search" />
|
37
|
-
<span class="search-btn"></span>
|
38
|
-
</form>
|
39
|
-
{% endblock %}
|
40
|
-
</div>
|
41
|
-
{% endif %}
|
42
|
-
</div>
|
43
|
-
<div id="header-float-right">
|
44
|
-
{% if show_header_user_account %}
|
45
|
-
<div id="user-account">
|
46
|
-
{% block header_user_account %}
|
47
|
-
<div id="logout">
|
48
|
-
<a href="#">Log out</a>
|
49
|
-
</div>
|
50
|
-
<div id="user-account-email">
|
51
|
-
demo.email@dvla.gov.uk
|
52
|
-
</div>
|
53
|
-
{% endblock %}
|
54
|
-
</div>
|
55
|
-
{% endif %}
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
{% block tabs_top %}
|
60
|
-
<ul>
|
61
|
-
<li><a href="#">Tab title one</a></li>
|
62
|
-
<li class="active"><a href="#">Active tab</a></li>
|
63
|
-
<li><a href="#">Tab title two</a></li>
|
64
|
-
</ul>
|
65
|
-
{% endblock %}
|
66
|
-
</header>
|
67
|
-
|
68
|
-
{% block after_header %}
|
69
|
-
|
70
|
-
{% endblock %}
|
71
|
-
|
72
|
-
<main id="content">
|
73
|
-
<div class="side-bar">
|
74
|
-
{% block tabs_left %}
|
75
|
-
<ul>
|
76
|
-
<li><a href="#">Tab title one</a></li>
|
77
|
-
<li class="active"><a href="#">Tab title two</a></li>
|
78
|
-
<li><a href="#">Tab title three</a></li>
|
79
|
-
<li><a href="#">Tab title four</a></li>
|
80
|
-
</ul>
|
81
|
-
{% endblock %}
|
82
|
-
</div>
|
83
|
-
<div class="container-fluid">
|
84
|
-
{% block content %}{% endblock %}
|
85
|
-
</div>
|
86
|
-
</main>
|
87
|
-
</body>
|
88
|
-
|
89
|
-
</html>
|