Difference between revisions of "Template:GreatBay SCIE/CSS"

Line 40: Line 40:
  
 
     display:block;
 
     display:block;
     border-radius:20px; /*圆角效果*/
+
     border-radius: 50px / 15px;
 +
    border-bottom-left-radius: 0px;
 +
    border-bottom-right-radius: 0px;
 
     transition: 0.5s; /*过渡*/
 
     transition: 0.5s; /*过渡*/
 +
    transition:margin-top 0s;
 
     box-shadow: 4px 4px 5px 4px #d0bec7; /*深粉色阴影*/
 
     box-shadow: 4px 4px 5px 4px #d0bec7; /*深粉色阴影*/
 
}
 
}
  
 +
.sidebar_inner.stick ul{
 +
    transition:margin-top 0s;
 +
    margin-top: 100px;
 +
}
 
.sidebar_inner ul:hover{
 
.sidebar_inner ul:hover{
 
     box-shadow: 7px 8px 0px 7px #d0bec7; /*深粉色阴影*/
 
     box-shadow: 7px 8px 0px 7px #d0bec7; /*深粉色阴影*/
 
}
 
}
 
.sidebar_inner ul li{ /*侧边栏上的按钮*/
 
.sidebar_inner ul li{ /*侧边栏上的按钮*/
    /*border-top:1px solid #d0bec7;*/
+
     border-bottom:1px solid #eab8c3; /*下border*/
     border-bottom:1px solid #d0bec7; /*下border*/
+
 
     border-radius:15px; /*圆角效果*/
 
     border-radius:15px; /*圆角效果*/
 
}
 
}
Line 56: Line 62:
 
     background-color: #e9b6c2;
 
     background-color: #e9b6c2;
 
     transition: all 0.15s ease;
 
     transition: all 0.15s ease;
 +
}
 +
.top1:hover{
 +
    border-radius: 50px / 15px;
 +
    border-bottom-left-radius: 0px;
 +
    border-bottom-right-radius: 0px;
 
}
 
}
 
.sidebar_inner ul li a{ /*侧边栏上的按钮文字*/
 
.sidebar_inner ul li a{ /*侧边栏上的按钮文字*/
Line 73: Line 84:
 
}
 
}
 
.sidebar_inner ul li a:hover{/*侧边栏上的按钮悬浮*/
 
.sidebar_inner ul li a:hover{/*侧边栏上的按钮悬浮*/
     color:#9e8a98; /*悬浮时文字颜色*/
+
     color:#747281; /*悬浮时文字颜色*/
 
     transition: all 0.15s ease; /*过渡*/
 
     transition: all 0.15s ease; /*过渡*/
 
     /*background-color:rgb(250, 233, 229); *//*悬浮时按钮的背景颜色:淡粉色 暂时取消*/
 
     /*background-color:rgb(250, 233, 229); *//*悬浮时按钮的背景颜色:淡粉色 暂时取消*/
     border-radius:10px; /*圆角效果*/
+
     /*border-radius:10px; *//*圆角效果*/
 
}
 
}
 
.sidebar_inner ul li a.active{ /*js类,请不要乱动
 
.sidebar_inner ul li a.active{ /*js类,请不要乱动
 
     你乱动一下我打断你一根腿(威胁*/
 
     你乱动一下我打断你一根腿(威胁*/
     color:#9e8a98;
+
     color:#14131a;
 
     transition: all 0.15s ease;
 
     transition: all 0.15s ease;
 
     background-color:rgb(250, 233, 229);
 
     background-color:rgb(250, 233, 229);
 
     border-radius:10px;
 
     border-radius:10px;
 
}
 
}
/*.sidebar ul li ul a{
 
    font-size: 100%;
 
    font-weight: 475;
 
    text-align: left;
 
    float:left;
 
    margin-left: 0px;
 
    display:block;
 
}
 
.sidebar ul li ul li a{
 
    display:block;
 
} 好像没用*/
 
 
 
.sidebar_outer{
 
.sidebar_outer{
 
     float:left;
 
     float:left;
Line 112: Line 111:
 
     margin-top: 72.6px; top:0; position:fixed;
 
     margin-top: 72.6px; top:0; position:fixed;
 
}
 
}
 +
 
p{
 
p{
 
     margin-left: 30%;
 
     margin-left: 30%;
 +
}
 +
h1{
 +
    margin-left: 26%;
 
}
 
}
 
h2{
 
h2{
Line 119: Line 122:
  
 
}
 
}
h1{
+
.content{ /* this is not the preset of css from igem
    margin-left: 30%;
+
}
+
.content{
+
 
     margin-top: 10%;
 
     margin-top: 10%;
 
}
 
}

Revision as of 02:14, 18 July 2021

html, body{

   height: 100%; /*为了让其他引用width的元素在屏幕合适的大小*/
   margin: 0;
   padding: 0;
   scroll-behavior: smooth; /*让侧边栏点击时动画顺滑*/
   background-color: #fde6e6; /*所有内容的背景颜色:淡粉色*/

} .sidebar_inner{

   float:left;
   margin-left: 17px;
   margin-top: 24.6px; /*调整距离*/
   width: 175px;
   height: 60%;
   position: fixed;/*固定距离*/
   /*top: auto;*/
   z-index: 3;

} .sidebar_inner.stick{

   /*margin-top: 194.6px;*/
   width: 175px; 
   top:0; position:fixed;

}

  1. top {
   _position: absolute;
   _bottom: auto;
   _top: expression(eval(document.documentElement.scrollTop));

} .sidebar_inner ul{ /*侧边栏整体*/

   position:relative;
   list-style: none;
   height: 100%; /*高度 多余的应该会被自动省略 毕竟是position fixed*/
   
   background-color:#f4e8e6; /*侧边栏背景颜色:淡粉色*/
   opacity: 100%; /*透明度1*/
   margin-left:20px; /*离左边的距离*/
   margin-top: 40px;
   padding:0px 0px 0px 0px;
   display:block;
   border-radius: 50px / 15px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   transition: 0.5s; /*过渡*/
   transition:margin-top 0s;
   box-shadow: 4px 4px 5px 4px #d0bec7; /*深粉色阴影*/

}

.sidebar_inner.stick ul{

   transition:margin-top 0s;
   margin-top: 100px;

} .sidebar_inner ul:hover{

   box-shadow: 7px 8px 0px 7px #d0bec7; /*深粉色阴影*/

} .sidebar_inner ul li{ /*侧边栏上的按钮*/

   border-bottom:1px solid #eab8c3; /*下border*/
   border-radius:15px; /*圆角效果*/

} .sidebar_inner ul li:hover{

   background-color: #e9b6c2;
   transition: all 0.15s ease;

} .top1:hover{

   border-radius: 50px / 15px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;

} .sidebar_inner ul li a{ /*侧边栏上的按钮文字*/

   font-size: 100%; /*字体大小*/
   font-weight: 700; 
   color:#9e8a98; /*文字颜色:黑*/
   text-decoration:none;
   display:block;
   margin-left: 44px;
   margin-right: 35px; /*调位置*/
   padding:3px 5px 3px 5px;
   font-family:"Klee"; /*字体*/
   
   transition: all 0.25s ease-out; /*过渡*/

} .sidebar_inner ul li a:hover{/*侧边栏上的按钮悬浮*/

   color:#747281; /*悬浮时文字颜色*/
   transition: all 0.15s ease; /*过渡*/
   /*background-color:rgb(250, 233, 229); *//*悬浮时按钮的背景颜色:淡粉色 暂时取消*/
   /*border-radius:10px; *//*圆角效果*/

} .sidebar_inner ul li a.active{ /*js类,请不要乱动

   你乱动一下我打断你一根腿(威胁*/
   color:#14131a;
   transition: all 0.15s ease;
   background-color:rgb(250, 233, 229);
   border-radius:10px;

} .sidebar_outer{

   float:left;
   /*margin-top: 72.6px;*/
   /*margin-top: -16px;*/
   margin-top: -16px;
   width: 24%;
   position: relative;
   top: 0;
   height: 100%;
   background-color:#d6e2ee;
   z-index: 1;

} .sidebar_outer.stick{

   margin-top: 72.6px; top:0; position:fixed;

}

p{

   margin-left: 30%;

} h1{

   margin-left: 26%;

} h2{

   margin-left:30%;

} .content{ /* this is not the preset of css from igem

   margin-top: 10%;

}