Team:UCLA/Template/CSS test

From 2014.igem.org

(Difference between revisions)
Line 250: Line 250:
position:relative;
position:relative;
}
}
 +
 +
<!--SIDE MENU BAR-->
 +
<style type="text/css">
 +
#side_menu{
 +
    position:fixed;
 +
    background-color:#550000;
 +
    left:-110px;
 +
    width:30px;
 +
    height:500px;
 +
    padding: 10px 40px;
 +
    border: 2px solid #D46A6A;
 +
    /*border-radius: 25px;*/
 +
    margin-bottom: 20px;
 +
    margin-top: 20px;
 +
    top:10%;
 +
    z-index:95;
 +
}
 +
#side_menu h3{
 +
    text-align:center;
 +
    font-family:Verdana;
 +
}
 +
</style>
 +
 +
<!--TOP MENU BAR-->
<!--TOP MENU BAR-->
 +
<style type="text/css">
 +
#top_menu{
 +
    position:fixed;
 +
    padding: 12px 0 0 0;
 +
    width:100%;
 +
    left:0;
 +
    top:0;
 +
    background:#550D00;
 +
    z-index:100;
 +
}
#menu li{
#menu li{
-
position:relative;
+
    position:relative;
-
float:left;
+
    float:left;
-
list-style:none;
+
    list-style:none;
}
}
#menu a{
#menu a{
-
color:white;
+
    color:white;
-
background:black;
+
    padding:18px 0 15px 0;
-
padding:5px;
+
    text-decoration:none;
-
text-decoration:none;
+
    width:98px;
-
width:98px;
+
    display:block;
-
display:block;
+
    text-align:center;
-
text-align:center;
+
    font-family:arial;
-
font-family:arial;
+
    font-size:14px;
-
font-size:14px;
+
    border-bottom:thin solid #FFB7AA;
}
}
#menu{
#menu{
-
margin-left:auto;
+
    margin-left:auto;
-
margin-right:auto;
+
    margin-right:auto;
-
width:900px;
+
    width:900px;
}
}
#menu a:hover{
#menu a:hover{
-
background:deepskyblue;
+
    background:#AA4B39;
}
}
-
 
#menu li ul{
#menu li ul{
-
background:black;
+
        background:#550D00;
/* display:none; */
/* display:none; */
position:absolute;
position:absolute;
text-align:center;
text-align:center;
-
top:25px;
+
top:50px;
         right:0px;
         right:0px;
}
}
Line 291: Line 324:
position:relative;
position:relative;
}
}
 +
</style>
<!--SIDE SPIDER ANIMATION-->
<!--SIDE SPIDER ANIMATION-->
Line 332: Line 366:
-
<!--BACK TO TOP BUTTON-->
+
<!--SPIDER TOP BUTTON-->
-
#bringTop {
+
<style type="text/css">
 +
.spiderbutton{
position: fixed;
position: fixed;
-
right: 0;
+
top: 550px;
-
bottom: 0;
+
left: 1200px;
-
height: 35px;
+
z-index: 0;
-
margin-bottom: 20px;
+
}
}
-
 
+
.spiderline{
-
.scroll-top-wrapper {
+
position: fixed;
-
    position: fixed;
+
left:896px;
-
    opacity: 0;
+
top: -95px;
-
    visibility: hidden;
+
z-index: -1;
-
    overflow: hidden;
+
-
    text-align: center;
+
-
    z-index: 99999999;
+
-
    background-color: transparent;
+
-
    color: #555555;
+
-
opacity: 0.4;
+
-
    width: 40px;
+
-
    height: 40px;
+
-
    line-height: 37.5px;
+
-
    right: 30px;
+
-
    bottom: 30px;
+
-
    padding-top: 2px;
+
-
border: 1px solid gray;
+
-
    border-top-left-radius:8px;
+
-
    border-top-right-radius: 8px;
+
-
    border-bottom-right-radius: 8px;
+
-
    border-bottom-left-radius: 8px;
+
-
    -webkit-transition: all 0.4s ease-in-out;
+
-
    -moz-transition: all 0.4s ease-in-out;
+
-
    -ms-transition: all 0.4s ease-in-out;
+
-
    -o-transition: all 0.4s ease-in-out;
+
-
    transition: all 0.4s ease-in-out;
+
}
}
-
 
+
.spiderweb{
-
.scroll-top-wrapper:hover {
+
position: fixed;
-
    background-color: #333333;
+
right: 0px;
-
color: #eeeeee;
+
top: 0px;
-
border:none;
+
z-index:1;
-
opacity: 0.8;
+
-
line-height: 37.5px;
+
-
    right: 27.05px;
+
-
    bottom: 27.5px;
+
-
    padding-top: 2.5px;
+
-
width: 45px;
+
-
    height: 43px;
+
-
}
+
-
 
+
-
.scroll-top-wrapper.show {
+
-
    visibility:visible;
+
-
    cursor:pointer;
+
-
+
-
}
+
-
 
+
-
.scroll-top-wrapper i.fa {
+
-
    line-height: inherit;
+
-
}
+
-
 
+
-
#wrap {
+
-
  min-height: 100%;
+
-
  height: auto !important;
+
-
  height: 100%;
+
-
  margin: 0 auto -50px;
+
-
  padding: 0 0 50px;
+
-
}
+
-
</style>
+
-
 
+
-
 
+
-
<!--SLIDING SIDE BAR-->
+
-
<style>
+
-
#wrapper {
+
-
  padding-left: 0px;
+
-
  transition: all 0.4s ease 0s;
+
-
}
+
-
 
+
-
#sidebar-wrapper {
+
-
  margin-left: -250px;
+
-
  left: 0px;
+
-
  width: 250px;
+
-
  background: #000;
+
-
  position: fixed;
+
-
  height: 100%;
+
-
  overflow-y: auto;
+
-
  z-index: 1000;
+
-
  transition: all 0.4s ease 0s;
+
-
}
+
-
 
+
-
#wrapper.active {
+
-
  padding-left: 250px;
+
-
}
+
-
 
+
-
#wrapper.active #sidebar-wrapper {
+
-
  left: 250px;
+
-
}
+
-
 
+
-
#page-content-wrapper {
+
-
  width: 100%;
+
-
}
+
-
 
+
-
 
+
-
 
+
-
.sidebar-nav {
+
-
  position: absolute;
+
-
  top: 0;
+
-
  width: 250px;
+
-
  list-style: none;
+
-
  margin: 0;
+
-
  padding: 0;
+
-
}
+
-
 
+
-
.sidebar-nav li {
+
-
  line-height: 40px;
+
-
  text-indent: 20px;
+
-
}
+
-
 
+
-
.sidebar-nav li a {
+
-
  color: #999999;
+
-
  display: block;
+
-
  text-decoration: none;
+
-
  padding-left: 60px;
+
-
}
+
-
 
+
-
.sidebar-nav li a span:before {
+
-
  position: absolute;
+
-
  left: 0;
+
-
  color: #41484c;
+
-
  text-align: center;
+
-
  width: 20px;
+
-
  line-height: 18px;
+
-
}
+
-
 
+
-
.sidebar-nav li a:hover,
+
-
.sidebar-nav li.active {
+
-
  color: #fff;
+
-
  background: rgba(255,255,255,0.2);
+
-
  text-decoration: none;
+
-
}
+
-
 
+
-
.sidebar-nav li a:active,
+
-
.sidebar-nav li a:focus {
+
-
  text-decoration: none;
+
-
}
+
-
 
+
-
.sidebar-nav > .sidebar-brand {
+
-
  height: 65px;
+
-
  line-height: 60px;
+
-
  font-size: 18px;
+
-
}
+
-
 
+
-
.sidebar-nav > .sidebar-brand a {
+
-
  color: #999999;
+
-
}
+
-
 
+
-
.sidebar-nav > .sidebar-brand a:hover {
+
-
  color: #fff;
+
-
  background: none;
+
-
}
+
-
 
+
-
 
+
-
 
+
-
.content-header {
+
-
  height: 65px;
+
-
  line-height: 65px;
+
-
  position: fixed;
+
-
  z-index: 999999;
+
-
}
+
-
 
+
-
.content-header h1 {
+
-
  margin: 0;
+
-
  margin-left: 20px;
+
-
  line-height: 65px;
+
-
  display: inline-block;
+
-
}
+
-
 
+
-
#menu-toggle {
+
-
    text-decoration: none;
+
-
}
+
-
 
+
-
.btn-menu {
+
-
  color: #000;
+
-
}
+
-
 
+
-
.inset {
+
-
  padding: 20px;
+
-
}
+
-
</style>
+
-
 
+
-
<!--BLURB BOX STYLING-->
+
-
<style>
+
-
section {
+
-
  position: relative;
+
-
  margin-top: 20px;
+
-
  margin-bottom: 20px;
+
-
  background-color: #96a5be;
+
-
  height:90px;
+
-
  width:950px;
+
-
  margin-left:auto;
+
-
  margin-right:auto;
+
-
  padding-right:10px;
+
-
  font-family: 'Open Sans Condensed', sans-serif;
+
-
}
+
-
section:last-child {
+
-
  margin-bottom: 0;
+
-
}
+
-
section:before, section:after {
+
-
  display: block;
+
-
  position: absolute;
+
-
  width: 40px;
+
-
  height: 40px;
+
-
  top: 0;
+
-
  right: 0;
+
-
  content: "";
+
-
}
+
-
section:before {
+
-
  border-top: solid 20px #fff;
+
-
  border-right: solid 20px #fff;
+
-
  border-left: solid 20px transparent;
+
-
  border-bottom: solid 20px transparent;
+
-
}
+
-
section:after {
+
-
 
+
-
  border-bottom: solid 20px #5b7093;
+
-
  border-left: solid 20px #5b7093;
+
-
  border-right: solid 20px transparent;
+
-
  border-top: solid 20px transparent;
+
}
}
</style>
</style>

Revision as of 22:06, 15 September 2014

#spider { position:relative; //or whatever you need display:block; top:0px; left:500px; } #spider img { position:absolute; opacity:0; } #spider #first { opacity:1; } .slider{ width:800px; height:350px; overflow:hidden; margin:0px auto; background-image:url(loader.gif); background-repeat:no-repeat; background-position:center; } .shadow{ background-image:url(slider-shadow.jpg); background-repeat:no-repeat; background-position:top; width:864px; height:144px; margin:0px auto; } .slider img{ width:800px; height:350px; display:none; }