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