Glass
Name: Glass
Author: Squark
License: Creative Commons Attribution-ShareAlike 3.0 License
Tags: black blog blue corporate glass modern topbar
Supports top bar menu *: yes
Supports side bar menu *: no
* depends on tags: topbar and sidebar
Description:
Version: 1.0
Not tested and not supported for IE, only Firefox 3.0+
Feel free to make changes and upload as newer versions.
How to install
- go to: your wiki admin panel » appearance » themes
- choose External CSS theme
- supply the following URL as the CSS location
http://themes.wdfiles.com/local--code/glass
Code
/* GLOBAL WIDTH */ #header, #top-bar { width: 950px; margin: 0 auto; } body { background-color: #4fccec; font-size: 0.80em; color: #000; } div#container-wrap { background-image: url(http://squark.wdfiles.com/local--files/dev:theme/bg.png); background-repeat: repeat-x; } /* HEADER */ #header { height: 170px; position: relative; width: 950px; top: 0px; padding-bottom: 30px; /* FOR MENU */ background: url(http://squark.wdfiles.com/local--files/dev:theme/background.png) no-repeat; background-position: bottom; } #search-top-box { position: absolute; top: 20px; right: 9px; width: 250px; text-align: right; z-index: 9; } #login-status { background-image: url(http://squark.wdfiles.com/local--files/dev:theme/login_bg.png); position: absolute; top: 20px; height: 20px; width: 935px; color: #aaa; font-size: 90%; z-index: 6; margin: 0; right: 0; top: 10px; overflow: visible; padding: 5px 0 0 15px; } #login-status a { background: transparent; color: #ddd; } #login-status ul a { color: #700; background: transparent; } #account-topbutton { background-color:#FFFFFF; border:1px solid #888888; font-size:80%; font-weight:bold; margin-left:5px; padding:0 5px; text-decoration:none; } #account-topbutton { background: #ccc; color: #700; } #account-options { background-color: black; opacity: 0.5; color: white; opacity: 0.5; border:0px; display: none; padding:0; position:absolute; text-align: center; right:700px; width:135px; z-index:7; } #account-options ul { display:block; list-style-image:none; list-style-position:outside; list-style-type:none; margin: 0; padding:0; color: white; } #account-options li { display:block; margin:0; padding:0; width:100%; color: white; } #account-options li a { -moz-box-sizing:border-box; display:block; padding:2px 5px; width:100%; z-index:8; color: white; } #account-options li a:hover { color: black; background-color: white; opacity: 0.5; } .printuser img.small { margin-right: 0.4em; } #search-top-box form { position: absolute; top: -5px; height: 25px; margin: 0; background-color: transparent; z-index: 9; padding: 0; left: 120px; } #search-top-box input.button { display: none; } div.buttons input, input.button, button, file, a.button { background-color:#F4F4F4; border:1px solid #AAAAAA; color:#000000; margin:0 2px; padding:0 0.5em; text-decoration:none; } input.empty { font-size:80%; background-color: transparent; } input.text { background-color: transparent; border: 1px solid #777777; color: black; } input { font-size:80%; } #header h1 { position: absolute; padding: 0; max-height: 105px; opacity: 0.6; color: white; top: 100px; left: 50px; } #header h2 { position: absolute; top: 130px; left: 50px; margin: 0; padding: 0; clear: left; float: left; font-size: 105%; max-height: 38px; opacity: 0.5; color: white; } #header h1 a { top: 100px; left: 50px; line-height: 0px; max-height: 0px; color: white; background: transparent; font-size: 180%; text-decoration: none; } #header h2 span { color: white;; font-weight: bold; } /* TOP MENU */ /* */ #top-bar { position: absolute; z-index: 10; top: 175px; left: 0px; height: 25px; line-height: 25px; font-size: 90%; background-image: url(http://squark.wdfiles.com/local--files/dev:theme/login_bg.png); } #top-bar li ul li a { background-color: transparent; border: 0; text-align:left; width:10em; } /* */ #top-bar ul { float: left; margin-left: 15px; border: 0; } /* */ #top-bar a { color: #fff; background: transparent; border: 0; } /* */ #top-bar ul li, { border: 0; } /* */ #top-bar ul li ul { vertical-align: bottom; border: 0; } /* */ #top-bar ul li a { text-decoration: none; line-height: 23px; max-height: 23px; overflow: hidden; border: 0; } /* */ #top-bar ul li.sfhover a { border: 0; } /* */ #top-bar ul li:hover a { background: transparent; border: 0; } /* */ #top-bar ul li.sfhover ul li a { border: 0; } /* */ #top-bar ul li:hover ul li a { width: 150px; line-height: 160%; height: auto; max-height: none; padding-top: 0; padding-bottom: 0; border: 0; } /* */ #top-bar ul li.sfhover a:hover { border: 0; } #top-bar ul li:hover a:hover { background-image: url(http://squark.wdfiles.com/local--files/dev:theme/menu_hover.png); text-decoration: none; border: 0; } #top-bar ul ul li:hover a:hover { background-image: url(http://squark.wdfiles.com/local--files/dev:theme/list_hover.png); color: white; } /* */ #top-bar ul li ul { width: auto; background-color: #333333; color: white; } /* */ #top-bar ul li ul li { background-image: none; } /* */ #top-bar ul li ul li.sfhover { background-image: none; } /* */ #top-bar ul li ul li { background-image: none; } /* */ #top-bar ul li ul li:hover { background-image: none; } /* */ #top-bar ul li ul li a { } /* */ #top-bar ul li ul a { } /* */ #top-bar a:hover { } /* */ /* IE7 HACK */ #top-bar ul > li > ul { *margin-top: -4px; } /* SIDE MENU */ #side-bar { clear: both; padding: 10px; margin: 0 0 0 2em; width: 15em; border: 1px solid #dedede; } /* CONTENT */ #main-content { width: 910px; background-color: #e4e8ff; background-image: url(http://squark.wdfiles.com/local--files/dev:theme/content_bg.png); background-repeat: no-repeat; margin: 0 auto; padding: 20px 20px 0 20px; position: relative; } .page-options-bottom { height:1%; margin: 0px 0; text-align:right; position: relative; z-index:20; top: 20px; } /* FOOTER */ /* footer */ #footer{ position: relative; bottom: 0px; z-index: 1; background-image: url(http://squark.wdfiles.com/local--files/dev:theme/bar_bottom.png); margin-top: 0px; margin-bottom: 0px; padding-bottom: 0px; padding-top: 0px; padding-left: 10px; padding-right: 10px; width: 930px; height: 75px; margin: auto; } #footer .options { float: right; font-size: 90%; padding: 53px 0; margin-right: 10px; z-index:1; color: white; } #license-area { padding: 0 0; color: #555; text-align: center; font-size: 80%; } /* #footer { font-size: 77%; background-image: url(http://squark.wdfiles.com/local--files/dev:theme/bar_bottom.png); width: 950px; margin-top: 0px; background: red; color: #bbb; margin-top: 15px; padding: 3px 10px; clear: none; } #footer .options { visibility: visible; display: block; float: right; width: 50%; font-size: 100%; text-align: right; } #footer a { color: #fff; background: transparent; } */ /* COMMON */ #content-wrap { margin-top: 0px; } h1, #page-title { color: #000; padding: 0 0 0.25em; margin: 0 0 0.6em; font-weight: normal; } h1 { margin-top: 0.7em; padding: 0; font-weight: bold; } h2, h3, h4, h5, h6, h7 { margin: 0.5em 0 0.4em; padding: 0; letter-spacing: 1px; } #page-title { border-color: #000; } ul { /*list-style-image: url(/common--theme/shiny/images/bullet.gif);*/ list-style: square; } #top-bar ul { /* list-style-image: none; /* IE ONLY! IF list-style-image IS SET */ } li, p { line-height: 141%; } a { color: #0c88ab; text-decoration: none; } a.newpage { color: #0c88ab; text-decoration: none; } a:hover { text-decoration: underline; } /* SOME NICE BOXES */ div.sexy-box { background: #eee; border: 1px solid #ccc; padding: 0 10px 12px; margin: 7px 4px 12px; overflow: hidden; } div.sexy-box div.image-container img { margin: 5px; padding: 2px; border: 1px solid #999; } /* YUI TABS */ .yui-navset .yui-nav li, .yui-navset .yui-navset-top .yui-nav li, .yui-navset .yui-navset-bottom .yui-nav li { margin:0 0.5em 0 0; /* horizontal tabs */ } .yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li { margin:0 0 0.5em; /* vertical tabs */ } /* default width for side tabs */ .yui-navset .yui-navset-left .yui-nav, .yui-navset .yui-navset-right .yui-nav, .yui-navset-left .yui-nav, .yui-navset-right .yui-nav { width:6em; } .yui-navset-top .yui-nav, .yui-navset-bottom .yui-nav { width:auto; } .yui-navset .yui-navset-left, .yui-navset-left { padding:0 0 0 6em; } /* map to nav width */ .yui-navset-right { padding:0 6em 0 0; } /* ditto */ .yui-navset-top, .yui-navset-bottom { padding:auto; } /* core */ .yui-nav, .yui-nav li { margin:0; padding:0; list-style:none; } .yui-navset li em { font-style:normal; } .yui-navset { position:relative; /* contain absolute positioned tabs (left/right) */ zoom:1; } .yui-navset .yui-content { zoom:1; } .yui-navset .yui-nav li, .yui-navset .yui-navset-top .yui-nav li, /* in case nested */ .yui-navset .yui-navset-bottom .yui-nav li { display:inline-block; display:-moz-inline-stack; *display:inline; /* IE */ vertical-align:bottom; /* safari: for overlap */ cursor:pointer; /* gecko: due to -moz-inline-stack on anchor */ zoom:1; /* IE: kill space between horizontal tabs */ } .yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li { display:block; } .yui-navset .yui-nav a { position:relative; } /* IE: to allow overlap */ .yui-navset .yui-nav li a, .yui-navset-top .yui-nav li a, .yui-navset-bottom .yui-nav li a { display:block; display:inline-block; vertical-align:bottom; /* safari: for overlap */ zoom:1; } .yui-navset-left .yui-nav li a, .yui-navset-right .yui-nav li a { display:block; } .yui-navset-bottom .yui-nav li a { vertical-align:text-top; /* for inline overlap (reverse for Opera border bug) */ } .yui-navset .yui-nav li a em, .yui-navset-top .yui-nav li a em, .yui-navset-bottom .yui-nav li a em { display:block; } /* position left and right oriented tabs */ .yui-navset .yui-navset-left .yui-nav, .yui-navset .yui-navset-right .yui-nav, .yui-navset-left .yui-nav, .yui-navset-right .yui-nav { position:absolute; z-index: 21; } .yui-navset-top .yui-nav, .yui-navset-bottom .yui-nav { position:static; } .yui-navset .yui-navset-left .yui-nav, .yui-navset-left .yui-nav { left:0; right:auto; } .yui-navset .yui-navset-right .yui-nav, .yui-navset-right .yui-nav { right:0; left:auto; } /* Copyright (c) 2007, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 2.3.1 */ /* .yui-navset defaults to .yui-navset-top */ .yui-navset .yui-nav, .yui-navset .yui-navset-top .yui-nav { /* protect nested tabviews from other orientations */ border:solid #464646; /* color between tab list and content */ border-width:0 0 5px; Xposition:relative; zoom:1; } .yui-navset .yui-nav li, .yui-navset .yui-navset-top .yui-nav li { margin:0 0.16em 0 0; /* space between tabs */ padding:1px 0 0; /* gecko: make room for overflow */ zoom:1; } .yui-navset .yui-nav .selected, .yui-navset .yui-navset-top .yui-nav .selected { margin:0 0.16em -1px 0; /* for overlap */ } .yui-navset .yui-nav a, .yui-navset .yui-navset-top .yui-nav a { background:#d8d8d8 url(http://static.wikidot.com/common--javascript/yahooui/assets/sprite.png) repeat-x; /* tab background */ border:solid #a3a3a3; border-width:0 1px; color:#000; position:relative; text-decoration:none; } .yui-navset .yui-nav a em, .yui-navset .yui-navset-top .yui-nav a em { border:solid #a3a3a3; border-width:1px 0 0; cursor:hand; padding:0.25em .75em; left:0; right: 0; bottom: 0; /* protect from other orientations */ top:-1px; /* for 1px rounded corners */ position:relative; } .yui-navset .yui-nav .selected a:hover { background: url(http://squark.wdfiles.com/local--files/dev:theme/tab2.png); } .yui-navset .yui-nav .selected a:focus, .yui-navset .yui-nav .selected a { /* no hover effect for selected */ background:#2647a0 url(http://squark.wdfiles.com/local--files/dev:theme/tab.png) repeat-x; /* selected tab background */ color:#fff; } .yui-navset .yui-nav a:hover, .yui-navset .yui-nav a:focus { background:#bfdaff url(http://static.wikidot.com/common--javascript/yahooui/assets/sprite.png) repeat-x left -1300px; /* selected tab background */ outline:0; } .yui-navset .yui-nav .selected a em { padding:0.35em 0.75em; /* raise selected tab */ } .yui-navset .yui-nav .selected a, .yui-navset .yui-nav .selected a em { border-color:#243356; /* selected tab border color */ } .yui-navset .yui-content { background:#f4f5ff; /* content background color */ } .yui-navset .yui-content, .yui-navset .yui-navset-top .yui-content { border:1px solid #808080; /* content border */ border-top-color:#243356; /* different border color */ padding:0.25em 0.5em; /* content padding */ } /* left and right orientations */ .yui-navset-left .yui-nav, .yui-navset .yui-navset-left .yui-nav, .yui-navset .yui-navset-right .yui-nav, .yui-navset-right .yui-nav { border-width:0 5px 0 0; Xposition:absolute; /* from tabview-core; have to reiterate for skin-sam due to pos:rel on skin-sam yui-nav */ top:0; bottom:0; /* stretch to fill content height */ } .yui-navset .yui-navset-right .yui-nav, .yui-navset-right .yui-nav { border-width:0 0 0 5px; } .yui-navset-left .yui-nav li, .yui-navset .yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li { margin:0 0 0.16em; /* space between tabs */ padding:0 0 0 1px; /* gecko: make room for overflow */ } .yui-navset-right .yui-nav li { padding:0 1px 0 0; /* gecko: make room for overflow */ } .yui-navset-left .yui-nav .selected, .yui-navset .yui-navset-left .yui-nav .selected { margin:0 -1px 0.16em 0; } .yui-navset-right .yui-nav .selected { margin:0 0 0.16em -1px; } .yui-navset-left .yui-nav a, .yui-navset-right .yui-nav a { border-width:1px 0; } .yui-navset-left .yui-nav a em, .yui-navset .yui-navset-left .yui-nav a em, .yui-navset-right .yui-nav a em { border-width:0 0 0 1px; padding:0.2em .75em; top:auto; left:-1px; /* for 1px rounded corners */ } .yui-navset-right .yui-nav a em { border-width:0 1px 0 0; left:auto; right:-1px; /* for 1px rounded corners */ } .yui-navset-left .yui-nav a, .yui-navset-left .yui-nav .selected a, .yui-navset-left .yui-nav a:hover, .yui-navset-right .yui-nav a, .yui-navset-right .yui-nav .selected a, .yui-navset-right .yui-nav a:hover, .yui-navset-bottom .yui-nav a, .yui-navset-bottom .yui-nav .selected a, .yui-navset-bottom .yui-nav a:hover { background-image:none; /* no left-right or bottom-top gradient */ } .yui-navset-left .yui-content { border:1px solid #808080; /* content border */ border-left-color:#243356; /* different border color */ } /* bottom orientation */ .yui-navset-bottom .yui-nav, .yui-navset .yui-navset-bottom .yui-nav { border-width:5px 0 0; /* color between tab list and content */ } .yui-navset .yui-navset-bottom .yui-nav .selected, .yui-navset-bottom .yui-nav .selected { margin:-1px 0.16em 0 0; /* for overlap */ } .yui-navset .yui-navset-bottom .yui-nav li, .yui-navset-bottom .yui-nav li { padding:0 0 1px 0; /* gecko: make room for overflow */ vertical-align:top; } .yui-navset .yui-navset-bottom .yui-nav li a, .yui-navset-bottom .yui-nav li a { } .yui-navset .yui-navset-bottom .yui-nav a em, .yui-navset-bottom .yui-nav a em { border-width:0 0 1px; top:auto; bottom:-1px; /* for 1px rounded corners */ } .yui-navset-bottom .yui-content, .yui-navset .yui-navset-bottom .yui-content { border:1px solid #808080; /* content border */ border-bottom-color:#243356; /* different border color */ } }
Notes
I'm still working on it. It needs some improvements. Header was created with Fyre, pimped in GIMP. All layout made in GIMP.
Similar themes
|
Browse themes by tag
2.0
3d
3d-buttons
610nm
and
and/or
ardeol
articles
band
base
beige
black
blog
bloo
blue
bmc
border
boring
brown
business
camo
cat
chocholate
christian
christmas
city
clan
claret
claus
clay
clean
coffe
coke
colorful
company
contest
contest-win
corperate
corporate
corporation
creative
crimson
cross
css3
css3-buttons
curved
d14
dark
dashed
deep
|
Hey Squark, may I make a suggestion?
Change this:
To this:
To make the heading display properly in IE6
Thanks for reporting. I changed it as you stated. I didn't even tested this theme on IE.
When I use your Glass CSS code with the blank template, the top navigation has gaps where menu items should be. When I scroll over them, they are correctly displayed. I'm not sure if the problem is on my end or with the top menu CSS code since I am very new to CSS.
Video Gamer Blog
Tustin Dog Care
I also have problems with the top-bar. Seems like the transparency doesnt work.
Any help?
see title. the only modification I have made is changing the text in the drop-down menu to maroon
same here, changing the theme to extend it from seems to fix the top bar.. but it mucks up the rest.
—
I take it back, I set the theme to extend it from as 'base' at the bottom of the list and it now displays properly. Sucks being a newbie!
The edit (edit, tags, history, etc.) links are not showing up in IE 6.0 but they are in Firefox… big problem, any tips? http://eventidemush.wikidot.com
Will there be support for the sidebar in the future? I am using the theme with the sidebar (even though I know it is unsupported) and it is hiding behind the webpage if the resolution is too small.
Is there some simple code to lock the sidebar on the left at a certain position that looks good with this theme?
Video Gamer Blog
Tustin Dog Care
I found that you can bypass the sidebar formatting in the browser manually by holding control and moving the mouse wheel. This has to be done by users individually so it is by no means a permanent fix. It does make the side bar readable for resolutions less than 1280.
Just passing this information along for other people.
Video Gamer Blog
Tustin Dog Care
When I use the CSS code the top bar menu buttons do not show up in fire fox 3. I can hover over them, but they don't display unless active. Is there something I'm missing.
Hi there, i love the look of this theme - great work!! I'm to CSS and i'm not sure how to center the links in the top menu bar.
you can have a look at
www.bomaderryhs.wikidot.com
cheers
Ruben
This theme fits exactly what I wanted for my website. Thanks Squark! :)
In Action: http://cyclods.wikidot.com
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
At the moment with your theme being used in Firefox 3.5, the page options appear like this when expanded:
To fix this, I changed my CSS to this:
The only element that has been changed is 'top' — it was originally 20px
Now, it looks like this:
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Hi, I'm using this theme here: www.hobstarcs.wikidot.com
It looks GREAT but I needed it to be wider as some of my content requires it to be. I have changed the 'content' width to be 85% and modified the background to work with the width BUT I can not get the heading, login bars and footer to fit right.
Any suggestions?
I would love for there to be a way to set my wiki so that it doesn't use the 'text display' for the site name. I have a banner I've created with a very nice graphic that says the site name fine and would like to use that instead of the 'textover' site name that the wiki defaults to.
I'm not sure how to completely remove the site name from the display, however.
Any help?