Blame view

babylon-vue-4.0.0/src/assets/sass/layout/_config.scss 2.19 KB
0f94839d   함상기   babylon client fo...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
  .layout-config {
      width: 16rem;
      height: 100%;
      position: fixed;
      right: 0;
      top: 0;
      padding: 1rem;
      overflow: auto;
      background: #ffffff;
      z-index: 999;
      border-left: 0 none;
      transform: translateX(100%);
      transition: transform .4s cubic-bezier(.05,.74,.2,.99);
  
      &.layout-config-active {
          transform: translateX(0);
          box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
  
          .layout-config-content {
              .layout-config-button {
                  i {
                      transform: rotate(360deg);
                  }
              }
          }
      }
      
      .layout-themes {
          @include flex();
          @include flex-wrap(wrap);
  
          > div {
              padding: .25rem;
          }
  
  
          a {
              width: 2rem;
              height: 2rem;
              border-radius: $borderRadius;
              display: block;
              position: relative;
              @include flex-align-center();
              @include flex-justify-center();
              transition: transform $transitionDuration;
              box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  
              i {
                  font-size: 1rem;
                  position: absolute;
                  top: 50%;
                  left: 50%;
                  margin-left: -.5rem;
                  margin-top: -.5rem;
                  color: #ffffff;
              }
  
              &:hover {
                  transform: scale(1.1);
              }
          }
      }
  }
  
  .layout-config-button {
      display: block;
      position: fixed;
      width: 3rem;
      height: 3rem;
      line-height: 3rem;
      background: $primaryColor;
      color: $primaryTextColor;
      text-align: center;
      top: 50%;
      right: 0;
      margin-top: -1.5rem;
      border-top-left-radius: $borderRadius;
      border-bottom-left-radius: $borderRadius;
      transition: background-color $transitionDuration;
      overflow: hidden;
      cursor: pointer;
      z-index: 999;
      box-shadow: -.25rem 0 1rem rgba(0,0,0,.15);
  
      i {
          font-size: 2rem;
          line-height: inherit;
          transform: rotate(0deg);
          transition: transform 1s;
      }
  
      &:hover {
          background: lighten($primaryColor, 5%);
      }
  }