ओवरराइड करने के लिए application.css प्राप्त करना मैं अपने रेल ऐप नेविबार को कस्टमाइज़ करने की कोशिश कर रहा हूं और css को application.css में जोड़ा है। मुझे पता है कि application.css सही ढंग से संदर्भित किया जा रहा है, क्योंकि ऐप इससे अन्य स्टाइल उठा रहा है। लेकिन नेवबार सीएसएस ओवरराइड करने के लिए क्या पहले से ही bootstrap.css में है कोशिश कर रहा है, और अनुप्रयोग पहचान नहीं कर रहा ...बूटस्ट्रैप
application.html.erb (लेआउट)
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= analytics_init if Rails.env.production? %>
<link href="../assets/bootstrap-responsive.css" rel="stylesheet">
application.css
body {
padding-top: 20px;
padding-bottom: 60px;
}
/* Custom container */
.container {
margin: 0 auto;
max-width: 1000px;
}
.container > hr {
margin: 0px 0;
}
/* Main marketing message and sign up button */
.jumbotron {
margin: 20px 0;
text-align: center;
}
.jumbotron h1 {
font-size: 100px;
line-height: 1;
}
.jumbotron .lead {
font-size: 24px;
line-height: 1.25;
}
.jumbotron .btn {
font-size: 21px;
padding: 14px 24px;
}
/* Supporting marketing content */
.marketing {
margin: 60px 0;
}
.marketing p + h4 {
margin-top: 28px;
}
/* Customize the navbar links to be fill the entire space of the .navbar */
.navbar .navbar-inner {
padding: 0;
}
.navbar .nav {
margin: 0;
display: table;
width: 100%;
}
.navbar .nav li {
display: table-cell;
width: 1%;
float: none;
}
.navbar .nav li a {
font-weight: bold;
text-align: center;
border-left: 1px solid rgba(255,255,255,.75);
border-right: 1px solid rgba(0,0,0,.1);
}
.navbar .nav li:first-child a {
border-left: 0;
border-radius: 3px 0 0 3px;
}
.navbar .nav li:last-child a {
border-right: 0;
border-radius: 0 3px 3px 0;
}
क्या मुझे कुछ याद आ रहा है?
बूटस्ट्रैप.css कहां है? और एप पहचानने, बूटस्ट्रैप शैली या आपकी शैली क्या नहीं है? – Pigueiras
दोनों आवेदन.css और bootstrap.css संपत्ति/स्टाइलशीट में हैं। यह मेरी शैली (application.css) को पहचान नहीं रहा है – tessad
क्या आपके पास अपने application.css में 'बूटस्ट्रैप की आवश्यकता है' निर्देश है? यदि नहीं, हो सकता है कि सीएसएस उत्पन्न होने वाला आदेश सही क्रम में हो, यदि आप 'requ_tree' पर भरोसा करते हैं। – Pigueiras