// vim: sw=4 ts=4 sts=4 expandtab @keyframes loading { 0% { width: 11px; height: 15px; border-radius: 8px 0 0 0; } } @fontSizeBigger: 32px; @fontSizeBig: 18px; @fontSize: 14px; @fontSizeSmall: 11px; @fontSizeSmaller: 9px; @lineHeightBigger: 36px; @lineHeightBig: 22px; @lineHeight: 16px; @lineHeightSmaller: 11px; @textColor: rgba(255, 255, 255, 1); @detailsColor: rgba(255, 255, 255, 0.6); @bannerBackgroundColor: rgba(255, 255, 255, 0.1); @titleColor: rgba(96, 96, 96, 1); @desciptionColor: rgba(96, 96, 96, 0.75); @dateColor: rgba(96, 96, 96, 0.5); @tagColor: rgba(96, 96, 96, 0.25); @headerColor: rgba(26, 50, 79, 1); @backgroundColor: rgba(85, 96, 112, 1); @overlayColor: rgba(0, 0, 0, 0.8); @darkButtonColor: rgba(39, 44, 49, 1); @darkBackgroundColor: rgba(34, 39, 45, 1); @buttonColor: rgba(18, 36, 61, 1); @selectColor: rgba(42, 64, 91, 1); @selectAccentColor: rgba(36, 58, 87, 1); @imageGradientColor: rgba(29, 36, 46, 1); @imageGradientHoverColor: rgba(5, 6, 8, 0.3); @greenArticleColor: rgba(41, 174, 144, 1); @greenArticleHoverColor: rgba(30, 139, 117, 1); @yellowArticleColor: rgba(221, 160, 65, 1); @yellowArticleHoverColor: rgba(176, 127, 66, 1); @cyanArticleColor: rgba(62, 165, 197, 1); @cyanArticleHoverColor: rgba(47, 128, 153, 1); @orangeArticleColor: rgba(220, 74, 56, 1); @orangeArticleHoverColor: rgba(163, 55, 41, 1); @topicColor: rgba(118, 166, 93, 1); @topicHoverColor: rgba(94, 133, 82, 1); @topicSelectedColor: rgba(62, 166, 194, 1); @topicSelectedHoverColor: rgba(49, 133, 153, 1); @addButtonColor: rgba(152, 188, 134, 1); @removeButtonColor: rgba(220, 74, 56, 1); @shadowColor: rgba(0, 0, 0, 0.5); @checkboxColor: rgba(220, 220, 220, 1); @checkboxSelectedColor: rgba(40, 40, 40, 1); .gradient(@start; @end) { filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorStr="@start~", EndColorStr="@end~", GradientType=0)"; background-image: linear-gradient(180deg, @start 0%, @end 101%); } * { padding: 0; margin: 0; outline: 0; } body { position: relative; display: block; width: 100%; background-color: @backgroundColor; font-family: Arial, sans-serif; font-size: @fontSize; line-height: @lineHeight; overflow-x: hidden; } .banner { margin: 0 5px 5px 0; border-radius: 3px; background-color: @bannerBackgroundColor; /* &.megaboard { width: 970px; height: 250px; padding: 20px 67px 20px 68px; margin: 34px 0 -20px; } */ &.megaboard { width: 980px; height: 300px; padding: 10px 62px 10px 63px; margin: 34px 0 -20px; position: relative; } /* &.square { width: 300px; height: 250px; padding: 29px 32px 30px 33px; } */ &.square { width: 336px; height: 280px; padding: 15px 15px 15px 14px; position: relative; } /* &.halfpage { width: 300px; height: 600px; padding: 11px 32px 12px 33px; } */ &.halfpage { width: 336px; height: 600px; padding: 11px 14px 12px 15px; position: relative; } } header { position: fixed; left: 0; top: 0; width: 100%; margin-top: 0; background-color: @headerColor; z-index: 10; transition: top 0.5s; &.hidden { top: -72px; } &.active { /* transform: scaleY(1); */ animation-name: scale-y-up; animation-duration: .5; /* animation-fill-mode: forwards; */ transform-origin: center top; opacity: 1; visibility: visible; } > div { position: relative; width: 1115px; padding: 12px 0; margin: 0 auto; text-align: right; font-size: 0; #logo { position: absolute; left: 10px; top: 8px; width: 144px; height: 50px; background: url('../images/sprites.svg') no-repeat 0 0 transparent; } > ul { list-style: none; > li { position: relative; display: inline-block; width: 40px; height: 48px; cursor: pointer; &:before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url('../images/sprites.svg') no-repeat 0 0 transparent; /* opacity: 0.7; */ } &:hover:before { opacity: 1; } &.search:before { background-position: -4px -52px; } &.favorites:before { background-position: -54px -52px; } &.personal:before { background-position: -104px -52px; } &.news:before { background-position: -4px -128px; } &.followed:before { background-position: -4px -128px; } > span { position: absolute; right: 2px; top: 8px; height: 11px; padding: 0 2px; border: 1px solid @headerColor; border-radius: 2px; background-color: white; line-height: @lineHeightSmaller; font-size: @fontSizeSmaller; color: @headerColor; } > div.dropdown { display: none; position: absolute; right: -5px; top: 48px; border-radius: 3px; background-color: @textColor; text-align: left; cursor: default; &:before { content: ''; position: absolute; top: -5px; right: 20px; width: 10px; height: 10px; background-color: @textColor; transform: rotate(45deg); } p { margin: 20px 20px 10px; font-size: @fontSizeSmall; color: @desciptionColor; } a { display: block; padding: 8px; border-radius: 0 0 3px 3px; background-color: @checkboxColor; font-size: @fontSizeSmall; text-decoration: none; text-align: center; color: @desciptionColor; } input { width: 360px; padding: 10px 36px 10px 10px; margin: 5px; border: none; } ol { width: 600px; list-style: none; margin: 0 20px 10px; li { position: relative; display: inline-block; width: 25%; padding: 10px 26px; box-sizing: border-box; font-size: @fontSize; cursor: pointer; &:before { content: ''; position: absolute; left: 0px; top: 11px; width: 16px; height: 16px; border-radius: 2px; background-color: @checkboxColor; } &.selected { &:before { background-color: @checkboxSelectedColor; } &:after { content: "L"; position: absolute; left: -2px; top: 7px; width: 15px; height: 15px; font-size: 11px; transform: scaleX(-1) rotate(-45deg); font-weight: bold; color: #ffffff; } } } } } &.search { > div { right: 50%; transform: translateX(50%); &:before { right: 50%; transform: translateX(50%) rotate(45deg); } &:after { content: ''; position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; background: url('../images/sprites.svg') no-repeat -104px -132px transparent; } } } &.open { > div { display: block; } } } } } } #main { position: relative; width: 1115px; padding: 72px 370px 90px 5px; margin: 0 auto; box-sizing: border-box; font-size: 0; line-height: 0; vertical-align: top; &:before { content: ''; position: absolute; bottom: 20px; right: 50%; width: 50px; height: 50px; border-radius: 3px; background-color: @bannerBackgroundColor; transform: translateX(50%); } /* &:after { content: ''; position: absolute; right: 50%; bottom: 30px; width: 26px; height: 30px; border-radius: 22px 0 0 0; background: url('../images/sprites.svg') no-repeat right -376px bottom -568px transparent; opacity: 0.5; transform: translateX(11px); animation-duration: 1.2s; animation-name: loading; animation-iteration-count: infinite; animation-fill-mode: both; animation-timing-function: ease-in; } */ article { position: relative; display: inline-block; margin: 0 5px 5px 0; border-radius: 3px; text-align: left; line-height: @lineHeight; cursor: pointer; &:hover:before { height: 100%; background-color: @imageGradientHoverColor; } &.selected { b { display: block; } i { margin-right: 15px; } } &.topic { width: 365px; height: 70px; background-color: @topicColor; > * { pointer-events: none; } &:active { box-shadow: inset 0 0 1px 1px @shadowColor; } &:hover { background-color: @topicHoverColor; p { b { opacity: 0.7; &:hover { opacity: 1; } } } } &:not(.selected) { p { b { &:before { background-color: @addButtonColor; } &:after { content: '+'; right: 8px; top: 10px; font-weight: normal; -webkit-transform: scale(1.45); transform: scale(1.45); } } } } &.selected { background-color: @topicSelectedColor; &:hover { background-color: @topicSelectedHoverColor; } p { b { &:before { background-color: @textColor; } &:after { right: 12px; top: 7px; color: @topicSelectedColor; } &:hover { &:before { background-color: @removeButtonColor; } &:after { content: '+'; top: 8px; right: 8px; color: @textColor; font-weight: normal; -webkit-transform: rotate(-45deg) scale(1.5); transform: rotate(-45deg) scale(1.5); } } } } } &:before { display: none; } h1 { bottom: auto; right: 60px; top: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } img { display: none; } p { right: 20px; b { display: block; top: -22px; width: 36px; height: 36px; pointer-events: all; &:hover { padding-right: 0; background-color: transparent; font-size: 0; } &:before { width: 30px; height: 30px; border-radius: 3px; } &:after { right: 13px; top: 8px; font-size: @fontSizeBig; } } i { display: none; } } } &.thumbnail { width: 180px; height: 152px; h1 { max-height: 4 * @lineHeight; font-size: @fontSize; line-height: @lineHeight; } &:before { height: 100%; } &.green, &.yellow, &.cyan, &.orange { h1 { bottom: auto; top: 15px; } &:before { display: none; } img { visibility: hidden; } } } &.green { background-color: @greenArticleColor; &:hover { background-color: @greenArticleHoverColor; } } &.yellow { background-color: @yellowArticleColor; &:hover { background-color: @yellowArticleHoverColor; } } &.cyan { background-color: @cyanArticleColor; &:hover { background-color: @cyanArticleHoverColor; } } &.orange { background-color: @orangeArticleColor; &:hover { background-color: @orangeArticleHoverColor; } } &:before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; border-radius: 3px; .gradient(transparent, @imageGradientColor); } img { border-radius: 3px; } h1 { position: absolute; bottom: 40px; left: 15px; right: 15px; max-height: 4 * @lineHeightBig; font-weight: normal; font-size: @fontSizeBig; line-height: @lineHeightBig; color: @textColor; overflow: hidden; } p { position: absolute; left: 15px; right: 15px; bottom: 15px; font-size: @fontSizeSmall; color: @detailsColor; strong, span, i { display: inline-block; opacity: 0.7; } strong { margin-right: 5px; font-weight: normal; } span { padding-left: 20px; background: url('../images/sprites.svg') no-repeat -56px -106px transparent; } b { display: none; position: absolute; top: -2px; right: -3px; width: 20px; height: 20px; box-sizing: border-box; font-size: 0; z-index: 1; &:before { content: ''; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 2px; background-color: @topicSelectedColor; } &:after { content: 'L'; position: absolute; right: 5px; top: -2px; width: 15px; height: 15px; -webkit-transform: scaleX(-1) rotate(-45deg); transform: scaleX(-1) rotate(-45deg); font-size: @fontSizeSmall; color: @textColor; } &:hover { width: auto; padding: 2px 22px 0 5px; border-radius: 3px; background-color: @topicSelectedColor; font-size: @fontSizeSmall; color: @textColor; &:before { background-color: @removeButtonColor; } &:after { content: '+'; top: -2px; right: -2px; color: @textColor; font-weight: normal; -webkit-transform: rotate(-45deg) scale(1.5); transform: rotate(-45deg) scale(1.5); } } } i { float: right; width: 24px; height: 24px; margin: -4px -5px; background: url('../images/sprites.svg') no-repeat 0px -102px transparent; z-index: 0; &:hover { opacity: 1; } &.selected { background-position: -26px -102px; opacity: 1; } } } } .articles { position: relative; margin-top: 56px; h2 { position: absolute; top: -56px; } .panel { position: absolute; right: -370px; top: 0; width: 370px; } } .topics { margin-right: -370px; } h2 { position: relative; margin: 16px 0 24px 24px; font-weight: normal; font-size: @fontSize; line-height: @lineHeight; color: @detailsColor; &:before { content: ''; position: absolute; left: -28px; top: -4px; width: 24px; height: 24px; background: url('../images/sprites.svg') no-repeat -130px -102px transparent; } } } #overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: @overlayColor; z-index: 4; } #single { position: absolute; left: 100%; top: 0; width: 100%; background-color: @darkBackgroundColor; overflow: hidden; z-index: 5; .close { position: absolute; right: 0px; top: 0px; width: 45px; height: 45px; border-radius: 0 0 0 3px; background-color: @bannerBackgroundColor; cursor: pointer; &:before { content: '+'; position: absolute; left: 4px; top: 44px; width: 100%; height: 100%; font-size: @fontSizeBig; color: @textColor; -webkit-transform: rotate(45deg) scale(2); transform: rotate(45deg) scale(2); } } main { position: relative; width: 1115px; padding: 50px 0 40px 5px; margin: 0 auto; box-sizing: border-box; font-size: 0; line-height: 0; ul { list-style: none; margin-bottom: 40px; li { position: relative; display: inline-block; padding: 8px 34px 8px 10px; margin: 0 5px 5px 0; border-radius: 3px; background-color: @topicColor; font-size: @fontSize; line-height: @lineHeight; color: @textColor; cursor: pointer; &:before { content: ''; position: absolute; right: 8px; top: 8px; width: 16px; height: 16px; border-radius: 2px; background-color: @addButtonColor; } &:after { position: absolute; content: '+'; right: 12px; top: 8px; font-weight: normal; } &:hover { background-color: @topicHoverColor; } &.selected { background-color: @topicSelectedColor; &:before { background-color: @textColor; } &:after { content: 'L'; top: 6px; color: @topicSelectedColor; -webkit-transform: scaleX(-0.8) scaleY(0.8) rotate(-45deg); transform: scaleX(-0.8) scaleY(0.8) rotate(-45deg); } &:hover { background-color: @topicSelectedHoverColor; &:before { background-color: @removeButtonColor; } &:after { content: '+'; top: 8px; right: 12px; color: @textColor; -webkit-transform: rotate(-45deg) scale(1.2); transform: rotate(-45deg) scale(1.2); } } } } } dl { float: right; margin-right: 5px; color: @textColor; dt, dd { display: inline-block; height: @lineHeight; padding: 8px 10px; font-size: @fontSize; line-height: @lineHeight; vertical-align: top; } dt { position: relative; width: 15px; border-radius: 3px; background-color: @bannerBackgroundColor; &:before { content: ''; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; background: url('../images/sprites.svg') no-repeat 0 0 transparent; } &.favorite { &:before { background-position: 0 -102px; } } &.share { &:before { left: 5px; background-position: -78px -102px; } } } dd { position: relative; margin: 0 10px 0 -3px; border-radius: 0 3px 3px 0; background-color: @darkButtonColor; } } .less { position: absolute; left: 50%; bottom: 0; width: 60px; height: 30px; margin-left: -30px; border-radius: 3px 3px 0 0; background-color: @bannerBackgroundColor; &:before { content: ''; position: absolute; left: 50%; bottom: 5px; width: 10px; height: 10px; margin-left: -6px; border-top: 2px solid @bannerBackgroundColor; border-left: 2px solid @bannerBackgroundColor; -webkit-transform: rotate(45deg); transform: rotate(45deg); } } .more { position: relative; display: inline-block; width: 365px; height: 309px; padding-top: 100px; border-radius: 3px; box-sizing: border-box; background-color: @bannerBackgroundColor; text-align: center; font-size: @fontSize; color: @detailsColor; &:before { content: ''; position: absolute; bottom: 20px; width: 20px; height: 20px; margin-left: -12px; border-right: 4px solid @bannerBackgroundColor; border-bottom: 4px solid @bannerBackgroundColor; -webkit-transform: rotate(45deg); transform: rotate(45deg); } b { display: block; font-weight: normal; font-size: 5 * @fontSize; line-height: 5 * @lineHeight; } } } h1 { margin-bottom: 40px; color: @textColor; font-size: @fontSizeBigger; font-weight: normal; line-height: @lineHeightBigger; } article { display: inline-block; width: 365px; margin: 0 5px 5px 0; border-radius: 4px 4px 3px 3px; font-size: @fontSize; line-height: @lineHeight; vertical-align: top; > img { border-radius: 3px 3px 0 0; } .banner { margin: 0; border-radius: 3px 3px 0 0; } .content { padding: 30px; border-radius: 0 0 3px 3px; background-color: @textColor; color: @desciptionColor; h2 { margin-bottom: 10px; font-weight: normal; font-size: @fontSizeBig; line-height: @lineHeightBig; color: @titleColor; } b, i { margin-bottom: 20px; font-size: @fontSizeSmall; font-weight: normal; color: @dateColor; } b { display: block; img { margin-right: 5px; vertical-align: top; } } i { position: relative; float: right; &:before { content: ''; position: absolute; left: -24px; top: -4px; width: 24px; height: 24px; background: url('../images/sprites.svg') no-repeat -130px -102px transparent; } } span { position: relative; padding-right: 20px; color: @titleColor; cursor: pointer; &:hover { color: @dateColor; } &:before { content: ''; position: absolute; right: 0; top: 0; width: 16px; height: 16px; border-radius: 2px; background-color: @tagColor; } &:after { position: absolute; content: '+'; right: 4px; top: 0px; font-weight: normal; color: @titleColor; } &.selected { &:before { background-color: @desciptionColor; } &:after { content: 'L'; top: -2px; color: @textColor; -webkit-transform: scaleX(-0.8) scaleY(0.8) rotate(-45deg); transform: scaleX(-0.8) scaleY(0.8) rotate(-45deg); } &:hover { &:before { background-color: @removeButtonColor; } &:after { content: '+'; top: 0; right: 4px; color: @textColor; -webkit-transform: rotate(-45deg) scale(1.2); transform: rotate(-45deg) scale(1.2); } } } } } } } @media only screen and (max-width: 1115px) { header { > div { width: 745px; } } .banner { &.megaboard { display: none; } } #main { width: 745px; .thumbnails { margin-right: -370px; } } #single { main { width: 745px; } } } @media only screen and (max-width: 745px) { header { > div { width: 375px; > ul > li > div.dropdown { ol { width:300px; li { width: 50%; } } } } } #main { width: 375px; padding-right: 0; .articles{ .panel { position: relative; right: auto; top: auto; } .thumbnails { margin-right: 0; } } .topics { margin-right: 0; } } #single { main { width: 375px; } } }