Skip to content

Instantly share code, notes, and snippets.

@akashsenger
Created April 8, 2019 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akashsenger/c0229e759ec0675e91c067eb793e5924 to your computer and use it in GitHub Desktop.
Save akashsenger/c0229e759ec0675e91c067eb793e5924 to your computer and use it in GitHub Desktop.
Convert Vf Page into Lightning
<apex:page standardController="Case" extensions="CaseController" standardStylesheets="{!IsClassic}" LightningStylesheets="{! !IsClassic}">
<apex:outputPanel rendered="{! !IsClassic}">
<apex:slds />
<style>
body .bPageBlock .detailList .dataCol {
margin-bottom: 0rem !important;
margin-top: 0rem !important;
padding-top: 0rem !important;
padding-bottom: 0rem !important;
display: table-cell !important;
}
body .detailList .dataCol select{
min-width: 15rem !important;
width: 15rem !important ;
}
body .dataCol textarea {
min-width: 15rem !important;
width: 15rem !important ;
height: 45px;
}
body .pbSubsection{
padding-top: 0rem !important;
padding-bottom: 0rem !important;
}
body .detailList tbody tr{
width: 250px;
}
body .bPageBlock .pbSubheader{
margin-bottom: 8px !important;
line-height: normal !important;
}
body .pbHeader .pbButton{
text-align: center;
}
body .pbButton .btn, body .pbButtonb .btn {
background-color: #9e801a;
color: white;
}
</style>
</apex:outputPanel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment