mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-01 02:43:35 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			163 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			163 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
| .component_breadcrumb{
 | |
|     position: relative;
 | |
|     z-index: 5;
 | |
|     .breadcrumb{
 | |
|         background: white;
 | |
|         margin: 0 0 0px 0;
 | |
|         box-shadow: 0 2px 10px rgba(0,0,0,0.04);
 | |
|         border-bottom: 1px solid #e8e8e8;
 | |
|         z-index: 1000;
 | |
|         padding: 3px 0;
 | |
| 
 | |
|         ul{
 | |
|             list-style-type: none;
 | |
|             margin: 0 auto;
 | |
|             width: 95%;
 | |
|             max-width: 800px;
 | |
|             padding: 0;
 | |
|             > span{display: block; padding: 7px 0;}
 | |
|             div, li{
 | |
|                 display: inline-block;
 | |
|             }
 | |
|         }
 | |
|     }
 | |
|     .component_logout{
 | |
|         float: right;
 | |
|         display: inline-block;
 | |
|         margin: 0 0px 0 5px;
 | |
|         line-height: 25px;
 | |
|         padding: 7px 0;
 | |
|         a{display: block; vertical-align: middle;}
 | |
|         .component_icon{
 | |
|             height: 20px;
 | |
|             vertical-align: middle;
 | |
|         }
 | |
|     }
 | |
|     .component_saving{
 | |
|         padding-left: 1px;
 | |
|     }
 | |
| 
 | |
|     .component_path-element{
 | |
|         display: inline-block;
 | |
|         .label{color: var(--color);padding: 2px 5px;}
 | |
|         a.label{
 | |
|             position: relative;
 | |
|             color: var(--light);
 | |
|             span.title{
 | |
|                 position: absolute;
 | |
|                 left: 0;
 | |
|                 background: var(--color);
 | |
|                 color: white;
 | |
|                 font-size: 0.8em;
 | |
|                 opacity: 0;
 | |
|                 transform: translateY(5px);
 | |
|                 border-radius: 2px;
 | |
|                 white-space: nowrap;
 | |
|                 padding: 3px 10px!important;
 | |
|                 margin: 23px 0px 5px 0px;
 | |
|             }
 | |
|         }
 | |
| 
 | |
| 
 | |
|         .component_path-element-wrapper{
 | |
|             font-size: 18px;
 | |
|             display: inline-block;
 | |
| 
 | |
|             a{border-radius: 2px; letter-spacing: -0.5px;}
 | |
|             &.highlight a{
 | |
|                 background: var(--emphasis-primary);
 | |
|                 border: 2px solid var(--primary);
 | |
|                 box-sizing: border-box;
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     .component_separator img{
 | |
|         vertical-align: middle;
 | |
|     }
 | |
| }
 | |
| 
 | |
| body.touch-no{
 | |
|     .component_path-element-wrapper a.label:hover{
 | |
|         background: var(--super-light);
 | |
|         span.title{
 | |
|             opacity: 1;
 | |
|             transform: translateY(0px);
 | |
|             transition: all 0.15s ease-out;
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| // mobile user have a scrollable breadcrumb
 | |
| body.touch-yes{
 | |
|     ul span{
 | |
|         overflow-x: auto;
 | |
|         overflow-y: hidden;
 | |
|         -webkit-overflow-scrolling: touch;
 | |
|         box-sizing:border-box;
 | |
|         -moz-box-sizing:border-box;
 | |
|         white-space: nowrap;
 | |
|         &::-webkit-scrollbar {
 | |
|             height: 0px;
 | |
|         }
 | |
| 
 | |
|         &::-webkit-scrollbar-track {
 | |
|             background: var(--super-light);
 | |
|         }
 | |
| 
 | |
|         &::-webkit-scrollbar-thumb {
 | |
|             background: #d2d2d2;
 | |
|             border-radius: 1px;
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| 
 | |
| /* ANIMATION */
 | |
| .component_breadcrumb{
 | |
|     .breadcrumb-leave{
 | |
|         display: inline-block;
 | |
|         opacity: 1;
 | |
|         transform: translateY(0px);
 | |
|     }
 | |
|     .breadcrumb-leave.breadcrumb-leave-active{
 | |
|         opacity: 0;
 | |
|         transform: translateY(-10px);
 | |
|         transition: all 0.15s ease-out;
 | |
|     }
 | |
| 
 | |
|     .breadcrumb-enter{
 | |
|         transform: translateX(10px);
 | |
|         opacity: 0;
 | |
|         display: inline-block;
 | |
|     }
 | |
|     .breadcrumb-enter.breadcrumb-enter-active{
 | |
|         opacity: 1;
 | |
|         transform: translateX(0);
 | |
|         transition: all 0.2s ease-out;
 | |
|     }
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
|     .saving_indicator-leave{
 | |
|         opacity: 1;
 | |
|     }
 | |
|     .saving_indicator-leave.saving_indicator-leave-active{
 | |
|         opacity: 0;
 | |
|         transition: all 0.2s ease-out;
 | |
|     }
 | |
| 
 | |
|     .saving_indicator-enter, .saving_indicator-appear{
 | |
|         transform-origin: center;
 | |
|         animation-name: bounce;
 | |
|         animation-duration: 0.5s;
 | |
|         @keyframes bounce {
 | |
|             0%   { transform: scale(0); }
 | |
|             30%  { transform: scale(1.5);}
 | |
|             100% { transform: scale(1);}
 | |
|         }
 | |
|     }
 | |
| }
 | 
