mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 12:12:55 +00:00 
			
		
		
		
	Design url bar
This commit is contained in:
		@@ -12,16 +12,16 @@
 | 
			
		||||
    <div class="tfw-web tao-grid-top-left"
 | 
			
		||||
         [ngClass]="{'deploy-blur': deploying || polling}">
 | 
			
		||||
         <app-web *ngIf="!iframeUrl"></app-web>
 | 
			
		||||
         <div *ngIf="iframeUrl" class="iframe-container">
 | 
			
		||||
           <div class="urlbar-container">
 | 
			
		||||
           <button class="refresh" (click)="reloadIframe()">R</button>
 | 
			
		||||
         <div class="urlbar-container">
 | 
			
		||||
           <button class="refresh btn btn-sm rounded-circle" (click)="reloadIframe()">↻</button>
 | 
			
		||||
           <input type="text"
 | 
			
		||||
                  #urlbar
 | 
			
		||||
                  class="urlbar"
 | 
			
		||||
                  class="urlbar form-control"
 | 
			
		||||
                  value="{{actualIframeUrl}}"
 | 
			
		||||
                  (keyup.enter)="changeIframeURL()">
 | 
			
		||||
           <button class="go" (click)="changeIframeURL()">G</button>
 | 
			
		||||
           </div>
 | 
			
		||||
           <button class="go btn btn-sm rounded-circle" (click)="changeIframeURL()">⇨</button>
 | 
			
		||||
         </div>
 | 
			
		||||
         <div *ngIf="iframeUrl" class="iframe-container">
 | 
			
		||||
            <iframe class="iframe"
 | 
			
		||||
                    #webiframe
 | 
			
		||||
                    scrolling="yes"
 | 
			
		||||
 
 | 
			
		||||
@@ -22,10 +22,26 @@
 | 
			
		||||
 | 
			
		||||
    .urlbar-container {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      height: 37px;
 | 
			
		||||
      background: #353535;
 | 
			
		||||
 | 
			
		||||
      .btn {
 | 
			
		||||
        background: #353535;
 | 
			
		||||
        color: white;
 | 
			
		||||
        align-self: center;
 | 
			
		||||
        margin: 5px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .btn:hover{
 | 
			
		||||
        background: lighten(#353535, 10);
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .urlbar {
 | 
			
		||||
      flex-grow: 1;
 | 
			
		||||
      height: 30px;
 | 
			
		||||
      align-self: center;
 | 
			
		||||
      border-radius: 15px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user