styles/prosilver/theme/buttons.css
author indvdum (gotoindvdum[at]gmail[dot]com)
Sat, 10 Mar 2012 00:47:37 +0400
changeset 16 d6012dd9347f
parent 0 ceef6d64c21d
permissions -rw-r--r--
Removing old cubometry-style style
indvdum@0
     1
/* Button Styles
indvdum@0
     2
---------------------------------------- */
indvdum@0
     3
indvdum@0
     4
/* Rollover buttons
indvdum@0
     5
   Based on: http://wellstyled.com/css-nopreload-rollovers.html
indvdum@0
     6
----------------------------------------*/
indvdum@0
     7
.buttons {
indvdum@0
     8
	float: left;
indvdum@0
     9
	width: auto;
indvdum@0
    10
	height: auto;
indvdum@0
    11
}
indvdum@0
    12
indvdum@0
    13
/* Rollover state */
indvdum@0
    14
.buttons div {
indvdum@0
    15
	float: left;
indvdum@0
    16
	margin: 0 5px 0 0;
indvdum@0
    17
	background-position: 0 100%;
indvdum@0
    18
}
indvdum@0
    19
indvdum@0
    20
/* Rolloff state */
indvdum@0
    21
.buttons div a {
indvdum@0
    22
	display: block;
indvdum@0
    23
	width: 100%;
indvdum@0
    24
	height: 100%;
indvdum@0
    25
	background-position: 0 0;
indvdum@0
    26
	position: relative;
indvdum@0
    27
	overflow: hidden;
indvdum@0
    28
}
indvdum@0
    29
indvdum@0
    30
/* Hide <a> text and hide off-state image when rolling over (prevents flicker in IE) */
indvdum@0
    31
/*.buttons div span		{ display: none; }*/
indvdum@0
    32
/*.buttons div a:hover	{ background-image: none; }*/
indvdum@0
    33
.buttons div span			{ position: absolute; width: 100%; height: 100%; cursor: pointer;}
indvdum@0
    34
.buttons div a:hover span	{ background-position: 0 100%; }
indvdum@0
    35
indvdum@0
    36
/* Big button images */
indvdum@0
    37
.reply-icon span	{ background: transparent none 0 0 no-repeat; }
indvdum@0
    38
.post-icon span		{ background: transparent none 0 0 no-repeat; }
indvdum@0
    39
.locked-icon span	{ background: transparent none 0 0 no-repeat; }
indvdum@0
    40
.pmreply-icon span	{ background: none 0 0 no-repeat; }
indvdum@0
    41
.newpm-icon span 	{ background: none 0 0 no-repeat; }
indvdum@0
    42
.forwardpm-icon span 	{ background: none 0 0 no-repeat; }
indvdum@0
    43
indvdum@0
    44
/* Set big button dimensions */
indvdum@0
    45
.buttons div.reply-icon		{ width: {IMG_BUTTON_TOPIC_REPLY_WIDTH}px; height: {IMG_BUTTON_TOPIC_REPLY_HEIGHT}px; }
indvdum@0
    46
.buttons div.post-icon		{ width: {IMG_BUTTON_TOPIC_NEW_WIDTH}px; height: {IMG_BUTTON_TOPIC_NEW_HEIGHT}px; }
indvdum@0
    47
.buttons div.locked-icon	{ width: {IMG_BUTTON_TOPIC_LOCKED_WIDTH}px; height: {IMG_BUTTON_TOPIC_LOCKED_HEIGHT}px; }
indvdum@0
    48
.buttons div.pmreply-icon	{ width: {IMG_BUTTON_PM_REPLY_WIDTH}px; height: {IMG_BUTTON_PM_REPLY_HEIGHT}px; }
indvdum@0
    49
.buttons div.newpm-icon		{ width: {IMG_BUTTON_PM_NEW_WIDTH}px; height: {IMG_BUTTON_PM_NEW_HEIGHT}px; }
indvdum@0
    50
.buttons div.forwardpm-icon	{ width: {IMG_BUTTON_PM_FORWARD_WIDTH}px; height: {IMG_BUTTON_PM_FORWARD_HEIGHT}px; }
indvdum@0
    51
indvdum@0
    52
/* Sub-header (navigation bar)
indvdum@0
    53
--------------------------------------------- */
indvdum@0
    54
a.print, a.sendemail, a.fontsize {
indvdum@0
    55
	display: block;
indvdum@0
    56
	overflow: hidden;
indvdum@0
    57
	height: 18px;
indvdum@0
    58
	text-indent: -5000px;
indvdum@0
    59
	text-align: left;
indvdum@0
    60
	background-repeat: no-repeat;
indvdum@0
    61
}
indvdum@0
    62
indvdum@0
    63
a.print {
indvdum@0
    64
	background-image: none;
indvdum@0
    65
	width: 22px;
indvdum@0
    66
}
indvdum@0
    67
indvdum@0
    68
a.sendemail {
indvdum@0
    69
	background-image: none;
indvdum@0
    70
	width: 22px;
indvdum@0
    71
}
indvdum@0
    72
indvdum@0
    73
a.fontsize {
indvdum@0
    74
	background-image: none;
indvdum@0
    75
	background-position: 0 -1px;
indvdum@0
    76
	width: 29px;
indvdum@0
    77
}
indvdum@0
    78
indvdum@0
    79
a.fontsize:hover {
indvdum@0
    80
	background-position: 0 -20px;
indvdum@0
    81
	text-decoration: none;
indvdum@0
    82
}
indvdum@0
    83
indvdum@0
    84
/* Icon images
indvdum@0
    85
---------------------------------------- */
indvdum@0
    86
.sitehome, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, .icon-logout,
indvdum@0
    87
.icon-bookmark, .icon-bump, .icon-subscribe, .icon-unsubscribe, .icon-pages, .icon-search {
indvdum@0
    88
	background-position: 0 50%;
indvdum@0
    89
	background-repeat: no-repeat;
indvdum@0
    90
	background-image: none;
indvdum@0
    91
	padding: 1px 0 0 17px;
indvdum@0
    92
}
indvdum@0
    93
indvdum@0
    94
/* Poster profile icons
indvdum@0
    95
----------------------------------------*/
indvdum@0
    96
ul.profile-icons {
indvdum@0
    97
	padding-top: 10px;
indvdum@0
    98
	list-style: none;
indvdum@0
    99
}
indvdum@0
   100
indvdum@0
   101
/* Rollover state */
indvdum@0
   102
ul.profile-icons li {
indvdum@0
   103
	float: left;
indvdum@0
   104
	margin: 0 6px 3px 0;
indvdum@0
   105
	background-position: 0 100%;
indvdum@0
   106
}
indvdum@0
   107
indvdum@0
   108
/* Rolloff state */
indvdum@0
   109
ul.profile-icons li a {
indvdum@0
   110
	display: block;
indvdum@0
   111
	width: 100%;
indvdum@0
   112
	height: 100%;
indvdum@0
   113
	background-position: 0 0;
indvdum@0
   114
}
indvdum@0
   115
indvdum@0
   116
/* Hide <a> text and hide off-state image when rolling over (prevents flicker in IE) */
indvdum@0
   117
ul.profile-icons li span { display:none; }
indvdum@0
   118
ul.profile-icons li a:hover { background: none; }
indvdum@0
   119
indvdum@0
   120
/* Positioning of moderator icons */
indvdum@0
   121
.postbody ul.profile-icons {
indvdum@0
   122
	float: right;
indvdum@0
   123
	width: auto;
indvdum@0
   124
	padding: 0;
indvdum@0
   125
}
indvdum@0
   126
indvdum@0
   127
.postbody ul.profile-icons li {
indvdum@0
   128
	margin: 0 3px;
indvdum@0
   129
}
indvdum@0
   130
indvdum@0
   131
/* Profile & navigation icons */
indvdum@0
   132
.email-icon, .email-icon a		{ background: none top left no-repeat; }
indvdum@0
   133
.aim-icon, .aim-icon a			{ background: none top left no-repeat; }
indvdum@0
   134
.yahoo-icon, .yahoo-icon a		{ background: none top left no-repeat; }
indvdum@0
   135
.web-icon, .web-icon a			{ background: none top left no-repeat; }
indvdum@0
   136
.msnm-icon, .msnm-icon a			{ background: none top left no-repeat; }
indvdum@0
   137
.icq-icon, .icq-icon a			{ background: none top left no-repeat; }
indvdum@0
   138
.jabber-icon, .jabber-icon a		{ background: none top left no-repeat; }
indvdum@0
   139
.pm-icon, .pm-icon a				{ background: none top left no-repeat; }
indvdum@0
   140
.quote-icon, .quote-icon a		{ background: none top left no-repeat; }
indvdum@0
   141
indvdum@0
   142
/* Moderator icons */
indvdum@0
   143
.report-icon, .report-icon a		{ background: none top left no-repeat; }
indvdum@0
   144
.warn-icon, .warn-icon a			{ background: none top left no-repeat; }
indvdum@0
   145
.edit-icon, .edit-icon a			{ background: none top left no-repeat; }
indvdum@0
   146
.delete-icon, .delete-icon a		{ background: none top left no-repeat; }
indvdum@0
   147
.info-icon, .info-icon a			{ background: none top left no-repeat; }
indvdum@0
   148
indvdum@0
   149
/* Set profile icon dimensions */
indvdum@0
   150
ul.profile-icons li.email-icon		{ width: {IMG_ICON_CONTACT_EMAIL_WIDTH}px; height: {IMG_ICON_CONTACT_EMAIL_HEIGHT}px; }
indvdum@0
   151
ul.profile-icons li.aim-icon	{ width: {IMG_ICON_CONTACT_AIM_WIDTH}px; height: {IMG_ICON_CONTACT_AIM_HEIGHT}px; }
indvdum@0
   152
ul.profile-icons li.yahoo-icon	{ width: {IMG_ICON_CONTACT_YAHOO_WIDTH}px; height: {IMG_ICON_CONTACT_YAHOO_HEIGHT}px; }
indvdum@0
   153
ul.profile-icons li.web-icon	{ width: {IMG_ICON_CONTACT_WWW_WIDTH}px; height: {IMG_ICON_CONTACT_WWW_HEIGHT}px; }
indvdum@0
   154
ul.profile-icons li.msnm-icon	{ width: {IMG_ICON_CONTACT_MSNM_WIDTH}px; height: {IMG_ICON_CONTACT_MSNM_HEIGHT}px; }
indvdum@0
   155
ul.profile-icons li.icq-icon	{ width: {IMG_ICON_CONTACT_ICQ_WIDTH}px; height: {IMG_ICON_CONTACT_ICQ_HEIGHT}px; }
indvdum@0
   156
ul.profile-icons li.jabber-icon	{ width: {IMG_ICON_CONTACT_JABBER_WIDTH}px; height: {IMG_ICON_CONTACT_JABBER_HEIGHT}px; }
indvdum@0
   157
ul.profile-icons li.pm-icon		{ width: {IMG_ICON_CONTACT_PM_WIDTH}px; height: {IMG_ICON_CONTACT_PM_HEIGHT}px; }
indvdum@0
   158
ul.profile-icons li.quote-icon	{ width: {IMG_ICON_POST_QUOTE_WIDTH}px; height: {IMG_ICON_POST_QUOTE_HEIGHT}px; }
indvdum@0
   159
ul.profile-icons li.report-icon	{ width: {IMG_ICON_POST_REPORT_WIDTH}px; height: {IMG_ICON_POST_REPORT_HEIGHT}px; }
indvdum@0
   160
ul.profile-icons li.edit-icon	{ width: {IMG_ICON_POST_EDIT_WIDTH}px; height: {IMG_ICON_POST_EDIT_HEIGHT}px; }
indvdum@0
   161
ul.profile-icons li.delete-icon	{ width: {IMG_ICON_POST_DELETE_WIDTH}px; height: {IMG_ICON_POST_DELETE_HEIGHT}px; }
indvdum@0
   162
ul.profile-icons li.info-icon	{ width: {IMG_ICON_POST_INFO_WIDTH}px; height: {IMG_ICON_POST_INFO_HEIGHT}px; }
indvdum@0
   163
ul.profile-icons li.warn-icon	{ width: {IMG_ICON_USER_WARN_WIDTH}px; height: {IMG_ICON_USER_WARN_HEIGHT}px; }
indvdum@0
   164
indvdum@0
   165
/* Fix profile icon default margins */
indvdum@0
   166
ul.profile-icons li.edit-icon	{ margin: 0 0 0 3px; }
indvdum@0
   167
ul.profile-icons li.quote-icon	{ margin: 0 0 0 10px; }
indvdum@0
   168
ul.profile-icons li.info-icon, ul.profile-icons li.report-icon	{ margin: 0 3px 0 0; }
indvdum@0
   169