]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Design confirm dialog
authorChocobozzz <florian.bigard@gmail.com>
Thu, 7 Dec 2017 09:33:16 +0000 (10:33 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Thu, 7 Dec 2017 09:33:16 +0000 (10:33 +0100)
client/src/app/core/confirm/confirm.component.html
client/src/app/core/confirm/confirm.component.ts
client/src/sass/application.scss

index 2726af6cc1428daa768f33223d80357122827607..31b735f9734b95f9f8921b9331e8e636f7b48498 100644 (file)
@@ -6,14 +6,14 @@
         <button type="button" class="close" aria-label="Close" (click)="cancel()">
           <span aria-hidden="true">&times;</span>
         </button>
-        <h4 class="modal-title">{{ title }}</h4>
+        <h4 class="title-page title-page-single">{{ title }}</h4>
       </div>
 
       <div class="modal-body" [innerHtml]="message"></div>
 
       <div class="modal-footer">
-        <button type="button" class="btn btn-default" data-dismiss="modal" (click)="cancel()">Cancel</button>
-        <button type="button" class="btn btn-primary" (click)="confirm()">Confirm</button>
+        <button type="button" class="grey-button" data-dismiss="modal" (click)="cancel()">Cancel</button>
+        <button type="button" class="orange-button" (click)="confirm()">Confirm</button>
       </div>
     </div>
   </div>
index c8e41e233bb5d3e74540d49efe67308bf2627ee9..0515d969aa7575d4021ccc306a32d7bb4ef32714 100644 (file)
@@ -11,7 +11,8 @@ export interface ConfigChangedEvent {
 
 @Component({
   selector: 'my-confirm',
-  templateUrl: './confirm.component.html'
+  templateUrl: './confirm.component.html',
+  styles: [ '.button { padding: 0 13px; }' ]
 })
 export class ConfirmComponent implements OnInit {
   @ViewChild('confirmModal') confirmModal: ModalDirective
index dc1f4dba0d1cfed04f96e32aacb9c3c9a6ba11a2..0c999d6599a3148c1c3f9bf7c2263792e1a2b7f7 100644 (file)
@@ -42,22 +42,6 @@ label {
 .main-col {
   margin-left: $menu-width;
 
-  .title-page {
-    color: #000;
-    font-size: 16px;
-    display: inline-block;
-    margin-right: 55px;
-    font-weight: $font-semibold;
-    @include disable-default-a-behaviour;
-
-    &.active, &.title-page-single {
-      border-bottom: 2px solid $orange-color;
-      font-weight: $font-bold;
-      margin-top: 30px;
-      margin-bottom: 25px;
-    }
-  }
-
   .margin-content {
     margin-left: $not-expanded-horizontal-margins;
     margin-right: $not-expanded-horizontal-margins;
@@ -88,6 +72,22 @@ label {
   }
 }
 
+.title-page {
+  color: #000;
+  font-size: 16px;
+  display: inline-block;
+  margin-right: 55px;
+  font-weight: $font-semibold;
+  @include disable-default-a-behaviour;
+
+  &.active, &.title-page-single {
+    border-bottom: 2px solid $orange-color;
+    font-weight: $font-bold;
+    margin-top: 30px;
+    margin-bottom: 25px;
+  }
+}
+
 // On small screen, menu is absolute and displayed over the page
 @media screen and (max-width: 500px) {
   .title-menu-left {