浏览代码

some changes for screen-readers

joel
Simon Bowie 1年前
父节点
当前提交
93cf64b15c
共有 3 个文件被更改,包括 17 次插入7 次删除
  1. +9
    -0
      web/app/static/styles/main.css
  2. +2
    -1
      web/app/templates/base.html
  3. +6
    -6
      web/app/templates/index.html

+ 9
- 0
web/app/static/styles/main.css 查看文件

@@ -1507,4 +1507,13 @@ a.menuitem:hover {
.lg\:pr-8 {
padding-right: 2rem;
}
}

.sr-only{
position:absolute;
left:-10000px;
top:auto;
width:1px;
height:1px;
overflow:hidden;
}

+ 2
- 1
web/app/templates/base.html 查看文件

@@ -118,9 +118,10 @@
</div> -->

<form action="{{ url_for('search.basic_search') }}" class="hidden lg:block">
<label for="siteSearch" class="sr-only">Search</label>
<input type="text" name="query" class="text-center h-full text-base border-l-2 border-black pl-1"
placeholder="Search">
<input class="hidden" type="submit" hidden />
<input class="hidden" type="submit" value="Enter search" hidden />
</form>
{% endmacro %}


+ 6
- 6
web/app/templates/index.html 查看文件

@@ -15,13 +15,13 @@


{% if view == 'list' %}
{% for resource in resources %}
{{ resource_list(resource, loop, false) }}
{% endfor %}
{% for resource in resources %}
{{ resource_list(resource, loop, false) }}
{% endfor %}
{% else %}
{% for resource in resources %}
{{ resource_with_related(resource, loop, false) }}
{% endfor %}
{% for resource in resources %}
{{ resource_with_related(resource, loop, false) }}
{% endfor %}
{% endif %}

</div>

正在加载...
取消
保存