Skip to content

Commit

Permalink
Show new element on the first row (title)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Antúnez Tarín committed Oct 18, 2019
1 parent 569b7f0 commit 8dfbc90
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 2 deletions.
1 change: 1 addition & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/resources/less/forum.less')
->route('/drafts', 'fof.drafts.view'),

(new Extend\Frontend('admin'))
Expand Down
2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions resources/less/_extension.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ============================================================================
// Extension
// ============================================================================

@media @phone {
.item-save-draft {
display: inline-block !important;
padding: (@gg-spacer-fine - (@gg-spacer-fine / @gg-spacer-fine)) 0 0 (@gg-spacer-small - (@gg-spacer-fine / @gg-spacer-fine)) !important;
margin-right: 0 !important;
border: none;
margin-top: @gg-spacer-tiny;
float: left;
background: @gg-color-light-green;

.icon {
&::before {
color: @gg-color-black;
}
}
}
}
9 changes: 9 additions & 0 deletions resources/less/_variables-flarum.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// ============================================================================
// Flarum override variables
// ============================================================================

// Breakpoints
@screen-phone-max: (@screen-tablet - 1);
@screen-tablet: @gg-breakpoint-medium;

@phone: ~"(max-width: @{screen-phone-max})";
30 changes: 30 additions & 0 deletions resources/less/_variables-gg.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// ============================================================================
// giffgaff design tokens
// ============================================================================

// Colours
@gg-color-black: #000000;
@gg-color-white: #ffffff;
@gg-color-light-pink: #eb5f8e;
@gg-color-light-green: #72b72a;
@gg-color-light-blue: #35adce;
@gg-color-yellow: #fcc31e;
@gg-color-dark-pink: #ae0d21;
@gg-color-dark-green: #007349;
@gg-color-dark-blue: #00528a;
@gg-color-orange: #ea5b25;
@gg-color-dove-grey: #666666;
@gg-color-alto: #d0d0d0;
@gg-color-wild-sand: #f5f5f5;
@gg-color-gallery: #ececec;

// Breakpoints
@gg-breakpoint-medium: 768px;

// Spacers
@gg-spacer-fine: 4px;
@gg-spacer-tiny: 8px;
@gg-spacer-small: 16px;
@gg-spacer-medium: 24px;
@gg-spacer-large: 56px;
@gg-spacer-huge: 72px;
3 changes: 3 additions & 0 deletions resources/less/forum.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import "_variables-gg";
@import "_variables-flarum";
@import "_extension";

0 comments on commit 8dfbc90

Please sign in to comment.