Improved accessibility, darker label color

This commit is contained in:
echarp 2017-06-02 13:15:23 +02:00
parent 89721a3005
commit 664be5db70
37 changed files with 237966 additions and 35 deletions

View File

@ -141,8 +141,9 @@ fieldset
box-shadow: 1px 1px 5px gray
border-radius: 0.4em
legend
color: gray
color: #666
padding: 0 1em
font-size: larger
background-color: white
h2
margin-top: 0

View File

@ -22,7 +22,7 @@ body.mce-content-body
margin-bottom: 0
.field
color: #777
color: #666
border: $border
display: flex
flex-wrap: wrap
@ -44,7 +44,7 @@ body.mce-content-body
width: 100%
display: block
input, textarea, select, a.button, .actions > button, .radios, .mce-tinymce, div.tagsinput
input, textarea, select, a.button, .actions > button, .radios, .mce-tinymce, div.tagsinput, .ui-autocomplete-input
border: solid 0.25em transparent
outline: none
padding: 0.25em

View File

@ -9,13 +9,11 @@
max-width: 3em
@media all and (max-width: 900px)
body
font-size: smaller
body
border: none
margin: 0
padding: 1%
font-size: smaller
main ul
margin-left: 0
@ -98,7 +96,6 @@
padding: 0.4em 0
.field
display: block
label
width: auto
display: block

View File

@ -1,3 +1,19 @@
table tfoot td canvas
width: 100% !important
background-color: white
table.list.dates
width: 100%
thead th
height: 3em
padding: 0 !important
font-size: initial
transform: rotate(-45deg)
tbody th:first-child
font-size: large
text-align: right
tbody td
padding: 0
a
padding: 0 1em
display: block
tfoot td canvas
width: 100% !important
background-color: white

View File

@ -16,6 +16,7 @@ p.tags a:last-child:after
div.tagsinput
height: auto !important
border: none
margin: 0
padding: 0
display: inline-block
@ -26,8 +27,17 @@ div.tagsinput
padding: 0.5em
font-size: inherit
font-family: inherit
#event_tag_list_addTag
float: none
text-align: left
&:first-child #event_tag_list_tag
width: 100% !important
input, .ui-autocomplete-input
padding: 0.5em
width: 30% !important
border: solid 0.25em transparent !important
font-size: inherit
min-width: 8em
margin-right: 0
margin-bottom: 0
&:focus
border-color: #F0F8FF !important

View File

@ -1,19 +1,20 @@
%h2=t '.title'
%h2= t '.title'
= form_for resource, as: resource_name, url: session_path(resource_name) do |f|
.field.login
= f.label :login
= f.text_field :login, autofocus: true
%fieldset
= form_for resource, as: resource_name, url: session_path resource_name do |f|
.field.login
= f.label :login
= f.text_field :login, autofocus: true
.field.password
= f.label :password
= f.password_field :password
.field.password
= f.label :password
= f.password_field :password
- if devise_mapping.rememberable?
.field
= f.check_box :remember_me
= f.label :remember_me
- if devise_mapping.rememberable?
.field
= f.check_box :remember_me
= f.label :remember_me
.actions= f.submit t('.sign_in')
.actions= f.submit t('.sign_in')
= render 'devise/shared/links'

View File

@ -69,7 +69,7 @@
= f.email_field :submitter
.field.tags{ title: t('.tags_helper') }
= f.label :tags
= f.label :tags, for: 'event_tag_list_tag'
= f.text_field :tag_list, value: f.object.tag_list.to_s
- unless @event.moderated?

View File

@ -62,7 +62,7 @@
= f.email_field :submitter
.field.tags{ title: t('.tags_helper') }
= f.label :tags
= f.label :tags, for: 'event_tag_list_tag'
= f.text_field :tag_list, value: f.object.tag_list.to_s
.field.active

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,23 @@
(function() {
$(document).on('turbolinks:load', function() {
return tinyMCE.init({
schema: 'html5',
height: '40em',
menubar: '',
branding: false,
language: 'fr_FR',
selector: 'input.description',
content_css: '/assets/application-7505e1a7354fe38be27a875cafbf4a3643c8349791b2d35273d929ab5f9590cd.css',
entity_encoding: 'raw',
add_unload_trigger: true,
browser_spellcheck: true,
toolbar: [' cut copy paste | undo redo | searchreplace | link image media charmap table | code visualblocks preview fullscreen', ' removeformat | bold italic strikethrough | superscript subscript | bullist numlist | alignleft aligncenter alignright alignjustify alignnone | outdent indent'],
plugins: 'lists, advlist, autolink, link, image, charmap, paste, print, preview, table, fullscreen, searchreplace, media, insertdatetime, visualblocks, wordcount, contextmenu, code'
});
});
$(document).on('turbolinks:before-cache', function() {
return tinymce.remove();
});
}).call(this);

View File

@ -0,0 +1,23 @@
(function() {
$(document).on('turbolinks:load', function() {
return tinyMCE.init({
schema: 'html5',
height: '40em',
menubar: '',
branding: false,
language: 'fr_FR',
selector: 'input.description',
content_css: '/assets/application-453868b5e8524811b06953b99485725a8bb6787b4936274042f7695531abcda3.css',
entity_encoding: 'raw',
add_unload_trigger: true,
browser_spellcheck: true,
toolbar: [' cut copy paste | undo redo | searchreplace | link image media charmap table | code visualblocks preview fullscreen', ' removeformat | bold italic strikethrough | superscript subscript | bullist numlist | alignleft aligncenter alignright alignjustify alignnone | outdent indent'],
plugins: 'lists, advlist, autolink, link, image, charmap, paste, print, preview, table, fullscreen, searchreplace, media, insertdatetime, visualblocks, wordcount, contextmenu, code'
});
});
$(document).on('turbolinks:before-cache', function() {
return tinymce.remove();
});
}).call(this);

View File

@ -1 +1 @@
plugin-f0c699e1edeacfaf2f1342019986c8c41653ae723c8befc205dee077de317ab8.js
plugin-49d7ef5688ed83d2a102b0c9702dc3aac70a33c22a7ef4885d6528a61b8210e2.js

View File

@ -1 +1 @@
plugin-f0c699e1edeacfaf2f1342019986c8c41653ae723c8befc205dee077de317ab8.js.gz
plugin-49d7ef5688ed83d2a102b0c9702dc3aac70a33c22a7ef4885d6528a61b8210e2.js.gz

View File

@ -1 +1 @@
plugin-0636d8d2f31f1a5f1cd544b26f65859501ed5f6709de1999fb62229665cf6387.js
plugin-1f5b2a008fefb969d6ab704ab9a6a2b58422d2cab2aeee855df41b5778a8a4be.js

View File

@ -1 +1 @@
plugin-0636d8d2f31f1a5f1cd544b26f65859501ed5f6709de1999fb62229665cf6387.js.gz
plugin-1f5b2a008fefb969d6ab704ab9a6a2b58422d2cab2aeee855df41b5778a8a4be.js.gz

View File

@ -1 +1 @@
plugin-e7fcbdf4cba19f7049058191a9c6caab467844d60895b8a5fdaf68f22cc65ad5.js
plugin-0145ad6d2a69e9ea340a48a85dbe325781b36e111d2e669a56712a546560ad4e.js

View File

@ -1 +1 @@
plugin-e7fcbdf4cba19f7049058191a9c6caab467844d60895b8a5fdaf68f22cc65ad5.js.gz
plugin-0145ad6d2a69e9ea340a48a85dbe325781b36e111d2e669a56712a546560ad4e.js.gz

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
tinymce-7b0ac2cb27bca117f83e09588a7266024680f7dd1eac20b64ca058956be908fc.js
tinymce-e515b48024b3ad316cb91a591c31630b085b06a8e434f4a9c1feb63bc7bb0bc9.js

View File

@ -1 +1 @@
tinymce-7b0ac2cb27bca117f83e09588a7266024680f7dd1eac20b64ca058956be908fc.js.gz
tinymce-e515b48024b3ad316cb91a591c31630b085b06a8e434f4a9c1feb63bc7bb0bc9.js.gz