Difference between revisions of "Team:ETH Zurich/styles/template css"

Line 216: Line 216:
  
 
.dark_grey, .dark_grey * {
 
.dark_grey, .dark_grey * {
     background-color: #444444;
+
     background-color: #222222;
 
color: #FFFFFF !important;  
 
color: #FFFFFF !important;  
 
}
 
}
Line 226: Line 226:
  
 
/* Section with two columns */
 
/* Section with two columns */
.two_columns {
+
.two_columns, .three_columns {
display:flex;
+
overflow: auto;
    flex-direction:row;
+
 
}
 
}
 
.two_columns > div {
 
.two_columns > div {
 +
width: calc(50% - 24px);
 +
padding: 0px 12px;
 +
float: left;
 +
}
 +
.two_columns > div:first-child {
 +
width: calc(50% - 12px);
 +
padding-left: 0px;
 +
}
 +
.two_columns > div:last-child {
 +
width: calc(50% - 12px);
 +
padding-right: 0px;
 
}
 
}
  
 
/* Section with three columns */
 
/* Section with three columns */
.three_columns {
 
display:flex;
 
    flex-direction:row;
 
}
 
 
.three_columns > div {
 
.three_columns > div {
width: 33.33%;
+
width: calc(33.33% - 24px);
 +
padding: 0px 12px;
 +
float: left;
 +
}
 +
.three_columns > div:first-child {
 +
width: calc(33.33% - 12px);
 +
padding-left: 0px;
 +
}
 +
.three_columns > div:last-child {
 +
width: calc(33.33% - 12px);
 +
padding-right: 0px;
 
}
 
}
  
Line 409: Line 425:
 
.submenu_visible { position: relative !important; }
 
.submenu_visible { position: relative !important; }
 
.submenu a {  padding-left: 24px !important; }
 
.submenu a {  padding-left: 24px !important; }
 +
.two_columns > div, .three_columns > div { float: none; width: auto !important; padding: 0px; }
 
}
 
}

Revision as of 07:43, 5 September 2016

/* Default wiki style */ /*==========================================================================*/

  1. sideMenu, #top_title {
   display:none;

}

body {

   background-color:#1f407a;

min-width: 400px;

  	width: auto !important;
  	width: 400px; 

-webkit-font-smoothing: subpixel-antialiased; }

  1. bodyContent h1, #bodyContent h2, #bodyContent h3,
  2. bodyContent h4, #bodyContent h5 {
   margin-bottom: 0px;

}

  1. globalWrapper {
   padding: 0px;

}

/* Title style */ /*==========================================================================*/

.title_container {

   height: 100px;
   line-height: 100px;
   text-align: center;
   font-family: "Segoe UI",Arial,Helvetica,sans-serif;
   font-size: 40px;
   color: #FFFFFF;
   font-weight: 600;
   font-stretch: extra-expanded;

}

  1. burger_icon {

display: none; }

  1. burger_icon > img {

padding: 6px; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; }

  1. burger_icon > img:hover {

background-color: #3f609a; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; } /* Menu style */ /*==========================================================================*/

.menu_container {

   background-color: #111111;
   color: #EEEEEE;
   font-family: wf_segoe-ui_light,'Segoe UI Light','Segoe WP Light',wf_segoe-ui_normal,'Segoe UI',Segoe,'Segoe WP',Tahoma,Verdana,Arial,sans-serif;
   font-size: 20px;

width: 100%; }

.menu_container a {

 	-webkit-user-select: none;
 	-moz-user-select: none;
 	-ms-user-select: none;
 	user-select: none;

}

.menu_container a {

   color: #EEEEEE;
   text-decoration:none;

display: block; }

.menu_container ul {

   list-style-type: none;
   list-style-image: none;
   margin: 0px;

}

.menu_container > ul {

   margin: 0 auto;

-webkit-margin-before: 0px;

   -webkit-margin-after: 0px;

}

.menu_container > ul > li > a {

   height: 42px;
   line-height: 42px;
   padding: 0px 12px;

}

.menu_item {

   display: inline-block;

}

.menu_container li {

   cursor: pointer;
   margin: 0px;

}

.menu { display: table;

   margin: 0 auto;

}

.menu_item, .submenu > li { -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; }

.menu_hover { background-color: #3D3D3D; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; }

.menu_open { background-color: #232323; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; }

.menu_container .submenu {

   display: none;

background-color: #232323; }

.menu_container .submenu_visible { display: block; position: absolute; }

.menu_container .submenu a { font-size: 18px; padding: 6px 54px 6px 16px; }

.burger_visible { display: block !important; }

/* Default content style */ /*==========================================================================*/

.content_wrapper { width: 100%;

   background-color:white;
   display: block;
 	margin-left: auto;
 	margin-right: auto;

}

  1. content {
   width: 100%;

height: 100%;

   padding: 0;

padding:0px;

   margin-left:0px;
   background-color:#1f407a;

}

.content_wrapper > p {

   display:none;

}

div.sec:first-of-type {

   width: auto;
   padding: 54px 20% 14px 20%;

}

.sec {

   width: auto;
   padding: 14px 20%;

}

.sec p { text-align: justify; }

.white, .white * {

   background-color: #FFFFFF;

color: #000000; }

.white h1, .white h2, .white h3, .white h4 { color:#1f407a; }

.light_grey, .light_grey * {

   background-color: #ECECEC;

color: #000000; }

.light_grey h1, .light_grey h2, .light_grey h3, .light_grey h4 { color:#1f407a; }

.dark_grey, .dark_grey * {

   background-color: #222222;

color: #FFFFFF !important; }

.blue, .blue * {

   background-color:#1f407a;

color: #FFFFFF !important; }

/* Section with two columns */ .two_columns, .three_columns { overflow: auto; } .two_columns > div { width: calc(50% - 24px); padding: 0px 12px; float: left; } .two_columns > div:first-child { width: calc(50% - 12px); padding-left: 0px; } .two_columns > div:last-child { width: calc(50% - 12px); padding-right: 0px; }

/* Section with three columns */ .three_columns > div { width: calc(33.33% - 24px); padding: 0px 12px; float: left; } .three_columns > div:first-child { width: calc(33.33% - 12px); padding-left: 0px; } .three_columns > div:last-child { width: calc(33.33% - 12px); padding-right: 0px; }

.full_size { width:100%; }

.full_size img { padding: 10px 15px; width:96.5%; }

.half_size { width: 50%; }

.half_size img { padding: 10px 15px; width: 93%; }

.clear { clear:both; }

.highlight { width: 90%; margin: auto; padding: 15px 5px; background-color: #f2f2f2; }

.judges-will-not-evaluate { border: 4px solid #72c9b6; display: block; margin: 5px 15px; width: 95%; font-weight:bold; }

/* styling for the titles */ .content_wrapper h1, .content_wrapper h2 { padding: 5px 0px; border-bottom:0px; color:#1f407a; }

/* font and text */ .content_wrapper p { font-size: 14px; font-family:Tahoma, Geneva, sans-serif; }

/* Links */ .content_wrapper a { color: #1f407a; -webkit-transition: all 0.4s ease; -moz-transition: all 0.4s ease; -ms-transition: all 0.4s ease; -o-transition: all 0.4s ease; transition: all 0.4s ease; }

/* hover for the links */ .content_wrapper a:hover { text-decoration:none; color:#000000; }

/* non numbered lists */ .content_wrapper ul { padding:0px 5px; font-size: 14px; font-family:Tahoma, Geneva, sans-serif; }

/* numbered lists */ .content_wrapper ol { padding:0px; font-size: 14px; font-family:Tahoma, Geneva, sans-serif; }

/* Table */ .content_wrapper table { width: 97%; margin:15px 10px; border: 1px solid #d3d3d3; border-collapse: collapse; }

/* table cells */ .content_wrapper td { padding: 10px; vertical-align: text-top; border: 1px solid #d3d3d3; border-collapse: collapse; }

/* table headers */ .content_wrapper th { padding: 10px; vertical-align: text-top; border: 1px solid #d3d3d3; border-collapse: collapse; background-color:#f2f2f2; }

/* Button class */ .button_click { margin: 10px auto; padding: 15px; width:12%; text-align:center; font-weight:bold; background-color: #72c9b6; cursor:pointer; -webkit-transition: all 0.4s ease; -moz-transition: all 0.4s ease; -ms-transition: all 0.4s ease; -o-transition: all 0.4s ease; transition: all 0.4s ease; }

/* button class on hover */ .button_click:hover { background-color:#000000; color:#72c9b6; }

  1. sponsor_logos {
   text-align:center;

margin: 15px 0px; padding: 15px; background-color: white; }

  1. sponsor_logos img {
   max-height:80px;

max-width:100%;

   width:auto;
   height:auto;

}

  1. sponsor_logos li {
   display: inline-block;
   margin: 0px 12px;

}

/* Responsive styling */ /*==========================================================================*/

/* If the screen width is smaller than 1000px */ @media only screen and (max-width: 1000px) { .icon {display:none;} .highlight {padding:10px 0px;} .sec, div.sec:first-of-type { padding-left: 10%; padding-right: 10%; } }

/* If the screen width is smaller than 740px */ @media only screen and (max-width: 740px) { .collapsable_menu_control { display:block; } .highlight {padding:15px 5px;} .sec, div.sec:first-of-type, .title_container { padding-left: 6%; padding-right: 6%; } #burger_icon { display: block; float: right; } #title_text { display: block; float: left; text-align: left; } #main_menu { display: none; } .menu_item { display: block; width: 100%; } .menu { width: 100%; } .submenu_visible { position: relative !important; } .submenu a { padding-left: 24px !important; } .two_columns > div, .three_columns > div { float: none; width: auto !important; padding: 0px; } }