Skip to content

Instantly share code, notes, and snippets.

@agustinhaller
Created January 26, 2013 20:21
Show Gist options
  • Select an option

  • Save agustinhaller/4644400 to your computer and use it in GitHub Desktop.

Select an option

Save agustinhaller/4644400 to your computer and use it in GitHub Desktop.
new main css
/* ==========================================================================
Agustin Haller's custom styles
========================================================================== */
/*******************************************************************/
/************************ MAIN PAGE STYLES *************************/
/*******************************************************************/
/*@import url(http://fonts.googleapis.com/css?family=Ropa+Sans:400,400italic&subset=latin,latin-ext);*/
@font-face {
font-family: 'Ropa Sans';
src: url('../css/font/RopaSans-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body
{
background: #F1F1F1;
font-family: Ropa Sans, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6
{
text-rendering: optimizeSpeed;
}
/*******************************************************************/
/************************ HEADER STYLES *************************/
/*******************************************************************/
header.row
{
margin: 20px 2%;
}
.site-logo
{
text-align: center;
line-height: 65px;
margin-right: 1%;
}
.site-logo img
{
margin: 0px;
}
/* SITE NAVIGATION */
.navbar .nav > li > a
{
padding: 10px 18px 10px 18px;
}
.navbar .nav
{
margin: 0px;
}
.navbar-inverse .divider-vertical
{
border-right-color: hsla(7, 66%, 52%, 0.4);
border-left-color: hsla(7, 66%, 46%, 0.8);
}
.navbar-inverse .nav > li > a:focus span,
.navbar-inverse .nav > li > a:hover span
{
border-bottom: 1px solid hsl(7, 66%, 46%);;
}
.navbar-inverse .nav > li > a span,
.navbar-inverse .nav > li > a span
{
padding: 2px 0px;
}
.navbar .divider-vertical
{
height: 30px;
margin: 5px 0px;
}
.navbar-inner
{
padding-right: 5px;
padding-left: 5px;
}
.site-navigation
{
margin: 1% 0px !important;
}
.site-navigation-wrapper
{
margin: 0px;
font-size: 14px;
}
/* Aca van los estlos de los dropdowns */
.navbar .nav > li > .dropdown-menu:before
{
content: '';
display: none;
}
.navbar .nav > li > .dropdown-menu:after
{
content: '';
display: none;
}
.dropdown-menu
{
width: 100%;
padding: 2px 0;
margin: 0px;
background-color: red;
-webkit-border-radius: 0px 0px 6px 6px;
-moz-border-radius: 0px 0px 6px 6px;
border-radius: 0px 0px 6px 6px;
}
.dropdown-menu li > a
{
padding: 3px 20px;
line-height: 13px;
font-size: 11px;
color: hsl(0, 0%, 90%);
}
.dropdown-menu li > a .icon-caret-right
{
display: none;
}
.dropdown-menu li > a:hover .icon-caret-right,
.dropdown-menu li > a:focus .icon-caret-right
{
display: inline-block;
margin: 0px 0px 0px -18px;
font-size: 11px;
width: 18px;
}
.dropdown-menu .active > a .icon-caret-right,
.dropdown-menu .active > a:hover .icon-caret-right
{
display: inline-block;
margin: 0px 0px 0px -18px;
font-size: 11px;
width: 18px;
}
.user-preferences
{
margin: 1% 0px;
}
.user-preferences .icon-cogs
{
margin: 0.2em .6em;
}
/*******************************************************************/
/************************ NEWS STYLES *************************/
/*******************************************************************/
.news-row
{
margin: 0px;
}
.news-row:first-child
{
margin: 20px 0px 0px 0px;
}
.news-row .news-category-title
{
font-size: 11px;
background: #000;
display: inline-block;
margin: 0px 0px 0px 3%;
color: #f1f1f1;
padding: 0px 12px;
border-radius: 6px 6px 0px 0px;
height: 25px;
line-height: 28px;
}
.news-row .news-list-container
{
margin: 0px;
}
.news-row .news-list
{
list-style: none;
margin: 0px;
padding: 0px;
height: 160px;
overflow: hidden;
}
.news-list .news-item
{
float: left;
background: #000;
padding: 2px 3px;
}
.news-item .news-item-wrapper
{
position: relative;
text-align: center;
}
.news-item .news-resume
{
text-align: left;
background: black;
bottom: -1px;
position: absolute;
width: 100%;
}
.news-resume .news-title
{
margin: 0px;
font-size: 10px;
color: hsl(0, 0%, 95%);
padding: 0px 8px;
height: 22px;
line-height: 22px;
font-weight: normal;
}
.news-item .news-source
{
position: absolute;
top: 0px;
right: 0px;
font-size: 10px;
background: black;
margin: 10px 0px 0px;
color: hsl(0, 0%, 95%);
padding: 0px 8px;
border-radius: 6px 0px 0px 6px;
height: 22px;
line-height: 22px;
font-weight: normal;
text-align: left;
}
.news-item .news-over-resume
{
display: none;
bottom: -1px;
position: absolute;
width: 100%;
height: 77%;
background: url('../img/news-hover-bg.png') repeat-x;
}
.news-over-resume .news-over-title
{
color: white;
font-size: 15px;
float: left;
margin: 0px;
padding: 0px;
text-align: left;
font-weight: normal;
line-height: 17px;
width: 85%;
}
.news-over-resume .news-over-source
{
background: red;
color: white;
margin: 6px 12px;
padding: 2px 3px;
font-size: 10px;
display: inline-block;
height: 15px;
line-height: 15px;
float: left;
}
.news-over-resume .icon-caret-right
{
float: left;
margin: 0px 4px 0px 0px;
clear: both;
font-size: 16px;
color: red;
text-align: left;
width: 8px;
}
.news-over-resume .news-over-description
{
float: left;
text-align: left;
margin: 3px 28px 3px 12px;
color: hsl(0, 0%, 80%);
font-size: 12px;
line-height: 13px;
height: 26px;
overflow-y: hidden;
}
.news-over-resume .expand-news
{
text-decoration: none;
}
.news-over-resume .expand-news .icon-plus-sign
{
color: red;
font-size: 16px;
position: absolute;
bottom: 6px;
right: 4px;
}
/*******************************************************************/
/************************ NEWS MODAL STYLES *************************/
/*******************************************************************/
#fancybox-close
{
background: none;
top: 12px;
right: 12px;
width: 18px;
height: 18px;
font-size: 22px;
color: red;
line-height: 18px;
text-decoration: none;
}
.news-modal
{
margin: 20px;
display: inline-block;
}
.news-modal .news-source
{
float: left;
margin: 0px;
background: red;
color: white;
font-size: 19px;
font-weight: normal;
padding: 0px 10px;
height: 30px;
line-height: 30px;
}
.news-modal .icon-caret-right
{
float: left;
margin: 13px 0px 0px -18px;
font-size: 26px;
clear: both;
color: red;
text-align: left;
width: 18px;
}
.news-modal .news-title
{
float: left;
margin: 8px 0px;
font-size: 33px;
font-weight: normal;
line-height: 35px;
}
.news-modal .news-image
{
float: left;
}
.news-modal .news-description
{
float: left;
margin: 10px 0px;
font-size: 13px;
}
.news-modal .icon-file-alt
{
float: left;
font-size: 30px;
color: red;
}
.news-modal .news-go-to-source
{
float: left;
color: red;
font-size: 13px;
height: 30px;
line-height: 33px;
margin: 0px 0px 0px 8px;
text-decoration: none;
}
.news-modal .news-facebook-share
{
float: right;
font-size: 12px;
margin: 0px 5px 0px 0px;
}
.news-modal .news-twitter-share
{
float: right;
font-size: 12px;
}
/*******************************************************************/
/************************ RESPONSIVE STYLES ************************/
/*******************************************************************/
@media (max-width: 1265px){
.navbar .nav > li > a
{
padding: 10px 16px 10px 16px !important;
}
}
@media (max-width: 1235px){
.navbar
{
font-size: 13px !important;
}
.navbar .nav > li > a
{
padding: 10px 18px 10px 18px !important;
}
}
@media (max-width: 1190px){
.navbar .nav > li > a
{
padding: 10px 16px 10px 16px !important;
}
}
@media (max-width: 1165px){
.navbar
{
font-size: 12px !important;
}
.navbar .nav > li > a
{
padding: 10px 18px 10px 18px !important;
}
}
@media (max-width: 1130px){
.navbar .nav > li > a
{
padding: 10px 16px 10px 16px !important;
}
}
@media (max-width: 1100px){
.navbar .nav > li > a
{
padding: 10px 14px 10px 14px !important;
}
}
@media (max-width: 1070px){
.navbar .nav > li > a
{
padding: 10px 13px 10px 13px !important;
}
}
@media (max-width: 1050px){
.navbar
{
font-size: 11px !important;
}
.navbar .nav > li > a
{
padding: 10px 16px 10px 16px !important;
}
}
@media (max-width: 1020px){
.navbar .nav > li > a
{
padding: 10px 14px 10px 14px !important;
}
}
@media (max-width: 1005px){
.navbar .nav > li > a
{
padding: 10px 13px 10px 13px !important;
}
}
@media (max-width: 979px){
.navbar
{
font-size: 15px !important;
}
.site-logo
{
line-height: 60px !important;
}
}
@media (max-width: 767px){
.site-navigation
{
float: left !important;
width: 85% !important;
margin: 1% auto;
}
.user-preferences
{
width: auto !important;
}
.site-logo
{
line-height: 55px !important;
}
}
@media (max-width: 765px){
.icon-cogs
{
margin: 0.2em 1.6em !important;
}
}
@media (max-width: 645px){
.site-navigation
{
width: 75% !important;
}
.icon-cogs
{
margin: 0.2em 1.2em !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment