refactor className --modifierName
.btn-primary -> .btn--primary .btn-create -> .btn--create https://gist.github.com/fat/a47b882eb5f84293c4ed#components
This commit is contained in:
parent
db4df87be1
commit
bab5c40cb1
15 changed files with 18 additions and 18 deletions
|
@ -219,7 +219,7 @@
|
||||||
|
|
||||||
<div class="form-actions horizontal">
|
<div class="form-actions horizontal">
|
||||||
<a class="subtle-link standalone cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
<a class="subtle-link standalone cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
||||||
<button type="submit" class="btn btn-create submit align-right"><%- @T( 'Create' ) %></button>
|
<button type="submit" class="btn btn--create submit align-right"><%- @T( 'Create' ) %></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer horizontal">
|
<div class="modal-footer horizontal">
|
||||||
<a class="subtle-link standalone js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
<a class="subtle-link standalone js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
||||||
<button type="submit" class="btn btn-create js-submit align-right"><%- @T( 'Submit' ) %></button>
|
<button type="submit" class="btn btn--create js-submit align-right"><%- @T( 'Submit' ) %></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="modal-body" id="form-user"></div>
|
<div class="modal-body" id="form-user"></div>
|
||||||
<div class="modal-footer horizontal">
|
<div class="modal-footer horizontal">
|
||||||
<a class="subtle-link standalone js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
<a class="subtle-link standalone js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
||||||
<button type="submit" class="btn btn-create js-submit align-right"><%- @T( 'Create' ) %></button>
|
<button type="submit" class="btn btn--create js-submit align-right"><%- @T( 'Create' ) %></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<p><%- @T('The way to communicate with us is this thing called "Ticket".') %></p>
|
<p><%- @T('The way to communicate with us is this thing called "Ticket".') %></p>
|
||||||
<p><%- @T('Please click the button below to create your first one.') %></p>
|
<p><%- @T('Please click the button below to create your first one.') %></p>
|
||||||
|
|
||||||
<p><a class="btn btn-primary" href="#customer_ticket_new"><%- @T('Create your first Ticket') %></a></p>
|
<p><a class="btn btn--primary" href="#customer_ticket_new"><%- @T('Create your first Ticket') %></a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<div class="form-actions horizontal">
|
<div class="form-actions horizontal">
|
||||||
<a class="subtle-link standalone cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
<a class="subtle-link standalone cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
||||||
<button type="submit" class="btn btn-create submit align-right"><%- @T( 'Create' ) %></button>
|
<button type="submit" class="btn btn--create submit align-right"><%- @T( 'Create' ) %></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
<% if @master_user: %>
|
<% if @master_user: %>
|
||||||
<div class="master_user hero-left">
|
<div class="master_user hero-left">
|
||||||
<form class="form-stacked" id="form-master">
|
<form class="form-stacked" id="form-master">
|
||||||
<button type="submit" class="btn btn-primary submit pull-right"><%- @T( 'Next Step' ) %></button>
|
<button type="submit" class="btn btn--primary submit pull-right"><%- @T( 'Next Step' ) %></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="agent_user hero-left hide">
|
<div class="agent_user hero-left hide">
|
||||||
<form class="form-stacked" id="form-agent">
|
<form class="form-stacked" id="form-agent">
|
||||||
<div class="form-controls">
|
<div class="form-controls">
|
||||||
<button type="submit" class="btn btn-primary submit pull-right"><%- @T( 'Send Invitation' ) %></button>
|
<button type="submit" class="btn btn--primary submit pull-right"><%- @T( 'Send Invitation' ) %></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-controls">
|
<div class="form-controls">
|
||||||
<button class="btn btn-primary" type="submit"><%- @T( 'Sign in' ) %></button>
|
<button class="btn btn--primary" type="submit"><%- @T( 'Sign in' ) %></button>
|
||||||
|
|
||||||
<% if @C('user_lost_password'): %>
|
<% if @C('user_lost_password'): %>
|
||||||
<a href="#reset_password" class="subtle-link standalone pull-right"><%- @T( 'Forgot password?' ) %></a>
|
<a href="#reset_password" class="subtle-link standalone pull-right"><%- @T( 'Forgot password?' ) %></a>
|
||||||
|
|
|
@ -22,5 +22,5 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<button type="submit" class="btn btn-primary submit"><%- @T('Send to clients') %></button>
|
<button type="submit" class="btn btn--primary submit"><%- @T('Send to clients') %></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<a class="subtle-link standalone js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
<a class="subtle-link standalone js-cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @button: %>
|
<% if @button: %>
|
||||||
<button type="submit" class="btn btn-create js-submit align-right"><%- @T( @button ) %></button>
|
<button type="submit" class="btn btn--create js-submit align-right"><%- @T( @button ) %></button>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<p>
|
<p>
|
||||||
<form action="<%= App.Config.get('api_path') %>/packages" method="post" enctype="multipart/form-data">
|
<form action="<%= App.Config.get('api_path') %>/packages" method="post" enctype="multipart/form-data">
|
||||||
<input type="file" name="file_upload"/>
|
<input type="file" name="file_upload"/>
|
||||||
<button class="btn btn-primary" type="submit"><%- @T('Install Package') %></button>
|
<button class="btn btn--primary" type="submit"><%- @T('Install Package') %></button>
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="form-password-item"></div>
|
<div class="form-password-item"></div>
|
||||||
<div class="form-controls">
|
<div class="form-controls">
|
||||||
<a class="subtle-link standalone pull-left cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
<a class="subtle-link standalone pull-left cancel" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
||||||
<button class="btn btn-primary submit pull-right"><%- @T( 'Submit' ) %></button>
|
<button class="btn btn--primary submit pull-right"><%- @T( 'Submit' ) %></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="hero-unit">
|
<div class="hero-unit">
|
||||||
<h2><%- @T( 'Choose your new password.' ) %><small></small></h2>
|
<h2><%- @T( 'Choose your new password.' ) %><small></small></h2>
|
||||||
<form id="form-password-change">
|
<form id="form-password-change">
|
||||||
<button class="btn btn-primary submit"><%- @T( 'Submit' ) %></button>
|
<button class="btn btn--primary submit"><%- @T( 'Submit' ) %></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<form class="signup">
|
<form class="signup">
|
||||||
<div class="form-controls">
|
<div class="form-controls">
|
||||||
<a class="subtle-link standalone pull-left" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
<a class="subtle-link standalone pull-left" href="#/"><%- @T( 'Cancel & Go Back' ) %></a>
|
||||||
<button class="btn btn-primary submit pull-right"><%- @T( 'Create my account' ) %></button>
|
<button class="btn btn--primary submit pull-right"><%- @T( 'Create my account' ) %></button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<% if !_.isEmpty( @taskBarActions ): %>
|
<% if !_.isEmpty( @taskBarActions ): %>
|
||||||
<div class="taskbar-new">
|
<div class="taskbar-new">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-small btn-primary dropdown-toggle" data-toggle="dropdown" href="#new">
|
<a class="btn btn-small btn--primary dropdown-toggle" data-toggle="dropdown" href="#new">
|
||||||
<%- @T('New') %>
|
<%- @T('New') %>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1390,14 +1390,14 @@ footer {
|
||||||
padding: 9px 24px 8px;
|
padding: 9px 24px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
.btn--primary {
|
||||||
color: white;
|
color: white;
|
||||||
background: #419ed7;
|
background: #419ed7;
|
||||||
border-color: #419ed7;
|
border-color: #419ed7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-create,
|
.btn--create,
|
||||||
.btn-create:hover {
|
.btn--create:hover {
|
||||||
color: white;
|
color: white;
|
||||||
background: hsl(145,51%,45%);
|
background: hsl(145,51%,45%);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue