mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
[ticket/12155] Make the buttons bigger on touch devices.
PHPBB3-12155
This commit is contained in:
@@ -919,6 +919,8 @@ function parse_document(container)
|
||||
$(document).ready(function() {
|
||||
// Swap .nojs and .hasjs
|
||||
$('#phpbb.nojs').toggleClass('nojs hasjs');
|
||||
$('#phpbb').toggleClass('hastouch', phpbb.isTouch);
|
||||
$('#phpbb.hastouch').removeClass('notouch');
|
||||
|
||||
// Focus forms
|
||||
$('form[data-focus]:first').each(function() {
|
||||
|
@@ -52,7 +52,7 @@
|
||||
{$STYLESHEETS}
|
||||
|
||||
</head>
|
||||
<body id="phpbb" class="nojs section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}">
|
||||
<body id="phpbb" class="nojs notouch section-{SCRIPT_NAME} {S_CONTENT_DIRECTION} {BODY_CLASS}">
|
||||
|
||||
<!-- EVENT overall_header_body_before -->
|
||||
|
||||
|
@@ -170,6 +170,10 @@ ul.linklist.bulletin li.small-icon:before {
|
||||
text-indent: -9999px;
|
||||
}
|
||||
|
||||
.hastouch .post-buttons .icon-button {
|
||||
padding: 2px 8px;
|
||||
}
|
||||
|
||||
.post-buttons span {
|
||||
float: none;
|
||||
margin-right: 0;
|
||||
|
Reference in New Issue
Block a user