Skip to content

[ticket/12155] Construct post buttons using CSS.#2469

Merged
bantu merged 21 commits intophpbb:develop-ascraeusfrom
prototech:ticket/12155
May 27, 2014
Merged

[ticket/12155] Construct post buttons using CSS.#2469
bantu merged 21 commits intophpbb:develop-ascraeusfrom
prototech:ticket/12155

Conversation

@prototech
Copy link
Copy Markdown
Contributor

@rxu
Copy link
Copy Markdown
Contributor

rxu commented May 16, 2014

Looks nice (tested locally). Would be great to get it merged into 3.1.

@bantu
Copy link
Copy Markdown
Collaborator

bantu commented May 17, 2014

Is this still work in progress?

@prototech prototech changed the title [WIP] [ticket/12155] Construct post buttons using CSS. [ticket/12155] Construct post buttons using CSS. May 17, 2014
@prototech
Copy link
Copy Markdown
Contributor Author

Should be good to go now.

@Nicofuma
Copy link
Copy Markdown
Member

looks nice

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.8s feels very slow, perhaps something like 0.5s?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@bantu
Copy link
Copy Markdown
Collaborator

bantu commented May 23, 2014

@VSEphpbb Could you review the CSS please.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If breaking up selectors onto multiple lines, I would put one selector per line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@iMattPro
Copy link
Copy Markdown
Member

The CSS changes in this PR seems to mess up the Notifications drop down.

before changes:
before

after changes:
after

@iMattPro
Copy link
Copy Markdown
Member

In PM's drop down tools, text (ie: Print view) is too small. In posts/viewtopic, drop down tool text is 11px, but in PMs, text is 10px. So PM tool menu font size is being over-ridden somewhere

@nickvergessen
Copy link
Copy Markdown
Contributor

Big buttons use <span></span>{L_BUTTON_PM_NEW} small ones <span>{L_REPORT_POST}</span>
Since we don't support IE7 and below anymore: Can we get rid of the span or use it the same way (<span>text</span>) everywhere?

@nickvergessen
Copy link
Copy Markdown
Contributor

Don't know if it is possible, but I'd like to see the buttons image-class moved to the <a>-Tag.
So instead of

        <div class="<!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->">
            <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%7BU_POST_REPLY_TOPIC%7D" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->" class="button icon-button">
                <span></span><!-- IF S_IS_LOCKED -->{L_BUTTON_TOPIC_LOCKED}<!-- ELSE -->{L_BUTTON_POST_REPLY}<!-- ENDIF -->
            </a>
        </div>

In the best case, we would have:

        <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%7BU_POST_REPLY_TOPIC%7D" title="<!-- IF S_IS_LOCKED -->{L_TOPIC_LOCKED}<!-- ELSE -->{L_POST_REPLY}<!-- ENDIF -->" class="button icon-button <!-- IF S_IS_LOCKED -->locked-icon<!-- ELSE -->reply-icon<!-- ENDIF -->">
            <!-- IF S_IS_LOCKED -->{L_BUTTON_TOPIC_LOCKED}<!-- ELSE -->{L_BUTTON_POST_REPLY}<!-- ENDIF -->
        </a>

So you can make a simple <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F"> look like a button.

But this might also be a task for a new PR

@nickvergessen
Copy link
Copy Markdown
Contributor

@prototech please post, when this is ready for merge

prototech added 12 commits May 27, 2014 07:17
This was in place for IE7 due to the use of :after for inserting the button
icon. IE7 does not support :after, so the hack removed the extra padding that
made room for the icon. We no longer use :after for the icon, so this is no
longer an issue... not to mention that IE7 is no longer supported.

PHPBB3-12155
bantu added a commit to bantu/phpbb that referenced this pull request May 27, 2014
[ticket/12155] Construct post buttons using CSS.

* prototech/ticket/12155: (21 commits)
  [ticket/12155] Remove use of !important and move reddish color back to .button
  [ticket/12155] Reposition the button icons to the left side while we're at it.
  [ticket/12155] Get rid of line-height value causing alignment issues in FF.
  [ticket/12155] Get rid of the <span> where possible and fix buttons in Safari.
  [ticket/12155] Fix misplaced semicolon and ensure that value comparison works.
  [ticket/12155] Combine the post and topic/PM button icons into a single sprite
  [ticket/12155] Move icon class directly to <a> and use <span> consistently.
  [ticket/12155] Remove star hack from padding-right property of .button.
  [ticket/12155] Fix tabbing and put one selector per line if string is too long
  [ticket/12155] Make opacity transition faster and fix background image paths.
  [ticket/12155] Keep the selection method consistent with the one below it.
  [ticket/12155] Fade out the buttons when leaving the post.
  [ticket/12155] Display the buttons only when hovering the post.
  [ticket/12155] Make the buttons bigger on touch devices.
  [ticket/12155] Clean up icons.
  [ticket/12155] Remove unused font.
  [ticket/12155] Remove obsolete images.
  [ticket/12155] Use the new .button class as the basis for the post buttons.
  [ticket/12155] Move existing button style to a more generic class.
  [ticket/12155] Remove obsolete language images.
  ...
@bantu
Copy link
Copy Markdown
Collaborator

bantu commented May 27, 2014

I have verified that phpBB/styles/prosilver/theme/images/icons_button.png which is the only image that is getting added here, does not contain an ICC profile. Ref #2498

bantu added a commit that referenced this pull request May 27, 2014
[ticket/12155] Construct post buttons using CSS.

* prototech/ticket/12155: (21 commits)
  [ticket/12155] Remove use of !important and move reddish color back to .button
  [ticket/12155] Reposition the button icons to the left side while we're at it.
  [ticket/12155] Get rid of line-height value causing alignment issues in FF.
  [ticket/12155] Get rid of the <span> where possible and fix buttons in Safari.
  [ticket/12155] Fix misplaced semicolon and ensure that value comparison works.
  [ticket/12155] Combine the post and topic/PM button icons into a single sprite
  [ticket/12155] Move icon class directly to <a> and use <span> consistently.
  [ticket/12155] Remove star hack from padding-right property of .button.
  [ticket/12155] Fix tabbing and put one selector per line if string is too long
  [ticket/12155] Make opacity transition faster and fix background image paths.
  [ticket/12155] Keep the selection method consistent with the one below it.
  [ticket/12155] Fade out the buttons when leaving the post.
  [ticket/12155] Display the buttons only when hovering the post.
  [ticket/12155] Make the buttons bigger on touch devices.
  [ticket/12155] Clean up icons.
  [ticket/12155] Remove unused font.
  [ticket/12155] Remove obsolete images.
  [ticket/12155] Use the new .button class as the basis for the post buttons.
  [ticket/12155] Move existing button style to a more generic class.
  [ticket/12155] Remove obsolete language images.
  ...
@bantu bantu merged commit 7518648 into phpbb:develop-ascraeus May 27, 2014
@bantu
Copy link
Copy Markdown
Collaborator

bantu commented May 27, 2014

Great work. :-)

PayBas added a commit to PayBas/phpbb that referenced this pull request May 27, 2014
PayBas added a commit to PayBas/phpbb that referenced this pull request Jun 5, 2014
PayBas added a commit to PayBas/phpbb that referenced this pull request Jun 10, 2014
PayBas added a commit to PayBas/phpbb that referenced this pull request Jun 15, 2014
@prototech prototech deleted the ticket/12155 branch June 21, 2014 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants