forked from Themekraft/_tk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
executable file
·203 lines (160 loc) · 4.95 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
/*
Theme Name: _gorilla
Theme URI: https://github.com/ninomllr/_gorilla
Author: Nino Müller
Author URI: http://nino-net.org
Description: This is a minimal starter theme for Wordpress combining _s and Bootstrap.
Version: 1.0
License: GNU General Public License
License URI: see license.txt
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
This theme is the most seamless and minimalistic integration of Twitter Bootstrap Framework into
the _s starter theme from Automattic, the guys behind WordPress.
_s (or Underscores) http://underscores.me/, (C) 2012-2013 Automattic, Inc.
Twitter Bootstrap
*/
/* Import the necessary TK Bootstrap WP CSS additions */
@import url( includes/css/bootstrap-wp.css );
/* My Minimal WordPress Styling comes here */
/* Alignment */
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.5em;
}
.aligncenter {
clear: both;
display: block;
margin: 0 auto;
}
/* Images and wp-captions should always fit and be responsive */
img {
display: inline-block;
height: auto;
max-width: 100%;
}
img[class*="wp-image-"] {
margin-top: 10px;
margin-bottom: 10px;
}
.wp-caption {
border: 1px solid #ccc;
margin-bottom: 10px;
max-width: 100%;
border: 1px solid #ccc;
border-radius: 4px;
padding: 0 10px;
}
.wp-caption.aligncenter {
margin-bottom: 10px;
}
.wp-caption img[class*="wp-image-"] {
display: block;
}
.wp-caption .wp-caption-text {
text-align: center;
margin-top: 10px;
}
/* WP Gallery */
.gallery {
margin-bottom: 1.5em;
}
.gallery a img {
border: none;
height: auto;
max-width: 90%;
}
.gallery dd {
margin: 0;
}
/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
max-width: 100%;
}
/* Text meant only for screen readers */
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
position: absolute !important;
}
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
color: #21759b;
display: block;
font-size: 14px;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000; /* Above WP toolbar */
}
/* Content */
.main-content-inner {
padding-bottom: 1.5em;
}
.hentry {
margin: 0 0 1.5em;
}
/* Clearing */
.clear {
clear: both;
}
/* Here some needed widget styles
* Most widgets are adapted in the file bootstrap-wp.js - and REALLY easy to modify! ;) */
.widget { margin-bottom: 2em; }
.widget_nav_menu ul.sub-menu li, .widget_pages ul.children li { padding-left: 15px; }
/* Hiding the search widget's button in widgets. thats just too old-skool. :) but if you want it back, just delete the next line.
* Note: you can change the whole appearance of the search_form() function in our searchform.php */
.widget_search .search-form input[type="submit"] { display: none; }
/* Make sure select elements fit in widgets */
.widget select {
max-width: 100%;
}
/* Nested comments? They are threaded and nested already, you just need to add your own styling to finalize!
* For example with some margin, like the line below ;) Delete, modify, change classes in HTML if you desire another style */
.comment .children { margin-left: 1.5em; }
/*
== Quick CSS styling tips ==
You can start off in a rough direction with some minimal styles.
See below for some tips. ;)
== Want to have the whole site wrapped? ==
Just fill the .container class with some background color to have a the whole site "wrapped".
This works so easy because every main part is wrapped only once into a container class by bootstrap.
Try out by decommenting the next line and go from there.
.container { background: #f9f9f9; border-right: 1px solid #eee; border-left: 1px solid #eee; }
== Want to wrap just the content and sidebar in Bootstrap style? ==
That one is a great example to show that some things are much cleaner and easier to do via just adding some HTML classes.
In this case, we will add just one CSS class "panel", look for example at the beginning in content.php!
== Infinite Scrolling by Jetpack ==
You can enable this cool feature by simply decommenting the lines below and make sure you use the same classes on the right place in your html..
/* Globally hidden elements when Infinite Scroll is supported and in use.
* Older / Newer Posts Navigation (the pagination, must always be hidden), Theme Footer only when set to scrolling.. */
/*
.infinite-scroll .page-links,
.infinite-scroll.neverending .site-footer {
display: none;
}
*/
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */
/*
.infinity-end.neverending .site-footer {
display: block;
}
*/
/* Hey, if you don't need my comments anymore, just delete me! :) */