Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mobile view: moved user name on second line

  • Loading branch information...
commit 22ac40f35cd3d6cde22e94a4439924fb5df3bb96 1 parent ff5dc54
@Schlaefer authored
View
58 app/View/Elements/entry/thread_line_cached.ctp
@@ -16,32 +16,36 @@
// echo $this->Html->link($entry_sub['User']['username'], '/users/view/'. $entry_sub['User']['id']);
/* <a href="<?php echo $this->request->webroot; ?>users/view/<?php echo $entry_sub['User']['id']; ?>" ><?php echo $entry_sub['User']['username']; ?></a> */
?>
-<span class="thread_line-username">
- –
-<?php echo $entry_sub['User']['username']; ?>
-</span>
-<?php
- if ( $level === 0 ) :
- ?>
- <span class='category_acs_<?php echo $entry_sub['Category']['accession']; ?>'
- title="<?php echo $entry_sub['Category']['description']; ?> (<?php echo __d('nondynamic', 'category_acs_'.$entry_sub['Category']['accession'].'_exp'); ?>)">
- (<?php echo $entry_sub['Category']['category']; ?>)
- </span>
- <?php endif ?>
-<span class="thread_line-post">
-
-<?php
- // normal time output
- echo $this->TimeH->formatTime($entry_sub['Entry']['time']);
+<span class="mobile-nl">
+ <span class="thread_line-username">
+ <span class="mobile-hide">
+ –
+ </span>
+ <?php echo $entry_sub['User']['username']; ?>
+ </span>
+ <?php
+ if ( $level === 0 ) :
+ ?>
+ <span class='category_acs_<?php echo $entry_sub['Category']['accession']; ?>'
+ title="<?php echo $entry_sub['Category']['description']; ?> (<?php echo __d('nondynamic', 'category_acs_'.$entry_sub['Category']['accession'].'_exp'); ?>)">
+ (<?php echo $entry_sub['Category']['category']; ?>)
+ </span>
+ <?php endif ?>
+ <span class="thread_line-post">
- // the schlaefer awe-some-o macnemo shipbell time output
- /* <span title="<?php echo $this->TimeH->formatTime($entry_sub['Entry']['time']); ?>"><?php echo $this->TimeH->formatTime($entry_sub['Entry']['time'], 'glasen'); ?>
- </span> */
-?>
- <?php if ( $entry_sub['Entry']['fixed'] ) : ?>
- <i class="icon-pushpin" title="<?php echo __('fixed'); ?>"></i>
- <?php endif; ?>
-<?php if ( $entry_sub['Entry']['nsfw'] ): ?>
- <span class="sprite-nbs-explicit" title="<?php echo __('entry_nsfw_title') ?>"></span>
- <?php endif; ?>
+ <?php
+ // normal time output
+ echo $this->TimeH->formatTime($entry_sub['Entry']['time']);
+
+ // the schlaefer awe-some-o macnemo shipbell time output
+ /* <span title="<?php echo $this->TimeH->formatTime($entry_sub['Entry']['time']); ?>"><?php echo $this->TimeH->formatTime($entry_sub['Entry']['time'], 'glasen'); ?>
+ </span> */
+ ?>
+ <?php if ( $entry_sub['Entry']['fixed'] ) : ?>
+ <i class="icon-pushpin" title="<?php echo __('fixed'); ?>"></i>
+ <?php endif; ?>
+ <?php if ( $entry_sub['Entry']['nsfw'] ): ?>
+ <span class="sprite-nbs-explicit" title="<?php echo __('entry_nsfw_title') ?>"></span>
+ <?php endif; ?>
+ </span>
</span>
View
28 app/View/Themed/Default/webroot/css/src/partials/_tablet.scss
@@ -1,4 +1,25 @@
/*******************************************************************************
+ * Mobile
+ ******************************************************************************/
+
+@media only screen and (max-width: 480px),
+only screen and (device-width: 768px) {
+ .mobile-nl {
+ display: block;
+ }
+ .mobile-hide {
+ display: none;
+ }
+
+ .thread_line-username {
+ margin-left: 0.5em;
+ }
+ }
+
+/******************************************************************************/
+
+
+/*******************************************************************************
* Phone
******************************************************************************/
@@ -13,11 +34,6 @@
padding-left: 30px;
padding-bottom: 2px;
}
-
- .thread_line-post {
- display: block;
- margin-left: 1em;
- }
}
/******************************************************************************/
@@ -44,8 +60,6 @@
}
.thread_line-post {
- display: block;
- margin-left: 1em;
line-height: 14px !important;
}
}
View
3  app/View/Themed/Default/webroot/css/stylesheets/theme.css
2 additions, 1 deletion not shown
View
3  app/View/Themed/Macnemo/webroot/css/stylesheets/theme.css
2 additions, 1 deletion not shown
Please sign in to comment.
Something went wrong with that request. Please try again.